vrx-666 / bacula-server

6 stars 2 forks source link

Fresh install UnRaid cURL: error 0 #8

Open BigWebstas opened 7 months ago

BigWebstas commented 7 months ago

Fresh base install using the image bacula-server:13-postgresql-latest i set the SD_Host variable and everything looks good in the logs but the ui keeps returning this

image

==> Starting...
==> .......Storage Daemon...
Starting the Bacula Storage daemon
==> .......File Daemon...
Starting the Bacula File daemon
==> .......Bacula Director...
Starting the Bacula Director daemon
==> .......Bacula Web...
2024-03-21 10:36:02,014 INFO Set uid to user 0 succeeded
2024-03-21 10:36:02,017 INFO supervisord started with pid 1
2024-03-21 10:36:03,019 INFO spawned: 'bacularis' with pid 478
2024-03-21 10:36:03,021 INFO spawned: 'mailserver' with pid 479
2024-03-21 10:36:03,024 INFO spawned: 'php' with pid 480
2024-03-21 10:36:04,167 INFO success: bacularis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-21 10:36:04,167 INFO success: mailserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-21 10:36:04,167 INFO success: php entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
192.168.1.77 - - [21/Mar/2024:10:36:26 -0600] "POST /web/monitor/ HTTP/1.1" 302 363 "http://192.168.1.140:9097/web/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
BigWebstas commented 7 months ago

Its running in Bridge mode, i cant get it to use Host mode because it looks like something is trying to bind to port 80

vrx-666 commented 7 months ago

where you deployed postgresql database server? same host or another? did You set your Host IP as SD_Host variable correctly ?

BigWebstas commented 7 months ago

Postgres is on the same server, the db gets created correctly I can see the tables in there. the SD_Host variable is set in the unraid ui i believe its correct image

vrx-666 commented 7 months ago

Did you clean the contents of the folder indicated in the "Bacula config path" variable, between running in Host network and Bridge network mode? If you haven't done this and haven't made any significant backups yet, stop the container, try clearing the database (drop all tables), clear the "Bacula config path" folder. And then restart the container. The situation is very strange, because I tried to run the container in both Bridge and Host mode and I was unable to replicate your error. The default configuration does not use port 80, so this is even more strange.

BigWebstas commented 7 months ago

I cleared out the config folder and dropped all the tables then started the container this is with it set to host mode that last part just runs forever in the logs it keeps repeating

Action '-D FOREGROUND' failed.
The Apache error log may have more information.
2024-03-26 14:42:09,265 INFO exited: bacularis (exit status 1; not expected)
2024-03-26 14:42:11,269 INFO spawned: 'bacularis' with pid 533
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

Below is the log (host mode)

==> Checking Bacularis config...
==> Checking DB...
==> It looks like You run bacula-server before. Configuration files are set, but database is empty. Make sure everything going right.
===== You can ommit this check by setting ENV 'check=0', but this will cause importing clean database, clean schema without history of backups done in the past
==> Creating Storage daemon config...
==> Creating File daemon config...
==> Creating Bacula Director config...
==> Checking Bacularis config...
==> Checking DB...
==> Catalog database empty. Structure creating...
Creating postgresql database
ALTER DATABASE
Creation of bacula database succeeded.
Database encoding OK
Making postgresql tables
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
ALTER TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE TABLE
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
CREATE TABLE
CREATE INDEX
INSERT 0 1
Creation of Bacula PostgreSQL tables succeeded.
Updating password for user admin
Updating password for user admin
==> Starting...
==> .......Storage Daemon...
Starting the Bacula Storage daemon
==> .......File Daemon...
Starting the Bacula File daemon
==> .......Bacula Director...
Starting the Bacula Director daemon
==> .......Bacula Web...
2024-03-26 14:42:07,148 INFO Set uid to user 0 succeeded
2024-03-26 14:42:07,150 INFO supervisord started with pid 1
2024-03-26 14:42:08,153 INFO spawned: 'bacularis' with pid 516
2024-03-26 14:42:08,155 INFO spawned: 'mailserver' with pid 517
2024-03-26 14:42:08,158 INFO spawned: 'php' with pid 518
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action '-D FOREGROUND' failed.
The Apache error log may have more information.
2024-03-26 14:42:08,197 INFO exited: bacularis (exit status 1; not expected)
2024-03-26 14:42:09,228 INFO spawned: 'bacularis' with pid 530
2024-03-26 14:42:09,229 INFO success: mailserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-26 14:42:09,229 INFO success: php entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action '-D FOREGROUND' failed.
The Apache error log may have more information.
2024-03-26 14:42:09,265 INFO exited: bacularis (exit status 1; not expected)
2024-03-26 14:42:11,269 INFO spawned: 'bacularis' with pid 533
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Here is Bridge mode same steps which lets me login with the admin usr/pw but then that pop up comes up image

==> Checking Bacularis config...
==> Checking DB...
==> Starting...
==> .......Storage Daemon...
Starting the Bacula Storage daemon
==> .......File Daemon...
Starting the Bacula File daemon
==> .......Bacula Director...
Starting the Bacula Director daemon
==> .......Bacula Web...
2024-03-26 14:46:06,273 INFO Set uid to user 0 succeeded
2024-03-26 14:46:06,275 INFO supervisord started with pid 1
2024-03-26 14:46:07,278 INFO spawned: 'bacularis' with pid 479
2024-03-26 14:46:07,280 INFO spawned: 'mailserver' with pid 480
2024-03-26 14:46:07,283 INFO spawned: 'php' with pid 481
2024-03-26 14:46:08,350 INFO success: bacularis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-26 14:46:08,350 INFO success: mailserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-26 14:46:08,350 INFO success: php entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-26 14:46:11,354 WARN received SIGTERM indicating exit request
2024-03-26 14:46:11,354 INFO waiting for bacularis, mailserver, php to die
2024-03-26 14:46:12,356 INFO stopped: php (exit status 0)
2024-03-26 14:46:12,358 INFO stopped: mailserver (terminated by SIGTERM)
2024-03-26 14:46:12,359 INFO stopped: bacularis (terminated by SIGTERM)
==> Creating Storage daemon config...
==> Creating File daemon config...
==> Creating Bacula Director config...
==> Checking Bacularis config...
==> Checking DB...
==> Catalog database empty. Structure creating...
Creating postgresql database
ALTER DATABASE
Creation of bacula database succeeded.
Database encoding OK
Making postgresql tables
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
ALTER TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE TABLE
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
CREATE TABLE
CREATE INDEX
INSERT 0 1
Creation of Bacula PostgreSQL tables succeeded.
Updating password for user admin
Updating password for user admin
==> Starting...
==> .......Storage Daemon...
Starting the Bacula Storage daemon
==> .......File Daemon...
Starting the Bacula File daemon
==> .......Bacula Director...
Starting the Bacula Director daemon
==> .......Bacula Web...
2024-03-26 14:47:16,068 INFO Set uid to user 0 succeeded
2024-03-26 14:47:16,071 INFO supervisord started with pid 1
2024-03-26 14:47:17,074 INFO spawned: 'bacularis' with pid 516
2024-03-26 14:47:17,076 INFO spawned: 'mailserver' with pid 517
2024-03-26 14:47:17,078 INFO spawned: 'php' with pid 518
2024-03-26 14:47:18,148 INFO success: bacularis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-26 14:47:18,148 INFO success: mailserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-03-26 14:47:18,148 INFO success: php entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
vrx-666 commented 7 months ago

Thanks, fix for host mode is tested, I missed one important thing before. New image version should be available in one hour. You should clean all folders used in container configuration and drop all database tables. Bridge mode is independent for this error. I don't know why You have curl error yet. What happend when You click OK on this error pop-up?

BigWebstas commented 7 months ago

When you click ok it would just close the dialog box but if you navigated to another page it would come back up, I really apprecate your help

vrx-666 commented 7 months ago

Please, let me know if new version working in host network mode with Your Unraid configuration.