Skip to content

One Click Install Script Didn't work #599

@RayBB

Description

@RayBB

For Bug Reports

Ran the instillation script from here: https://www.bookstackapp.com/docs/admin/installation/

Expected Behavior

Server would run

Current Behavior

Server not running

Steps to Reproduce

Install fresh ubuntu image on vm, run script

After running the script the following text shows:

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

Setup Finished, Your BookStack instance should now be installed.
You can login with the email 'admin@admin.com' and password of 'password'
MySQL was installed without a root password, It is recommended that you set a root MySQL password.

You can access your BookStack instance at: http://10.0.2.15/

Running systemctl status nginx.service shows:

ray@ray-VirtualBox:~$ 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 Mon 2017-11-27 01:44:39 EST; 5min ago
  Process: 16724 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
  Process: 16727 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
 Main PID: 6553 (code=exited, status=0/SUCCESS)

Nov 27 01:44:39 ray-VirtualBox systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 27 01:44:39 ray-VirtualBox nginx[16727]: nginx: [emerg] invalid number of arguments in "server_name" directive in /etc/nginx/sites-enabled
Nov 27 01:44:39 ray-VirtualBox nginx[16727]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 27 01:44:39 ray-VirtualBox systemd[1]: nginx.service: Control process exited, code=exited status=1
Nov 27 01:44:39 ray-VirtualBox systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Nov 27 01:44:39 ray-VirtualBox systemd[1]: nginx.service: Unit entered failed state.
Nov 27 01:44:39 ray-VirtualBox systemd[1]: nginx.service: Failed with result 'exit-code'.

Running journalctl -xe shows

ray@ray-VirtualBox:~$ journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nginx.service has finished shutting down.
Nov 27 01:44:39 ray-VirtualBox systemd[1]: Starting A high performance web server and a reverse proxy server...
-- Subject: Unit nginx.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nginx.service has begun starting up.
Nov 27 01:44:39 ray-VirtualBox nginx[16727]: nginx: [emerg] invalid number of arguments in "server_name" directive in /etc/nginx/sites-enabled
Nov 27 01:44:39 ray-VirtualBox nginx[16727]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 27 01:44:39 ray-VirtualBox systemd[1]: nginx.service: Control process exited, code=exited status=1
Nov 27 01:44:39 ray-VirtualBox systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nginx.service has failed.
-- 
-- The result is failed.
Nov 27 01:44:39 ray-VirtualBox systemd[1]: nginx.service: Unit entered failed state.
Nov 27 01:44:39 ray-VirtualBox systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 27 01:44:39 ray-VirtualBox sudo[1859]: pam_unix(sudo:session): session closed for user root
Nov 27 01:45:10 ray-VirtualBox pkexec[16816]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Nov 27 01:45:10 ray-VirtualBox pkexec[16816]: pam_systemd(polkit-1:session): Cannot create session: Already running in a session
Nov 27 01:45:10 ray-VirtualBox pkexec[16816]: ray: Executing command [USER=root] [TTY=unknown] [CWD=/home/ray] [COMMAND=/usr/lib/update-notifi
Nov 27 01:45:13 ray-VirtualBox anacron[705]: Job `cron.daily' started
Nov 27 01:45:13 ray-VirtualBox anacron[16828]: Updated timestamp for job `cron.daily' to 2017-11-27
Nov 27 01:45:13 ray-VirtualBox cracklib[16853]: no dictionary update necessary.
Nov 27 01:45:13 ray-VirtualBox /usr/lib/snapd/snapd[739]: snapmgr.go:496: DEBUG: Next refresh scheduled for 2017-11-27 10:20:31.95392786 -0500
Nov 27 01:45:20 ray-VirtualBox anacron[705]: Job `cron.daily' terminated
Nov 27 01:50:13 ray-VirtualBox anacron[705]: Job `cron.weekly' started
Nov 27 01:50:13 ray-VirtualBox anacron[17338]: Updated timestamp for job `cron.weekly' to 2017-11-27
Nov 27 01:50:15 ray-VirtualBox anacron[705]: Job `cron.weekly' terminated

I'll be looking more into the errors soon but wanted to post here to let you know it's not working out of the box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions