Ad Widget

Collapse

Ubuntu 22.04 / Zabbix 6.2 installation problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AB-User
    Junior Member
    • Feb 2023
    • 3

    #1

    Ubuntu 22.04 / Zabbix 6.2 installation problem

    Hello.

    I do have the problem, that the nginx.conf file is not in the directory "/etc/zabbix/nginx.conf".
    If I do install the "zabbix-nginx-conf" pkg I do get some errors which I need help.


    root@ubuntu-desktop:/etc/zabbix# apt install -y zabbix-nginx-conf
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    zabbix-nginx-conf is already the newest version (1:6.2.7-1+ubuntu22.04).
    The following packages were automatically installed and are no longer required:
    hplip-data libhpmud0 libimagequant0 libraqm0 librsync2 libsane-hpaio printer-driver-hpcups printer-driver-postscript-hp python3-bcrypt python3-fasteners python3-future python3-lib2to3 python3-lockfile
    python3-monotonic python3-olefile python3-paramiko python3-pexpect python3-pil python3-ptyprocess python3-renderpm python3-reportlab python3-reportlab-accel
    Use 'apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
    3 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    * synosnap dpkg pre hook check
    dumping distro info
    Setting up nginx-core (1.18.0-6ubuntu14.3) ...
    Job for nginx.service failed because the control process exited with error code.
    See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
    invoke-rc.d: initscript nginx, action "start" failed.
    × 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 Fri 2023-02-03 22:14:58 CET; 21ms ago
    Docs: man:nginx(8)
    Process: 32544 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
    CPU: 13ms

    Feb 03 22:14:58 ubuntu-desktop systemd[1]: Starting A high performance web server and a reverse proxy server...
    Feb 03 22:14:58 ubuntu-desktop nginx[32544]: nginx: [emerg] open() "/etc/nginx/conf.d/zabbix.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:59
    Feb 03 22:14:58 ubuntu-desktop nginx[32544]: nginx: configuration file /etc/nginx/nginx.conf test failed
    Feb 03 22:14:58 ubuntu-desktop systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
    Feb 03 22:14:58 ubuntu-desktop systemd[1]: nginx.service: Failed with result 'exit-code'.
    Feb 03 22:14:58 ubuntu-desktop systemd[1]: Failed to start A high performance web server and a reverse proxy server.
    dpkg: error processing package nginx-core (--configure):
    installed nginx-core package post-installation script subprocess returned error exit status 1
    dpkg: dependency problems prevent configuration of nginx:
    nginx depends on nginx-core (<< 1.18.0-6ubuntu14.3.1~) | nginx-full (<< 1.18.0-6ubuntu14.3.1~) | nginx-light (<< 1.18.0-6ubuntu14.3.1~) | nginx-extras (<< 1.18.0-6ubuntu14.3.1~); however:
    Package nginx-core is not configured yet.
    Package nginx-full is not installed.
    Package nginx-light is not installed.
    Package nginx-extras is not installed.
    nginx depends on nginx-core (>= 1.18.0-6ubuntu14.3) | nginx-full (>= 1.18.0-6ubuntu14.3) | nginx-light (>= 1.18.0-6ubuntu14.3) | nginx-extras (>= 1.18.0-6ubuntu14.3); however:
    Package nginx-core is not configured yet.
    Package nginx-full is not installed.
    Package nginx-light is not installed.
    Package nginx-extras is not installed.

    dpkg: error processing package nginx (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of zabbix-nginx-conf:
    zabbix-nginx-conf depends on nginx; however:
    Package nginx is No apport report written because the error message indicates its a followup error from a previous failure.
    No apport report written because the error message indicates its a followup error from a previo
    us failure.
    not configured yet.
    Package nginx-core which provides nginx is not configured yet.

    dpkg: error processing package zabbix-nginx-conf (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    nginx-core
    nginx
    zabbix-nginx-conf
    * synosnap dpkg post hook check
    dumping distro info
    compare distro info
    check for file trigger
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    ​Many thanks for your help :-)
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Seems like your nginx is not properly installed....
    nginx depends on nginx-core (>= 1.18.0-6ubuntu14.3) | nginx-full (>= 1.18.0-6ubuntu14.3) | nginx-light (>= 1.18.0-6ubuntu14.3) | nginx-extras (>= 1.18.0-6ubuntu14.3); however:
    Package nginx-core is not configured yet.
    Package nginx-full is not installed.
    Package nginx-light is not installed.
    Package nginx-extras is not installed.

    Comment

    Working...