Closed scottboyde closed 4 years ago
@HolgerReiseVSys Can you assist with this?
does the install directory need to be /root/deploy/sormas/$(date +%F) as when running the install it fails with access permission denied
could not change directory to "/root/deploy/sormas/2020-04-21": Permission denied setup.sql: No such file or directory
I have noticed that in SERVER_SETUP.md#apache-web-server the ports of the ProxyPass and ProxyPassReverse directives do not match the default port base specified in server-setup.sh.
It should be 6080
instead of 5080
. Maybe this could already explain your issues.
For the install directory, this may happen if the postgres user is not allowed to accces the directory.
Either you adjust the permissions or you coud try and replace
su postgres -c "psql -p ${DB_PORT} -f setup.sql"
with su postgres -c "psql -p ${DB_PORT} < setup.sql"
in server-setup.sh
.
“This email is covered by the disclaimer found at the end of the message.”
Hi
I noticed that myself and changed but cannot connect.
I am using a different location to install sormas and get to the database setup but get an error about the schema_version psql:setup.sql:14: NOTICE: relation "schema_version" does not exist, skipping
Thanks Scott
From: HolgerReiseVSys [mailto:notifications@github.com] Sent: 22 April 2020 02:31 To: hzi-braunschweig/SORMAS-Project Cc: Scott Boyde; Author Subject: Re: [hzi-braunschweig/SORMAS-Project] Server Installation and configuration (#1876)
I have noticed that in SERVER_SETUP.md#apache-web-serverhttps://github.com/hzi-braunschweig/SORMAS-Project/blob/v1.38.0/SERVER_SETUP.md#apache-web-server the ports of the ProxyPass and ProxyPassReverse directives do not match the default port base specified in server-setup.sh. It should be 6080 instead of 5080. Maybe this could already explain your issues.
For the install directory, this may happen if the postgres user is not allowed to accces the directory. Either you adjust the permissions or you coud try and replace su postgres -c "psql -p ${DB_PORT} -f setup.sql" with su postgres -c "psql -p ${DB_PORT} < setup.sql" in server-setup.sh.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/hzi-braunschweig/SORMAS-Project/issues/1876#issuecomment-617467465, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGL2V3VXRAKQBMRNPFXL2BDRNZCFVANCNFSM4MMXYDEA.
“The information contained in this email and any attachments is confidential and intended solely for the attention and use of the named addressee(s). No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient of this email, please inform the sender by return email and destroy all copies. Any views or opinions presented are solely those of the author and do not necessarily represent the views of HSCNI. The content of emails sent and received via the HSC network may be monitored for the purposes of ensuring compliance with HSC policies and procedures. While HSCNI takes precautions in scanning outgoing emails for computer viruses, no responsibility will be accepted by HSCNI in the event that the email is infected by a computer virus. Recipients are therefore encouraged to take their own precautions in relation to virus scanning. All emails held by HSCNI may be subject to public disclosure under the Freedom of Information Act 2000.”
I manually created the databases and ran the sql scripts from SORMAS-Project/sormas-backend/src/main/resources/sql/
I have installed SORMAS from a different directory
/software/deploy/sormas/$(date +%F)/server-setup.sh
It appears to have installed correctly and do not get any errors, however it says to run sormas-update.sh but I assume that this means server-update.sh
So I have also ran server-update.sh
Do I need to add docroot to Apache config to point to sormas location
I guess the payara should be OK.
You can check by calling curl http://127.0.0.1:6080/sormas-ui/
.
This should return a redirect to /sormas-ui/login
.
curl http://127.0.0.1:6080
should show if the app server is running at all.
The ProxyPass directive belongs directly in the VirtualHost
.
This is used instead of DocumentRoot, as we do not deliver static files, but proxy calls to the application server.
Hi
When curl I get the following
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Payara Server 5.192 #badassfish- Error report</title><style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><hr/><p><b>type</b> Status report </p><p><b>message </b></p><p><b>description </b>The requested resource is not available.</p><hr/><h3>Payara Server 5.192 #badassfish</h3></body></html>
This probably just means that theserver is up, but the ear and the war have not yet been deployed.
Apologies but how do I deploy the ear and war, thanks.
I have ran through the install again and when running the server-update.sh I get to part that starts the payara-sormas service but it fails as port 6048 is already being used. Though I am not sure why
So going through this again and the service is not being stopped during the server-update script so this fails to complete. I have changed the command and have been able to get the script to continue but I get a lot of java errors now. Should I cose this and start up another ticket
@scottboyde Hi, did you manage to run the sormas locally and load the UI? I'm doing the same now and run into problems as well. Maybe you know some kind of discord channel for this purpose?
I am now able to run the server-update.sh and get further,
`[2020-04-22T18:17:26.069+0100] [Payara 5.192] [INFO] [] [org.hibernate.Version] [tid: _ThreadID=23 _ThreadName=payara-executor-service-scheduled-task] [timeMillis: 1587575846069] [levelValue: 800] [[ HHH000412: Hibernate Core {5.4.3.Final}]]
[2020-04-22T18:17:26.277+0100] [Payara 5.192] [INFO] [] [org.hibernate.annotations.common.Version] [tid: _ThreadID=23 _ThreadName=payara-executor-service-scheduled-task] [timeMillis: 1587575846277] [levelValue: 800] [[ HCANN000001: Hibernate Commons Annotations {5.1.0.Final}]]
[2020-04-22T18:17:26.872+0100] [Payara 5.192] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=23 _ThreadName=payara-executor-service-scheduled-task] [timeMillis: 1587575846872] [levelValue: 1000] [[ Exception while preparing the app]]
[2020-04-22T18:17:26.873+0100] [Payara 5.192] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=23 _ThreadName=payara-executor-service-scheduled-task] [timeMillis: 1587575846873] [levelValue: 1000] [[
Exception during lifecycle processing
java.lang.NoSuchMethodError: sun.security.ssl.Handshaker.setApplicationProtocols([Ljava/lang/String;)V
at sun.security.ssl.SSLSocketImpl.initHandshaker(SSLSocketImpl.java:1350)
at sun.security.ssl.SSLSocketImpl.doneConnect(SSLSocketImpl.java:708)
at sun.security.ssl.SSLSocketImpl.
[2020-04-22T18:17:26.915+0100] [Payara 5.192] [WARNING] [NCLS-DEPLOYMENT-02036] [javax.enterprise.system.tools.deployment.autodeploy] [tid: _ThreadID=23 _ThreadName=payara-executor-service-scheduled-task] [timeMillis: 1587575846915] [levelValue: 900] [[ Error occurred during deployment: Exception while preparing the app. Please see server.log for more details.]]
[2020-04-22T18:17:26.916+0100] [Payara 5.192] [WARNING] [NCLS-DEPLOYMENT-02036] [javax.enterprise.system.tools.deployment.autodeploy] [tid: _ThreadID=23 _ThreadName=payara-executor-service-scheduled-task] [timeMillis: 1587575846916] [levelValue: 900] [[ [AutoDeploy] Autodeploy failed : /opt/domains/sormas/autodeploy/sormas-ear.ear.]]
[2020-04-22T18:17:26.917+0100] [Payara 5.192] [INFO] [NCLS-DEPLOYMENT-02027] [javax.enterprise.system.tools.deployment.autodeploy] [tid: _ThreadID=23 _ThreadName=payara-executor-service-scheduled-task] [timeMillis: 1587575846917] [levelValue: 800] [[ Selecting file /opt/domains/sormas/autodeploy/sormas-rest.war for autodeployment]]
`
I guess you are connecting to a remote postgres via ssl?
We have experienced a very similar problem on the development systems.
This seems to be a bug in payara, it is not compatible with the current java 8.
It helped to downgrade java 8 to 8u202 (Zulu 8.36.0.1), see #1765.
Something like sudo apt-get install zulu-8=8.36.0.1
should do the job.
Maybe sudo apt-mark hold zulu-8
is needed, too.
Using java 11 may work too, but it may require the latest payara (201).
Thanks, I am now able to complete the installation and get a web page displayed. I have tried to login but the site doesnt do anything. It appears not to even attempt to login.
@scottboyde Hi, did you manage to run the sormas locally and load the UI? I'm doing the same now and run into problems as well. Maybe you know some kind of discord channel for this purpose? post a ticket on here with what stage you are at and any errors etc and the folks here will help out, mention me in it as well and I will comment as best I can to help.
Thanks, I am now able to complete the installation and get a web page displayed. I have tried to login but the site doesnt do anything. It appears not to even attempt to login.
Does that mean that you see the login window and when you enter e.g 'admin' as username and 'sadmin' as password and then press 'LOG IN', nothing happens?
Have you accessed the server via http instead of https?
Then the apache directive Header edit Set-Cookie "(?i)^((?:(?!;\s?Secure).)+)$" "$1;Secure"
from the manual would cause the browser to ignore the session cookies.
Otherwise you may want to check the web console and network monitoring view of your browser for problems.
I am only accessing the site via http but once I commented out the following I am able to login ok
`
`
If I enable the ssl settings for the site I get requested url not found
Looks like an issue with your apache config.
apache2ctl -S
may help you with debugging.
There should be one NameVirtualHost for port 80 and one for 443.
This is my apache config
output from apache2ctl -S
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message VirtualHost configuration: :80 sormas.hscni.net (/etc/apache2/sites-enabled/sormas.hscni.net.conf:1) :443 sormas.hscni.net (/etc/apache2/sites-enabled/sormas.hscni.net.conf:44) ServerRoot: "/etc/apache2" Main DocumentRoot: "/var/www/html" Main ErrorLog: "/var/log/apache2/error.log" Mutex watchdog-callback: using_defaults Mutex rewrite-map: using_defaults Mutex ssl-stapling-refresh: using_defaults Mutex ssl-stapling: using_defaults Mutex proxy: using_defaults Mutex ssl-cache: using_defaults Mutex default: dir="/var/run/apache2/" mechanism=default PidFile: "/var/run/apache2/apache2.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="www-data" id=33 Group: name="www-data" id=33 root@d1lvsorm-web01:/etc/apache2#
It looks like you have configured Port 80 for https.
So https://sormas.hscni.net:80/sormas-ui/
might even work.
Please have a look at https://github.com/hzi-braunschweig/SORMAS-Docker/blob/master/apache2/vhost.conf.sh
This is the script that is used to create the apache config for Docker.
Doh, please accept my apologies its been a long time since I had this much envolvement with linux systems and had to dig deep. I beleive that thats it all runninng now.
PS in the script there is a mistake for the apache error log location
ErrorLog /usr/local/apache2/error.log
Is there any links for system administration, user documents. and Many Thanks
Great to hear. Some information can be found e.g. at https://sormasorg.helmholtz-hzi.de/sormas-docs.html. Also, I would recommend to get in contact with the SORMAS team at the HZI.
Hi
I have been asked by HSC in Northern Ireland to Built a system and install Sormas. I have deployed a ubuntu system and installed java, postgres and beleive that I have installed the Sormas without any issues.
I have attempted to configure Apache but I am not sure how to link apache and sormas to display the website. Any assistance is appreciated.
Thanks Scott