Closed xy124 closed 5 years ago
just reexecuted
oardocker install git+https://github.com/oar-team/oar.git start -n 3 -v ~/workspace/melissa_parflow:/home/docker/melissa
this time I get to (http://localhost:40080/monika)
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.25 (Debian) Server at localhost Port 40080
Seems that oar's postgres server did not start up correctly:
docker@server ~
$ systemctl status oardocker-postgresql.service
● oardocker-postgresql.service - PostgreSQL database server
Loaded: loaded (/etc/systemd/system/oardocker-postgresql.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-11-14 14:08:46 UTC; 3s ago
Process: 477 ExecStart=/usr/lib/postgresql/9.4/bin/postgres -D /var/lib/postgresql/9.4/main -c config_file=/etc/postgresql/9.4/main/postgresql.conf (code=exited, status=203/
Main PID: 477 (code=exited, status=203/EXEC)
Nov 14 14:08:46 server systemd[1]: Started PostgreSQL database server.
Nov 14 14:08:46 server systemd[1]: oardocker-postgresql.service: Main process exited, code=exited, status=203/EXEC
Nov 14 14:08:46 server systemd[1]: oardocker-postgresql.service: Unit entered failed state.
Nov 14 14:08:46 server systemd[1]: oardocker-postgresql.service: Failed with result 'exit-code'.
How to fix this?
The master branch is relatively outdated. We recommend to use the branch dev of oardocker and the debian stretch environment. Do you have used this set up ?
yep I'm using strech and the dev branch. The oar-docker commit I'm using is 311a00828c8963d6fd85446290c34dfa79b78b03
Ah I think I fixed it!
on the server container in /etc/systemd/system/oardocker-postgresql.service
the wrong postgresql version (9.4) was used! In my container the 9.6 was installed. so I had to change the line
ExecStart=/usr/lib/postgresql/9.4/bin/postgres -D /var/lib/postgresql/9.4/main -c config_file=/etc/postgresql/9.4/main/postgresql.conf
to ExecStart=/usr/lib/postgresql/9.6/bin/postgres -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf
and then I executed
systemctl enable oardocker-postgresql.service
systemctl stop oardocker-postgresql.service
systemctl start oardocker-postgresql.service
systemctl status oardocker-postgresql.service
Great, I'm preparing a fix. Thanks
Fixed via 1954015
Hi! I executed
giving me the log
but I cannot access the webservices e.g. http://localhost:40080/monika gives
How to solve this? (I'm testing with git rev d7b93fd15ad87b67807a48c6971e3973bcc83540)