DEAN-ngo / elimupi

Other
3 stars 9 forks source link

Ansible #95

Closed ltoning closed 1 year ago

ltoning commented 2 years ago

Release notes ElimuPI release 3.0.0

jer0enA commented 2 years ago

When following the instructions in the README.md I got the error in ansible after a while about restarting Nginx.

RUNNING HANDLER [common : Restart Nginx] ****************************************************************************************************************************************************************
fatal: [raspberrypi]: FAILED! => {"changed": false, "msg": "Unable to restart service nginx: Job for nginx.service failed because the control process exited with error code.\nSee \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\n"}
root@elimupi:~# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2022-10-04 15:17:11 CEST; 2min 10s ago
       Docs: man:nginx(8)
    Process: 51823 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 37ms

Oct 04 15:17:11 elimupi systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 04 15:17:11 elimupi nginx[51823]: nginx: [emerg] open() "/mnt/content/kolibri-home/nginx.conf" failed (2: No such file or directory) in /etc/kolibri/nginx.d/099-user.conf:1
Oct 04 15:17:11 elimupi nginx[51823]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Failed with result 'exit-code'.
Oct 04 15:17:11 elimupi systemd[1]: Failed to start A high performance web server and a reverse proxy server.

I didn't add the content disk yet is that maybe the problem? If so should we add this to the instructions?

ltoning commented 2 years ago

When following the instructions in the README.md I got the error in ansible after a while about restarting Nginx.

RUNNING HANDLER [common : Restart Nginx] ****************************************************************************************************************************************************************
fatal: [raspberrypi]: FAILED! => {"changed": false, "msg": "Unable to restart service nginx: Job for nginx.service failed because the control process exited with error code.\nSee \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\n"}
root@elimupi:~# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2022-10-04 15:17:11 CEST; 2min 10s ago
       Docs: man:nginx(8)
    Process: 51823 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 37ms

Oct 04 15:17:11 elimupi systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 04 15:17:11 elimupi nginx[51823]: nginx: [emerg] open() "/mnt/content/kolibri-home/nginx.conf" failed (2: No such file or directory) in /etc/kolibri/nginx.d/099-user.conf:1
Oct 04 15:17:11 elimupi nginx[51823]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Failed with result 'exit-code'.
Oct 04 15:17:11 elimupi systemd[1]: Failed to start A high performance web server and a reverse proxy server.

I didn't add the content disk yet is that maybe the problem? If so should we add this to the instructions?

Yes, adding the content disk should resolve the isssue for now Maybe we can make the install independent of the content disk. Will investigate.

ltoning commented 1 year ago

When following the instructions in the README.md I got the error in ansible after a while about restarting Nginx.

RUNNING HANDLER [common : Restart Nginx] ****************************************************************************************************************************************************************
fatal: [raspberrypi]: FAILED! => {"changed": false, "msg": "Unable to restart service nginx: Job for nginx.service failed because the control process exited with error code.\nSee \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\n"}
root@elimupi:~# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2022-10-04 15:17:11 CEST; 2min 10s ago
       Docs: man:nginx(8)
    Process: 51823 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 37ms

Oct 04 15:17:11 elimupi systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 04 15:17:11 elimupi nginx[51823]: nginx: [emerg] open() "/mnt/content/kolibri-home/nginx.conf" failed (2: No such file or directory) in /etc/kolibri/nginx.d/099-user.conf:1
Oct 04 15:17:11 elimupi nginx[51823]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Failed with result 'exit-code'.
Oct 04 15:17:11 elimupi systemd[1]: Failed to start A high performance web server and a reverse proxy server.

I didn't add the content disk yet is that maybe the problem? If so should we add this to the instructions?

Yes, adding the content disk should resolve the isssue for now Maybe we can make the install independent of the content disk. Will investigate.

When following the instructions in the README.md I got the error in ansible after a while about restarting Nginx.

RUNNING HANDLER [common : Restart Nginx] ****************************************************************************************************************************************************************
fatal: [raspberrypi]: FAILED! => {"changed": false, "msg": "Unable to restart service nginx: Job for nginx.service failed because the control process exited with error code.\nSee \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\n"}
root@elimupi:~# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2022-10-04 15:17:11 CEST; 2min 10s ago
       Docs: man:nginx(8)
    Process: 51823 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 37ms

Oct 04 15:17:11 elimupi systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 04 15:17:11 elimupi nginx[51823]: nginx: [emerg] open() "/mnt/content/kolibri-home/nginx.conf" failed (2: No such file or directory) in /etc/kolibri/nginx.d/099-user.conf:1
Oct 04 15:17:11 elimupi nginx[51823]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Failed with result 'exit-code'.
Oct 04 15:17:11 elimupi systemd[1]: Failed to start A high performance web server and a reverse proxy server.

I didn't add the content disk yet is that maybe the problem? If so should we add this to the instructions?

Yes, adding the content disk should resolve the isssue for now Maybe we can make the install independent of the content disk. Will investigate.

When following the instructions in the README.md I got the error in ansible after a while about restarting Nginx.

RUNNING HANDLER [common : Restart Nginx] ****************************************************************************************************************************************************************
fatal: [raspberrypi]: FAILED! => {"changed": false, "msg": "Unable to restart service nginx: Job for nginx.service failed because the control process exited with error code.\nSee \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\n"}
root@elimupi:~# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2022-10-04 15:17:11 CEST; 2min 10s ago
       Docs: man:nginx(8)
    Process: 51823 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 37ms

Oct 04 15:17:11 elimupi systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 04 15:17:11 elimupi nginx[51823]: nginx: [emerg] open() "/mnt/content/kolibri-home/nginx.conf" failed (2: No such file or directory) in /etc/kolibri/nginx.d/099-user.conf:1
Oct 04 15:17:11 elimupi nginx[51823]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Oct 04 15:17:11 elimupi systemd[1]: nginx.service: Failed with result 'exit-code'.
Oct 04 15:17:11 elimupi systemd[1]: Failed to start A high performance web server and a reverse proxy server.

I didn't add the content disk yet is that maybe the problem? If so should we add this to the instructions?

I will add a fix to make the Ansible install independent of weather the contentdisk is inserted.

ltoning commented 1 year ago

Release 3.0.0