> What else can I do? Reinstall Bareos for the fourth tim As early said, maybe you can try to use a newly debian 12 setup.
On Tuesday, 11 February 2025 at 10:11:06 UTC+1 Stefan Harbich wrote: > Hello Sebastian, > something is wrong. When I entered the command ".api 2" in the bconsole, > the bconsole closed and the Bareos Director quit? Very strange. Now I can't > start the Bareos Director at all. Something is wrong. Unfortunately, the > error message in the journal is not very informative. > ... > root@dsme01:~# bconsole > Connecting to Director localhost:9101 > Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3 > 1000 OK: bareos-dir Version: 24.0.1~pre53.6ffc81313 (03 February 2025) > Bareos community build (UNSUPPORTED). > Get professional support from https://www.bareos.com > You are connected using the default console > > Enter a period (.) to cancel a command. > *.api 2 > { > "jsonrpc": "2.0", > "id": null, > "result": { > "api": 2 > } > }root@dsme01:~# bconsole > Connecting to Director localhost:9101 > Failed to connect to Director. Giving up. > root@dsme01:~# systemctl status bareos-dir.service > ● bareos-director.service - Bareos Director Daemon service > Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; > vendor preset: enabled) > Active: failed (Result: exit-code) since Fri 2025-02-07 16:39:52 CET; > 32s ago > Docs: man:bareos-dir(8) > Process: 1536012 ExecStart=/usr/sbin/bareos-dir -f (code=exited, > status=127) > Main PID: 1536012 (code=exited, status=127) > > Feb 07 16:39:52 dsme01 systemd[1]: bareos-director.service: Scheduled > restart job, restart counter is at 2. > Feb 07 16:39:52 dsme01 systemd[1]: Stopped Bareos Director Daemon service. > Feb 07 16:39:52 dsme01 systemd[1]: bareos-director.service: Start request > repeated too quickly. > Feb 07 16:39:52 dsme01 systemd[1]: bareos-director.service: Failed with > result 'exit-code'. > Feb 07 16:39:52 dsme01 systemd[1]: Failed to start Bareos Director Daemon > service. > root@dsme01:~# systemctl start bareos-dir.service > Job for bareos-director.service failed because the control process exited > with error code. > See "systemctl status bareos-director.service" and "journalctl -xe" for > details. > ... > journalctl: > ... > Feb 07 16:42:21 dsme01 systemd[1]: bareos-director.service: Start request > repeated too quickly. > Feb 07 16:42:21 dsme01 systemd[1]: bareos-director.service: Failed with > result 'exit-code'. > Feb 07 16:42:21 dsme01 systemd[1]: Failed to start Bareos Director Daemon > service. > ... > What else can I do? Reinstall Bareos for the fourth time? > > Sebastian Sura schrieb am Freitag, 7. Februar 2025 um 06:45:34 UTC+1: > >> Hello Stefan, >> >> The api mode specifies how the director will talk to the other side. Api >> mode 2 is basically json. You can try it out yourself in the bconsole: >> >> $ bconsole >> ... >> Enter a period (.) to cancel a command. >> *.api 2 >> { >> "jsonrpc": "2.0", >> "id": null, >> "result": { >> "api": 2 >> } >> }*list jobs >> { >> "jsonrpc": "2.0", >> "id": null, >> "result": { >> "jobs": [] >> } >> }* >> >> Does this work for you as well ? Could you enable debug tracing on the >> director before trying to connect with the webui ? >> You can do so with `bconsole <<< "setdebug level=500 trace=1 director"`. >> Please post the trace file once you have tried connecting. >> You can turn it off afterwards like so: `bconsole <<< "setdebug level=20 >> trace=0 director"`. >> >> Kind Regards >> Sebastian Sura >> Am 07.02.25 um 01:54 schrieb Stefan Harbich: >> >> Hello Bruno, >> i have now uninstalled everything. Deleted all directories. Completely >> reinstalled. Whenever I want to log in via the WebUI I get the same message: >> >> Director required API 2 mode. WHAT IS THAT??? >> >> Stefan Harbich schrieb am Donnerstag, 6. Februar 2025 um 22:24:32 UTC+1: >> >>> Hello Bruno, >>> i have all Bareos versions at the same version: >>> ... >>> root@dsme01:~# dpkg -l bareos-* >>> Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten >>> | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/ >>> Halb installiert/Trigger erWartet/Trigger anhängig >>> |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: >>> GROSS=schlecht) >>> ||/ Name Version >>> Architektur Beschreibung >>> >>> +++-===========================================-=========================-============-=============================================================================== >>> ii bareos-bconsole >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - text console >>> ii bareos-client >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - client metapackage >>> ii bareos-common >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - common files >>> ii bareos-database-common >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - common catalog files >>> ii bareos-database-postgresql >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - PostgreSQL backend >>> ii bareos-database-tools >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - database tools >>> ii bareos-director >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - director daemon >>> un bareos-director-python-plugin <keine> >>> <keine> (keine Beschreibung vorhanden) >>> ii bareos-director-python-plugins-common >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - director Python plugin common files >>> ii bareos-director-python3-plugin >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - director Python plugin >>> ii bareos-filedaemon >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - file daemon >>> ii bareos-filedaemon-ldap-python-plugin >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - file daemon LDAP plugin >>> ii bareos-filedaemon-mariabackup-python-plugin >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - file daemon Mariabackup plugin >>> ii bareos-filedaemon-postgresql-python-plugin >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - file daemon PostgreSQL plugin >>> un bareos-filedaemon-python-plugin <keine> >>> <keine> (keine Beschreibung vorhanden) >>> ii bareos-filedaemon-python-plugins-common >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - file daemon Python plugin common files >>> ii bareos-filedaemon-python3-plugin >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - file daemon Python plugin >>> ii bareos-storage >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - storage daemon >>> un bareos-storage-tape <keine> >>> <keine> (keine Beschreibung vorhanden) >>> ii bareos-tools >>> 24.0.1~pre53.6ffc81313-24 amd64 Backup Archiving Recovery Open >>> Sourced - common tools >>> un bareos-traymonitor <keine> >>> <keine> (keine Beschreibung vorhanden) >>> un bareos-universal-client <keine> >>> <keine> (keine Beschreibung vorhanden) >>> ii bareos-webui >>> 24.0.1~pre53.6ffc81313-24 all Backup Archiving Recovery Open >>> Sourced - webui >>> ... >>> When I access the WebUI I get the above error message: >>> ... >>> Decoding failed: Syntax error >>> Error: This Bareos Director does not support the required API 2 mode. >>> ... >>> What does this mean? >>> >>> Bruno Friedmann (bruno-at-bareos) schrieb am Donnerstag, 6. Februar 2025 >>> um 09:42:38 UTC+1: >>> >>>> Seems you have a mix of version between director and webui. This is >>>> documented, you need webui and director to be on same version. >>>> >>>> On Wednesday, 5 February 2025 at 19:04:07 UTC+1 Stefan Harbich wrote: >>>> >>>>> Hello, I have added a picture of the error message. Also the nginx >>>>> configuration file: >>>>> ... >>>>> root@dsme01:~# cat /etc/nginx/sites-available/bareos.conf >>>>> server { >>>>> server_name bareos.intern.harnet.de; >>>>> listen bareos.intern.harnet.de:80; >>>>> return 301 https://$host$request_uri; >>>>> } >>>>> server { >>>>> ssl_certificate /etc/ssl/certs/bareos.intern.harnet.de.crt; >>>>> ssl_certificate_key /etc/ssl/private/bareos.intern.harnet.de.key; >>>>> ssl_dhparam /etc/ssl/certs/dhparams.pem; >>>>> listen bareos.intern.harnet.de:443 ssl; >>>>> root /var/www/html/bareos-webui/public; >>>>> location / { >>>>> index index.php; >>>>> try_files $uri $uri/ /index.php?$query_string; >>>>> } >>>>> location ~ .php$ { >>>>> include snippets/fastcgi-php.conf; >>>>> # php5-cgi alone: >>>>> # pass the PHP >>>>> # scripts to FastCGI server >>>>> # listening on 127.0.0.1:9000 >>>>> #fastcgi_pass 127.0.0.1:9000; >>>>> # php5-fpm: >>>>> fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; >>>>> # APPLICATION_ENV: set to 'development' or >>>>> 'production' >>>>> #fastcgi_param APPLICATION_ENV development; >>>>> fastcgi_param APPLICATION_ENV production; >>>>> } >>>>> access_log /var/log/nginx/bareos-access.log; >>>>> error_log /var/log/nginx/bareos-error.log; >>>>> } >>>>> ... >>>>> >>>>> Stefan Harbich schrieb am Mittwoch, 5. Februar 2025 um 18:37:29 UTC+1: >>>>> >>>>>> >>>>>> Hello, how can I uninstall version 24 and reinstall version 23.1.1? >>>>>> Version 24 is very buggy. >>>>>> Stefan Harbich schrieb am Mittwoch, 5. Februar 2025 um 10:54:59 UTC+1: >>>>>> >>>>>>> Hello, >>>>>>> after updating to version 24 I can no longer open the Bareos Web UI. >>>>>>> I get the following error message: >>>>>>> ... >>>>>>> Decoding failed: Syntax error >>>>>>> Error: This Bareos Director does not support the required API 2 mode >>>>>>> ... >>>>>>> The nginx log >>>>>>> ... >>>>>>> 2025/02/05 10:45:33 [error] 145129#145129: *7 FastCGI sent in >>>>>>> stderr: "PHP message: PHP Warning: unpack(): Type N: not enough input, >>>>>>> need 4, have 0 in >>>>>>> /var/www/html/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php >>>>>>> >>>>>>> on line 173PHP message: PHP Notice: Trying to access array offset on >>>>>>> value >>>>>>> of type bool in >>>>>>> /var/www/html/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php >>>>>>> >>>>>>> on line 174PHP message: PHP Warning: unpack(): Type N: not enough >>>>>>> input, >>>>>>> need 4, have 0 in >>>>>>> /var/www/html/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php >>>>>>> >>>>>>> on line 173PHP message: PHP Notice: Trying to access array offset on >>>>>>> value >>>>>>> of type bool in >>>>>>> /var/www/html/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php >>>>>>> >>>>>>> on line 174" while reading response header from upstream, client: >>>>>>> 192.168.30.71, server: , request: "POST / HTTP/1.1", upstream: >>>>>>> "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: " >>>>>>> bareos.intern.harnet.de", referrer: " >>>>>>> https://bareos.intern.example.com/" >>>>>>> 2025/02/05 10:45:33 [error] 145129#145129: *7 FastCGI sent in >>>>>>> stderr: "PHP message: PHP Notice: fwrite(): send of 10 bytes failed >>>>>>> with >>>>>>> errno=32 Broken pipe in >>>>>>> /var/www/html/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php >>>>>>> >>>>>>> on line 220" while reading upstream, client: 192.168.30.71, server: , >>>>>>> request: "POST / HTTP/1.1", upstream: >>>>>>> "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: " >>>>>>> bareos.intern.exemple.com", referrer: " >>>>>>> https://bareos.intern.example.com/" >>>>>>> ... >>>>>>> I'm using Fastcgi version 7.4. Do I need to update? >>>>>>> Greetings from Stefan Harbich >>>>>>> >>>>>> -- >> You received this message because you are subscribed to the Google Groups >> "bareos-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion visit >> https://groups.google.com/d/msgid/bareos-users/d8372aed-0db0-498e-b989-2615998116aen%40googlegroups.com >> >> <https://groups.google.com/d/msgid/bareos-users/d8372aed-0db0-498e-b989-2615998116aen%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> -- >> Sebastian Sura [email protected] >> Bareos GmbH & Co. KG Phone: +49 221 630693-0 >> https://www.bareos.com >> Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 >> Komplementär: Bareos Verwaltungs-GmbH >> Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz >> >> -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/bareos-users/3883a316-e7ba-4974-9868-059b1a1f38f5n%40googlegroups.com.
