Open gzcwnk opened 7 years ago
While installing bacula had a nginx issue,
Setting up nginx-full (1.10.3-1+deb9u1) ... [FAIL] Upgrading binary: nginx failed! invoke-rc.d: initscript nginx, action "upgrade" failed. Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. invoke-rc.d: initscript nginx, action "restart" failed. \u25cf 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 Sun 2017-09-10 14:29:31 NZST; 6ms ago Docs: man:nginx(8) Process: 25143 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS) Process: 25146 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) Main PID: 20945 (code=exited, status=0/SUCCESS)
Sep 10 14:29:31 dell6430-001 systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 10 14:29:31 dell6430-001 nginx[25146]: nginx: configuration file /etc/nginx/nginx.conf test failed Sep 10 14:29:31 dell6430-001 systemd[1]: nginx.service: Control process exited, code=exited status=1 Sep 10 14:29:31 dell6430-001 systemd[1]: Failed to start A high performance web server and a reverse proxy server. Sep 10 14:29:31 dell6430-001 systemd[1]: nginx.service: Unit entered failed state. Sep 10 14:29:31 dell6430-001 systemd[1]: nginx.service: Failed with result 'exit-code'. Hint: Some lines were ellipsized, use -l to show in full. dpkg: error processing package nginx-full (--configure): subprocess installed post-installation script returned error exit status 1
If your system does not have all the dependencies installed, the wok installation will fail. You need to run
sudo apt-get install -f
to overcome this. You can check the instructions at https://github.com/kimchi-project/wok/releases/tag/2.5.0
HI, 99% sure I did this, will go re-try, thanks.
Well i ran it and autocleaned as shown below, this un-installed wok dependancies. No matter will re-do.
root@dell6430-001:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
fonts-font-awesome nginx python-cherrypy3 python-ldap python-m2crypto
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nginx-full (1.10.3-1+deb9u1) ...
Setting up nginx (1.10.3-1+deb9u1) ...
W: APT had planned for dpkg to do more than it reported back (3 vs 7).
Affected packages: nginx-full:amd64
root@dell6430-001:~# apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
fonts-font-awesome nginx python-cherrypy3 python-ldap python-m2crypto
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 26.5 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 166654 files and directories currently installed.)
Removing fonts-font-awesome (4.7.0~dfsg-1) ...
Removing nginx (1.10.3-1+deb9u1) ...
Removing python-cherrypy3 (3.5.0-2) ...
Removing python-ldap (2.4.28-0.1) ...
Removing python-m2crypto (0.24.0-1.1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for fontconfig (2.11.0-6.7+b1) ...
root@dell6430-001:~#
Well this looked positive,
root@dell6430-001:/var/lib/libvirt/kimchi# apt-get -y install fonts-font-awesome python-cherrypy3 python-ldap python-m2crypto
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python-ldap-doc
The following NEW packages will be installed:
fonts-font-awesome python-cherrypy3 python-ldap python-m2crypto
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/2,095 kB of archives.
After this operation, 26.4 MB of additional disk space will be used.
Selecting previously unselected package python-cherrypy3.
(Reading database ... 166021 files and directories currently installed.)
Preparing to unpack .../python-cherrypy3_3.5.0-2_all.deb ...
Unpacking python-cherrypy3 (3.5.0-2) ...
Selecting previously unselected package python-m2crypto.
Preparing to unpack .../python-m2crypto_0.24.0-1.1_amd64.deb ...
Unpacking python-m2crypto (0.24.0-1.1) ...
Selecting previously unselected package python-ldap.
Preparing to unpack .../python-ldap_2.4.28-0.1_amd64.deb ...
Unpacking python-ldap (2.4.28-0.1) ...
Selecting previously unselected package fonts-font-awesome.
Preparing to unpack .../fonts-font-awesome_4.7.0~dfsg-1_all.deb ...
Unpacking fonts-font-awesome (4.7.0~dfsg-1) ...
Setting up python-m2crypto (0.24.0-1.1) ...
Setting up fonts-font-awesome (4.7.0~dfsg-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up python-cherrypy3 (3.5.0-2) ...
Processing triggers for fontconfig (2.11.0-6.7+b1) ...
Setting up python-ldap (2.4.28-0.1) ...
Setting up wok (2.5.0) ...
root@dell6430-001:/var/lib/libvirt/kimchi#
Will continue trying to setup.
I have to test this more but I think it was an order of install issue. So when I re-do this for production (I am just doing a proof of concept / test right now) I will try and confirm this, so,
a) install and setup and run nginx-full ie get the default web page up. apt-get -y install nginx-full etc., etc. b) Install wok's dependencies next, apt-get -y install fonts-font-awesome python-cherrypy3 python-ldap python-m2crypto c) then install wok. dpkg -i wok-2.5.0-0.noarch.deb
Ok so your documentation says 8001 but the wok-error.log says 8010 and indeed this is where wok web ui is.
8><---- root@dell6430-001:/var/log/wok# tail -f wok-error.log Push server created on address /run/user/0/woknotifications [11/Sep/2017:10:59:04] ENGINE Listening for SIGHUP. [11/Sep/2017:10:59:04] ENGINE Listening for SIGTERM. [11/Sep/2017:10:59:04] ENGINE Listening for SIGUSR1. [11/Sep/2017:10:59:04] ENGINE Bus STARTING [11/Sep/2017:10:59:04] ENGINE Serving on http://127.0.0.1:8010 [11/Sep/2017:10:59:04] ENGINE Bus STARTED [11/Sep/2017:12:10:31] ENGINE Started monitor thread 'Session cleanup'.
I'm also having an issue related to this: #228.
Please, see my comment at https://github.com/kimchi-project/wok/issues/228#issuecomment-329338914
In case this is of use to anyone, after dpkg -i the two debs then running apt install -f it still hadn't created the certificates. But the postinst scripts actually contain the command but were not run. Simply running:
sudo sudo /var/lib/dpkg/info/wok.postinst
Created them.
I tried to install wok (I want kimchi) with,
root@dell6430-001:/var/lib/libvirt/kimchi# dpkg -i wok-2.5.0-0.noarch.deb Selecting previously unselected package wok. (Reading database ... 165598 files and directories currently installed.) Preparing to unpack wok-2.5.0-0.noarch.deb ... Unpacking wok (2.5.0) ... dpkg: dependency problems prevent configuration of wok: wok depends on nginx; however: Package nginx is not configured yet. Package nginx-full which provides nginx is not configured yet.
dpkg: error processing package wok (--install): dependency problems - leaving unconfigured Processing triggers for man-db (2.7.6.1-2) ... Errors were encountered while processing: wok root@dell6430-001:/var/lib/libvirt/kimchi#
However nginx is up and running, what extra config does nginx need for the wok to install?
root@dell6430-001:/var/lib/libvirt/kimchi# systemctl status nginx \u25cf nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2017-09-10 12:34:10 NZST; 9min ago Docs: man:nginx(8) Process: 20943 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 20941 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 20945 (nginx) Tasks: 5 (limit: 4915) CGroup: /system.slice/nginx.service \u251c\u250020945 nginx: master process /usr/sbin/nginx -g daemon on; master_process on; \u251c\u250020946 nginx: worker process \u251c\u250020947 nginx: worker process \u251c\u250020948 nginx: worker process \u2514\u250020949 nginx: worker process
Sep 10 12:34:10 dell6430-001 systemd[1]: Starting A high performance web server and a reverse proxy server... Sep 10 12:34:10 dell6430-001 systemd[1]: Started A high performance web server and a reverse proxy server. root@dell6430-001:/var/lib/libvirt/kimchi#