Hello all,
I am new to Zabbix and would need some help.
I am trying to install Zabbix in configuration where I have Postgresql separated from the other components in another Proxmox container. I am running Postgresql 13 on Ubuntu 21.04 and am trying to install Zabbix 5.4 on Ubuntu 20.04.
For the installation process I am following the guide on the https://www.zabbix.com/download page (steps a., b., d., e., and f.) and the guide on the https://www.zabbix.com/documentation...all/db_scripts for the initial database creation. Since the database server is on the separate container I am assuming that the database creation proccess needs to be executed on the database container, and for that reason I have copied the file /usr/share/doc/zabbix-sql-scripts/postgresql/create.sql.gz from the zabbix container to the database one. The user is also created in the database container, but I can't use it to unpack the create.sql.gz file to the previously created database (I have to use the postgres user for that). On the Zabbix container I also add DBHost=<IP_of_the_DB_host> to the /etc/zabbix/zabbix_server.conf file, and of course add the DBPassword=<password_of_zabbix_db_user>. When I do the systemctl restart apache2 zabbix-server zabbix-agent command on the Zabbix container it finishes suspiciously fast and when I check the systemctl status zabbix-server it is shown as activating, but when I try to proceed with frontend installation everything works. Ishould add that when I try to do systemctl start zabbix-server command it just hangs up and it seemingly never finishes.
The problem comes up when I try to connect to the database, when I get the >>Unable to determine current Zabbix database version: the table "dbversion" was not found.<< and I don't have a clue on how to fix it. All possible fixes I have found are suggesting to create the database from the create.sql.gz file but since I believe I have already done that, I don't know what to do.
Can someone please help me?
I am new to Zabbix and would need some help.
I am trying to install Zabbix in configuration where I have Postgresql separated from the other components in another Proxmox container. I am running Postgresql 13 on Ubuntu 21.04 and am trying to install Zabbix 5.4 on Ubuntu 20.04.
For the installation process I am following the guide on the https://www.zabbix.com/download page (steps a., b., d., e., and f.) and the guide on the https://www.zabbix.com/documentation...all/db_scripts for the initial database creation. Since the database server is on the separate container I am assuming that the database creation proccess needs to be executed on the database container, and for that reason I have copied the file /usr/share/doc/zabbix-sql-scripts/postgresql/create.sql.gz from the zabbix container to the database one. The user is also created in the database container, but I can't use it to unpack the create.sql.gz file to the previously created database (I have to use the postgres user for that). On the Zabbix container I also add DBHost=<IP_of_the_DB_host> to the /etc/zabbix/zabbix_server.conf file, and of course add the DBPassword=<password_of_zabbix_db_user>. When I do the systemctl restart apache2 zabbix-server zabbix-agent command on the Zabbix container it finishes suspiciously fast and when I check the systemctl status zabbix-server it is shown as activating, but when I try to proceed with frontend installation everything works. Ishould add that when I try to do systemctl start zabbix-server command it just hangs up and it seemingly never finishes.
The problem comes up when I try to connect to the database, when I get the >>Unable to determine current Zabbix database version: the table "dbversion" was not found.<< and I don't have a clue on how to fix it. All possible fixes I have found are suggesting to create the database from the create.sql.gz file but since I believe I have already done that, I don't know what to do.
Can someone please help me?
Comment