Hey !
Thanks again for all your advices and your help.
Just a final asking.
You probably know that Philippe built a cluster bacularis system. So, the first bacularis works perfectly, IHM and API included ; then, now, with your lights, on the second one, i can make all API request with curl and interact with the API part of the webserver (the reason why we 'lost' permissions access files/folders despite the good informations displayed on the terminal seems does'nt belong to this world...). But the IHM part still doest not work.
I get this error on the IHM:
Error 4 - Problem with connection to bconsole. Output=>Connecting to Directormy-webserver:port-bacula-dir, Exitcode=>1
Error also present on the /usr/share/bacularis/protected/API/Logs/bacularis-web.log :
2024-03-11 09:28:41 [Application] BaculumAPIClient.php:189: API REQUEST ==> https://localhost:port/api/v2/directors?director=
2024-03-11 09:28:41 [Application] BaculumAPIClient.php:460: {"output":["director-dir"],"error":0}
2024-03-11 09:28:41 [Application] BaculumAPIClient.php:486: stdClass Object
(
[output] => Array
(
[0] => director-dir
)
[error] => 0
)
2024-03-11 09:28:41 [Application] BaculumAPIClient.php:189: API REQUEST ==> https://localhost:port/api/v2/config?director=director-dir
2024-03-11 09:28:41 [Application] BaculumAPIClient.php:460: {"output":[{"component_type":"dir","component_name":"director-dir","state":true,"error_msg":""},{"component_type":"sd","component_name":"director-sd","state":true,"error_msg":""},{"component_type":"fd","component_name":"director-fd","state":true,"error_msg":""},{"component_type":"bcons","component_name":"director-dir","state":true,"error_msg":""}],"error":0}
2024-03-11 09:28:41 [Application] BaculumAPIClient.php:486: stdClass Object
(
[output] => Array
(
[0] => stdClass Object
(
[component_type] => dir
[component_name] => director-dir
[state] => 1
[error_msg] =>
[1] => stdClass Object
(
[component_type] => sd
[component_name] => director-sd
[state] => 1
[error_msg] =>
)
[2] => stdClass Object
(
[component_type] => fd
[component_name] => director-fd
[state] => 1
[error_msg] =>
)
[3] => stdClass Object
(
[component_type] => bcons
[component_name] => director-dir
[state] => 1
[error_msg] =>
)
)
[error] => 0
)
That's something i don't find strange because of:
~$ sudo netstat -anp | grep LISTEN | grep baculatcp 0 0 0.0.0.0:port 0.0.0.0:* LISTEN 2598014/bacula-fd
tcp 0 0 0.0.0.0:port 0.0.0.0:* LISTEN 2598021/bacula-sd
Which is compliant with the daemon status :
~$ sudo systemctl status bacula-dir.service
● bacula-dir.service - Bacula Director Daemon service
Loaded: loaded (/lib/systemd/system/bacula-dir.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-03-11 10:24:45 CET; 59min ago
Process: 2702747 ExecStart=/opt/bacula/bin/bacula-dir -fP -c /opt/bacula/etc/bacula-dir.conf (code=exited, status=1/FAILURE)
Main PID: 2702747 (code=exited, status=1/FAILURE)
CPU: 47ms
Mar 11 10:24:45 my-webserver bacula-dir[2702747]: bacula-dir: bdb.h:143-0 bdb.h:143 update UPDATE Pool SET NumVols=2,MaxVols=0,UseOnce=0,UseCatalog=1,AcceptAnyVolume=0,VolRetention='300',VolUseDuration='300',MaxVolJobs=1,MaxVolFiles=0,MaxVolBytes=0,Recycle=1>
Mar 11 10:24:45
my-webserver bacula-dir[2702747]: ERROR: cannot execute UPDATE in a read-only transaction
Mar 11 10:24:45
my-webserver bacula-dir[2702747]: bacula-dir: bdb.h:143-0 bdb.h:143 update UPDATE Pool SET NumVols=0,MaxVols=0,UseOnce=0,UseCatalog=1,AcceptAnyVolume=0,VolRetention='31536000',VolUseDuration='86400',MaxVolJobs=0,MaxVolFiles=0,MaxVolBytes=0,Re>
Mar 11 10:24:45
my-webserver bacula-dir[2702747]: ERROR: cannot execute UPDATE in a read-only transaction
Mar 11 10:24:45
my-webserver bacula-dir[2702747]: bacula-dir: bdb.h:143-0 bdb.h:143 update UPDATE Storage SET AutoChanger=0 WHERE StorageId=3 failed:
Mar 11 10:24:45
my-webserver bacula-dir[2702747]: ERROR: cannot execute UPDATE in a read-only transaction
Mar 11 10:24:45
my-webserver bacula-dir[2702747]: 11-Mar 10:24 bacula-dir ERROR TERMINATION
Mar 11 10:24:45
my-webserver bacula-dir[2702747]: Please correct configuration file: /opt/bacula/etc/bacula-dir.conf
Mar 11 10:24:45
my-webserver systemd[1]: bacula-dir.service: Main process exited, code=exited, status=1/FAILURE
Mar 11 10:24:45
my-webserver systemd[1]: bacula-dir.service: Failed with result 'exit-code'.
Which brings me to my question : it seems to me that before we could navigate on the two bacularis webserver without any problem even if the daemon was in this same state... Did i dream or that's something possible ? And if it's something possible, what could be blocking ?
With all my greetings !
Best regards,
Romain