Giter Club home page Giter Club logo

epicsarchiverap-env's Introduction

EPICS Archiver Appliance Configuration Environment

Configuration Environment for Customized or Legacy EPICS Archiver Appliance for the Advanced Light Source Upgrade (ALS-U) Project at Lawrence Berkeley National Laboratory. Please check the latest discussions for your own customizations.

Debian 12

Pre-requirement packages

make init
scripts/required_pkgs.sh

MariaDB

sudo systemctl start mariadb
sudo systemctl status mariadb
#
make db.secure
make db.addAdmin
make db.show
make db.create
make db.show
make sql.fill
make sql.show

Tomcat 9

make vars FILTER=TOMCAT
make tomcat.get
make tomcat.install
make tomcat.exist

Build, install, and Service

make build
make install
make exist
#
make sd_start
make sd_status

Switch between different source commits

First, update SRC_TAG in configure/RELEASE, then make srcupdate

epicsarchiverap-env's People

Contributors

danielals avatar jeonghanlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

epicsarchiverap-env's Issues

Typo in scripts/required_pkgs.sh

diff --git a/scripts/required_pkgs.sh b/scripts/required_pkgs.sh
index d368ad3..c05e5bd 100755
--- a/scripts/required_pkgs.sh
+++ b/scripts/required_pkgs.sh
@@ -61,7 +61,8 @@ function debian10_pkgs
gcc
mariadb-server
mariadb-client \

  •    libmariadbclient-dlibmariadb-dev\
    
  •    libmariadbclient-dev \
    
  •    libmariadb-dev \
       maven \
       ant \
       tomcat9 \
    

Install problem on Rocky Linux

Dear Han:
I met a problem when I tried to install AA on Rocky Linux, the following is the shell display:

[root@localhost epicsarchiverap-env-1.0.4]# make init
which: no tree in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
which: no tree in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
git clone https://github.com/slacmshankar/epicsarchiverap epicsarchiverap-src; cd epicsarchiverap-src && git checkout 481da88
Cloning into 'epicsarchiverap-src'...
remote: Enumerating objects: 8410, done.
remote: Counting objects: 100% (559/559), done.
remote: Compressing objects: 100% (322/322), done.
remote: Total 8410 (delta 219), reused 418 (delta 146), pack-reused 7851
Receiving objects: 100% (8410/8410), 87.50 MiB | 3.06 MiB/s, done.
Resolving deltas: 100% (4344/4344), done.
Note: switching to '481da88'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 481da88 More details for V3 PV internal state
Submodule 'svg_viewer' (https://github.com/slacmshankar/svg_viewer.git) registered for path 'svg_viewer'
Cloning into '/opt/epicsarchiverap-env-1.0.4/epicsarchiverap-src/svg_viewer'...
Submodule path 'svg_viewer': checked out '66e9473943991ff5cf9a786e7b51aa95605f508e'
[root@localhost epicsarchiverap-env-1.0.4]# make install.pkgs
which: no tree in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
which: no tree in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

Doesn't support the detected Rocky Linux 8.4 (Green Obsidian)
Please contact [email protected]

[root@localhost epicsarchiverap-env-1.0.4]# cat /etc/redhat-release
Rocky Linux release 8.4 (Green Obsidian)
[root@localhost epicsarchiverap-env-1.0.4]# uname -a
Linux localhost.localdomain 4.18.0-305.3.1.el8_4.x86_64 #1 SMP Thu Jun 17 07:52:48 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost epicsarchiverap-env-1.0.4]#

Thank you!

Lu Ping

how to use other databases to save the history data of PVs?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
hi, jeonghanlee:
i want to try some other databases(such as influxdb, mongodb...) to save the history datas of PVs instead of Mariadb, but i do not know whether there are some APIs or configures in order to change the path of history data of PVs, could you help me?
Ruizhe

Tomcat service

Tomcat service itself is not necessary to run the archiver appliance. It should be better to remove the instruction in README.

After everything runs well, one can do

systemctl stop tomcat{9}
systemctl disable tomcat{9}

where {9} is required for Debian 10.

http 404 not found when click the button "quick chart"

hi @jeonghanlee ,
As the figure show, "404 not found" occur when i clicked the button "quick chart" in order to show the history data of a PV, i think perhaps that i don't have the software "archViewer"? or some problems of Tomcat? I'm not sure if this is a problem with the environment configuration, but my other features work well, could you help me to check the problem.
looking forward to your reply and thanks a lot
Ruizhe
AA_question
e

build error on Debian 11

Dear @jeonghanlee,

On a debian 11 variant during the "make build", I receive the following errors:
... [javadoc] error: An internal exception has occurred. [javadoc] (java.lang.RuntimeException: java.io.FileNotFoundException: docs/api/mgmtpathmappings.txt (No such file or directory)) ...
Do you have any idea what can be the cause?

Thank you in advance,
Filip

Archived pvs not connected on reboot Debian 11

Hi,

Thank you for the archiver config environment, it was straightforward to get an instance of the archiver running on a fresh install.

OS: Debain 11 kernel 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
Ver: EPICS Archiver Appliance Version d3dd9cc-2022-08-08-als_SNAPSHOT_03-February-2023T12-03-32

I was able to archive pvs, however when I restart the PC the archiver service runs but all pvs are in a disconnected state as shown below:

pvs

Running sudo systemctl status epicsarchiverap.service everything looks okay to me:

startup

If I simply sudo systemctl restart epicsarchiverap.service - service restarts and all pvs are in a connected state.

Not sure if there is some configuration issue on my machine or any other suggestions I could look into.

Environment doesn't build with Ubuntu 20.04

Describe the bug
When trying to install with Ubuntu 20.04, and running make install.pkgs some modules can't be found.
Log when running make:

matevz@Asus-X550JK:~/epicsarchiverap-env$ make install.pkgs
Hit:1 https://linux.teamviewer.com/deb stable InRelease
Hit:2 https://repo.steampowered.com/steam stable InRelease                     
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease                         
Hit:4 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:6 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-security InRelease
Hit:9 https://packages.microsoft.com/repos/ms-teams stable InRelease
Reading package lists... Done                           
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-sphinx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  sphinx-doc sphinx-common

Package python-mysqldb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package python-click
E: Unable to locate package python2.7-ldap
E: Couldn't find any package by glob 'python2.7-ldap'
E: Unable to locate package python-pip
E: Package 'python-sphinx' has no installation candidate
E: Unable to locate package python-cherrypy
E: Unable to locate package python-routes
E: Package 'python-mysqldb' has no installation candidate
E: Unable to locate package python-suds
ln: failed to create symbolic link '/usr/bin/mysql_config' -> '': No such file or directory
sed: can't read /usr/include/mariadb/mysql.h: No such file or directory
make: *** [/home/matevz/epicsarchiverap-env/configure/RULES_REQ:13: install.pkgs] Error 2

Desktop:

  • OS: Ubuntu 20.04
  • Kernel Version: 5.4.0-72-generic

/opt/epicsarchiverap/retrieval/logs/archappl_service.log

Select LBNL:TESTIOC:calc3 quickchart, I saw the following messages


==> /opt/epicsarchiverap/retrieval/logs/archappl_service.log <==
441508 [http-nio-17668-exec-8] ERROR org.epics.archiverappliance.utils.ui.GetUrlContent  - Exception getting contents of internal URL http://localhost:17666/engine/bpl/getMetadata?pv=LBNL%3ATESTIOC%3Acalc3
java.io.IOException: Invalid status calling http://localhost:17666/engine/bpl/getMetadata?pv=LBNL%3ATESTIOC%3Acalc3. Got 404
	at org.epics.archiverappliance.utils.ui.GetUrlContent.getURLContentAsStream(GetUrlContent.java:434)
	at org.epics.archiverappliance.utils.ui.GetUrlContent.getURLContentAsJSONObject(GetUrlContent.java:121)
	at org.epics.archiverappliance.utils.ui.GetUrlContent.getURLContentAsJSONObject(GetUrlContent.java:108)
	at org.epics.archiverappliance.retrieval.DataRetrievalServlet.fetchLatestMedataFromEngine(DataRetrievalServlet.java:1454)
	at org.epics.archiverappliance.retrieval.DataRetrievalServlet.doGetSinglePV(DataRetrievalServlet.java:457)
	at org.epics.archiverappliance.retrieval.DataRetrievalServlet.doGet(DataRetrievalServlet.java:148)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:529)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:154)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:179)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:154)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:168)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:670)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:928)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1786)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
	at java.base/java.lang.Thread.run(Thread.java:840)

When I switch to Live,

The same messages are shown, continuously.

I/O error of Tomcat...

hi, @jeonghanlee
I met a question about tomcat9, my appliance can work for hours, but it seems not stable...when i restart the epicsAA service, it tell s me that "I/O error" of tomcat as the figure shows. I think perhaps that i archived too many waveform PVs and data flow is too large leading to this problem?
could you give me some recommendation. thanks a lot.
Ruizhe
AAA

Support for Rocky Linux

Where I was stuck:
When trying to install on Rocky Linux, and running
make install.pkgs
Log shows that it stop by system check or something.

[rocky@localhost epicsarchiverap-env]$ make install.pkgs
[sudo] password for rocky:

Doesn't support the detected Rocky Linux 8.4 (Green Obsidian)
Please contact [email protected]

The solution I can think of
Identify Rocky Linux as CentOS 8 to share the same instruction code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.