Zabbix installation script error

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.17
What app is this about: Zabbix

Describe your issue

Zabbix installation fails with error in the installation script:

2025-08-02 12:44:13,983: DEBUG - + /usr/share/zabbix-cli/bin/zabbix-cli --config /usr/share/zabbix-cli/zabbix-cli.toml create_user svc_zabbix_ldap --firstname svc_zabbix_ldap --lastname svc_zabbix_ldap --passwd ********** --role superadmin --groups 7
2025-08-02 12:44:14,887: WARNING - ? Username (Admin):
2025-08-02 12:44:14,890: WARNING - Aborted.
2025-08-02 12:44:15,026: DEBUG - + ynh_exit_properly
2025-08-02 12:44:15,027: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2025-08-02 12:44:15,636: ERROR - Unable to install zabbix: An error occurred inside the app installation script

That looks to be a problem with creation of the admin user in Zabbix?

Share relevant logs or error messages

https://paste.yunohost.org/raw/memezusadi

Hello,

I have to found why you’ve got this error, I have just test on a local server a fresh install, but it have works as excepted without issues …

https://paste.yunohost.org/raw/ofaburizam

Could you try to install zabbix on a dedicated domain without sub-path ? Perhaps it needs a dedicated domain ??
I say this because is the first difference I see…

I am not sure, zabbix should be installed also on a subpath, but it is perhaps a solution to test…

Sorry, this not related and zabbix can be installed also on a subpath

Hello,

can you try install zabbix from this branch php-fix ?

yunohost app install https://github.com/YunoHost-Apps/zabbix_ynh/tree/fix-php

It just try add some php dependencies

I tried the installation via CLI, but that just hangs at Creating ldap zabbix user:

Info: Installing zabbix…
Info: Provisioning system_user...
Info: Provisioning install_dir...
Info: Provisioning permissions...
Info: Provisioning apt...
Warning: adduser: Warning: The home directory `/var/lib/snmp' does not belong to the user you are currently creating.
Warning: chown: warning: '.' should be ':': 'Debian-snmp.Debian-snmp'
Info: Provisioning database...
Info: [++..................] > Setting up source files...
Info: [##+++...............] > Import default data in database...
Info: Zabbix database character set will be updated !
Info: Zabbix database character set has been updated !
Info: [#####+++............] > Adding zabbix's configuration files...
Info: [########+++.........] > Adding system configurations related to zabbix...
Info: Zabbix agent timeout updated !
Info: Update Zabbix configuration initialisation !
Info: Zabbix configuration initialisation updated !
Info: [###########+++......] > Setting up application...
Info: Installing zabbix-cli
Info: Creating ldap zabbix user

Cursor blinking, but nothing happening, even after 5 minutes.

I pressed CTRL+C after waiting more than 40 minutes. Logs: https://paste.yunohost.org/raw/oyacakobop

Before install, be sure to delete all precedents zabbix configs which could have not been deleted.

Be sure removing the app if not yunohost app remove zabbix

Verify if a user svc_zabbix_ldap is still present and remove it

yunohost user delete svc_zabbix_ldap --purge

Look if there still zabbix packages

dpkg -l | grep zabbix

If you see a zabbix package (in the first line if installed ii), then remove it first

the packages which can be present zabbix-agent zabbix-frontend-php zabbix-server-mysql zabbix-sql-scripts zabbix-ynh-deps

To remove

apt remove zabbix*

If you need remove a package, you can also do after a apt autoremove

look if there is still folders like these ones

/usr/lib/zabbix 
/etc/zabbix 
/usr/share/zabbix
/var/www/zabbix
/var/log/zabbix/
/etc/apt/preferences.d/zabbix-repo
/etc/php/8.2/fpm/pool.d/zabbix.conf

If is necessary remove them also before.

rm -r /usr/lib/zabbix 
rm -r /etc/zabbix 
rm -r /usr/share/zabbix
rm -r /var/www/zabbix
rm -r /var/log/zabbix
rm -r /etc/apt/preferences.d/zabbix-repo
rm -r /etc/php/8.2/fpm/pool.d/zabbix.conf

Be sure also the yunohost user you will use to be admin have a good password, perhaps not some too strange characters ?? but it seems failed before adding this user, I really don’t understand why it did not work at this step to add the user svc_zabbix_ldap in the zabbix config with zabbix-cli and can’t reproduce it…

Did you have try again ??

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.