Bareos Web-UI after Update to Version 24 with error

298 views
Skip to first unread message

Stefan Harbich

unread,
Feb 5, 2025, 4:54:59 AM2/5/25
to bareos-users
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

Stefan Harbich

unread,
Feb 5, 2025, 12:37:29 PM2/5/25
to bareos-users

Hello, how can I uninstall version 24 and reinstall version 23.1.1? Version 24 is very buggy.

Stefan Harbich

unread,
Feb 5, 2025, 1:04:07 PM2/5/25
to bareos-users
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;
}
...

2025_02_05_bareos-webui-error.png

Bruno Friedmann (bruno-at-bareos)

unread,
Feb 6, 2025, 3:42:38 AM2/6/25
to bareos-users
Seems you have a mix of version between director and webui. This is documented, you need webui and director to be on same version.

Stefan Harbich

unread,
Feb 6, 2025, 4:24:32 PM2/6/25
to bareos-users
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?

Stefan Harbich

unread,
Feb 6, 2025, 7:54:27 PM2/6/25
to bareos-users
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???

Sebastian Sura

unread,
Feb 7, 2025, 12:45:34 AM2/7/25
to bareos...@googlegroups.com

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:
--
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 bareos-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bareos-users/d8372aed-0db0-498e-b989-2615998116aen%40googlegroups.com.
-- 
 Sebastian Sura                  sebasti...@bareos.com
 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
Message has been deleted
Message has been deleted

Stefan Harbich

unread,
Feb 7, 2025, 11:00:49 AM2/7/25
to Sebastian Sura, bareos...@googlegroups.com
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?

Kind Regards
Stefan Harbich
Message has been deleted
Message has been deleted
Message has been deleted

Sebastian Sura

unread,
Feb 10, 2025, 1:42:53 AM2/10/25
to Stefan Harbich, bareos...@googlegroups.com

Hi Stefan,

the director probably refuses to restart because of the systemd restart limit.  Try executing

systemctl reset-failed bareos-dir.service
systemctl start bareos-dir.service

as can be seen here: 'Feb 07 16:42:21 dsme01 systemd[1]: bareos-director.service: Start request repeated too quickly'
Could you send us a debug log of the director ? I.e. do

$ bconsole
*setdebug level=500 trace=1 dir
*.api 2

This should show us why the director keeps crashing for you!

Kind Regards
Sebastian Sura

Am 07.02.25 um 17:00 schrieb Stefan Harbich:

Stefan Harbich

unread,
Feb 10, 2025, 2:51:03 AM2/10/25
to Sebastian Sura, bareos...@googlegroups.com
Hello Sebastion,

nothing is displayed in the debug logging.
...
@dsme01:~# bconsole
Connecting to Director bareos.intern.harnet.de: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.
*setdebug level=500 trace=1 dir
level=500 trace=1 hangup=0 timestamp=0 tracefilename=/var/lib/bareos/bareos-dir.trace
You have messages.
*.api 2
{
"jsonrpc": "2.0",
"id": null,
"result": {
"api": 2
}
@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: activating (auto-restart) (Result: exit-code) since Mon 2025-02-10 08:47:09 CET; 20s ago
Docs: man:bareos-dir(8)
Process: 3902117 ExecStart=/usr/sbin/bareos-dir -f (code=exited, status=127)
Main PID: 3902117 (code=exited, status=127)

@dsme01:~# tail -f /var/lib/bareos/bareos-dir.trace
07-Feb-2025 23:46:56.274743 bareos-dir (200): dird/scheduler_private.cc:215-0 run@55d5b6ff34b0: run_now=0 run_next_hour=0
07-Feb-2025 23:46:56.274755 bareos-dir (200): dird/scheduler_private.cc:215-0 run@55d5b6ff3630: run_now=0 run_next_hour=0
07-Feb-2025 23:46:56.274766 bareos-dir (200): dird/scheduler_private.cc:215-0 run@55d5b6ff37b0: run_now=0 run_next_hour=0
07-Feb-2025 23:46:56.274778 bareos-dir (200): dird/scheduler_private.cc:232-0 Finished AddJobsForThisAndNextHourToQueue
07-Feb-2025 23:46:57.773508 bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
07-Feb-2025 23:47:05.131724 bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
07-Feb-2025 23:47:15.141965 bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
07-Feb-2025 23:47:23.406899 bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
^C
...
Greetings from Stefan

Stefan Harbich

unread,
Feb 10, 2025, 4:15:41 AM2/10/25
to Sebastian Sura, bareos...@googlegroups.com
Hello Sebastian,
unfortunately I can't get the debugging to work. I did the following.
...
root@dsme01:~# test -e /proc/sys/kernel/yama/ptrace_scope && echo 0 > /proc/sys/kernel/yama/ptrace_scope
root@dsme01:~# ps fax | grep bareos-dir
233480 pts/2 S+ 0:00 \_ grep bareos-dir
230841 ? Ssl 0:00 /usr/sbin/bareos-dir -f
root@dsme01:~# btraceback /usr/sbin/bareos-dir 230841
bsmtp: tools/bsmtp.cc:462-0 Failed to connect to mailhost localhost
...

Do you know where I can change the btraceback script?

Greetings from Stefan Harbich

Stefan Harbich

unread,
Feb 10, 2025, 4:37:58 PM2/10/25
to Sebastian Sura, bareos...@googlegroups.com
Hello Sebastian, with Bareos version 23.0.0 the call ".api 2" works without any problems and "btraceback" also works without any problems with version 23.0.0.
...
root@dsme01:~# bconsole
Connecting to Director bareos.intern.harnet.de:9101
Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
1000 OK: bareos-dir Version: 23.0.0~pre1180.9efbeb089 (31 October 2023)
Bareos pre-release (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",
"result": {
"api": 2
},
"id": null
}
...
So it seems that version 24 came onto the market a little too hastily?

Greetings from Stefan Harbich

Bruno Friedmann (bruno-at-bareos)

unread,
Feb 11, 2025, 3:58:41 AM2/11/25
to bareos-users
We are not able to reproduce none of your trouble, so 24.0.0 work perfectly well out of the box on Debian 11 and all other system we build on.
It works perfectly well even in case of upgrade of Bareos from 19.2 to 24  (each steps). 

But there's one installation that seems to bug, it is yours, for an unknown reason.
What we didn't test because it is of our scope is doing dist-upgrade on Debian.

So please refrain yourself in doing such sentences: t seems that version 24 came onto the market a little too hastily? 
You had 12 months to test it (because before being in current, it was always available in next repo).

Regards

Stefan Harbich

unread,
Feb 11, 2025, 4:11:06 AM2/11/25
to bareos-users
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
  }

Stefan Harbich

unread,
Feb 11, 2025, 4:11:06 AM2/11/25
to bareos-users
Hello, I have debugging enabled. But I don't see anything when I access the WebUI.
...
# tail -f /var/lib/bareos/bareos-dir.trace
bareos-dir (10): dird/ua_audit.cc:134-0 : Console [default] from [127.0.0.1] cmdline configure add console name=admin password=q1w2e3r4 profile=webui-admin tlsenable=false
bareos-dir (500): lib/lex.cc:295-0 Trying glob match with /etc/bareos/bareos-dir.d/console/admin.conf.tmp
bareos-dir (100): lib/lex.cc:315-0 glob /etc/bareos/bareos-dir.d/console/admin.conf.tmp: 1 files
bareos-dir (100): lib/lex.cc:214-0 open config file: /etc/bareos/bareos-dir.d/console/admin.conf.tmp
bareos-dir (500): lib/lex.cc:295-0 Trying glob match with /etc/bareos/bareos-dir.d/console/admin.conf.tmp
bareos-dir (100): lib/lex.cc:315-0 glob /etc/bareos/bareos-dir.d/console/admin.conf.tmp: 1 files
bareos-dir (100): lib/lex.cc:214-0 open config file: /etc/bareos/bareos-dir.d/console/admin.conf.tmp

bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (250): lib/bnet_server_tcp.cc:385-0 Cannot set TCP_ULP on socket: ERR=Datei oder Verzeichnis nicht gefunden.
Is the tls module not loaded?  kTLS will not work without it.bareos-dir (100): lib/bsock.cc:85-0 Construct BareosSocket
bareos-dir (100): lib/tls_openssl_private.cc:58-0 Construct TlsOpenSslPrivate
bareos-dir (100): lib/tls_openssl_private.cc:637-0 Set tcp filedescriptor: <10>
bareos-dir (100): lib/tls_openssl_private.cc:655-0 Set protocol: <>
bareos-dir (100): lib/tls_openssl_private.cc:577-0 Set ca_certfile: <>
bareos-dir (100): lib/tls_openssl_private.cc:583-0 Set ca_certdir: <>
bareos-dir (100): lib/tls_openssl_private.cc:589-0 Set crlfile_: <>
bareos-dir (100): lib/tls_openssl_private.cc:595-0 Set certfile_: <>
bareos-dir (100): lib/tls_openssl_private.cc:601-0 Set keyfile_: <>
bareos-dir (100): lib/tls_openssl_private.cc:619-0 Set dhfile_: <>
bareos-dir (100): lib/tls_openssl_private.cc:643-0 Set cipherlist: <>
bareos-dir (100): lib/tls_openssl_private.cc:649-0 Set ciphersuites: <>
bareos-dir (100): lib/tls_openssl_private.cc:625-0 Set Verify Peer: <false>
bareos-dir (100): lib/tls_openssl_private.cc:631-0 Set ktls: <false>
bareos-dir (100): lib/tls_openssl_private.cc:501-0 psk_server_cb. identitiy: R_CLIENT nsthwme02-fd.
bareos-dir (100): lib/res.cc:190-0 Could not get tls resource for 1.
bareos-dir (100): lib/tls_openssl_private.cc:517-0 Error, TLS-PSK credentials not found.
bareos-dir (50): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned ssl-error
bareos-dir (50): lib/tls_openssl_private.cc:421-0 jcr=0 Connect failure: ERR=error:14201076:SSL routines:tls_choose_sigalg:no suitable signature algorithm
bareos-dir (50): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned ssl-error
bareos-dir (100): lib/tls_openssl_private.cc:89-0 Destruct TlsOpenSslPrivate
bareos-dir (50): lib/bsock.cc:645-0 TLS negotiation failed.
bareos-dir (100): lib/bsock.cc:137-0 Destruct BareosSocket

bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (200): dird/scheduler_private.cc:195-0 Begin AddJobsForThisAndNextHourToQueue
bareos-dir (200): dird/run_hour_validator.cc:85-0 now = 67a637ec: h=17 m=1 md=6 wd=5 wom=0 woy=6 yday=37
bareos-dir (200): dird/run_hour_validator.cc:85-0 now = 67a645fc: h=18 m=1 md=6 wd=5 wom=0 woy=6 yday=37
bareos-dir (300): dird/scheduler_private.cc:53-0 Scheduler: Check if job IsAutomaticSchedulerJob RestoreFiles.
bareos-dir (300): dird/scheduler_private.cc:53-0 Scheduler: Check if job IsAutomaticSchedulerJob BackupCatalog.
bareos-dir (300): dird/scheduler_private.cc:60-0 Scheduler: Check if job IsAutomaticSchedulerJob BackupCatalog: Yes.
bareos-dir (200): dird/scheduler_private.cc:208-0 Got job: BackupCatalog
bareos-dir (200): dird/scheduler_private.cc:215-0 run@7ff20402e0c0: run_now=0 run_next_hour=0
bareos-dir (300): dird/scheduler_private.cc:53-0 Scheduler: Check if job IsAutomaticSchedulerJob backup-bareos-fd.
bareos-dir (300): dird/scheduler_private.cc:60-0 Scheduler: Check if job IsAutomaticSchedulerJob backup-bareos-fd: Yes.
bareos-dir (200): dird/scheduler_private.cc:208-0 Got job: backup-bareos-fd
bareos-dir (200): dird/scheduler_private.cc:215-0 run@7ff20402dc40: run_now=0 run_next_hour=0
bareos-dir (200): dird/scheduler_private.cc:215-0 run@7ff20402ddc0: run_now=0 run_next_hour=0
bareos-dir (200): dird/scheduler_private.cc:215-0 run@7ff20402df40: run_now=0 run_next_hour=0

bareos-dir (200): dird/scheduler_private.cc:232-0 Finished AddJobsForThisAndNextHourToQueue
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (250): lib/bnet_server_tcp.cc:385-0 Cannot set TCP_ULP on socket: ERR=Datei oder Verzeichnis nicht gefunden.
Is the tls module not loaded?  kTLS will not work without it.bareos-dir (100): lib/bsock.cc:85-0 Construct BareosSocket
bareos-dir (100): lib/tls_openssl_private.cc:58-0 Construct TlsOpenSslPrivate
bareos-dir (100): lib/tls_openssl_private.cc:637-0 Set tcp filedescriptor: <10>
bareos-dir (100): lib/tls_openssl_private.cc:655-0 Set protocol: <>
bareos-dir (100): lib/tls_openssl_private.cc:577-0 Set ca_certfile: <>
bareos-dir (100): lib/tls_openssl_private.cc:583-0 Set ca_certdir: <>
bareos-dir (100): lib/tls_openssl_private.cc:589-0 Set crlfile_: <>
bareos-dir (100): lib/tls_openssl_private.cc:595-0 Set certfile_: <>
bareos-dir (100): lib/tls_openssl_private.cc:601-0 Set keyfile_: <>
bareos-dir (100): lib/tls_openssl_private.cc:619-0 Set dhfile_: <>
bareos-dir (100): lib/tls_openssl_private.cc:643-0 Set cipherlist: <>
bareos-dir (100): lib/tls_openssl_private.cc:649-0 Set ciphersuites: <>
bareos-dir (100): lib/tls_openssl_private.cc:625-0 Set Verify Peer: <false>
bareos-dir (100): lib/tls_openssl_private.cc:631-0 Set ktls: <false>
bareos-dir (100): lib/tls_openssl_private.cc:501-0 psk_server_cb. identitiy: R_CLIENT nsthwme02-fd.
bareos-dir (100): lib/res.cc:190-0 Could not get tls resource for 1.
bareos-dir (100): lib/tls_openssl_private.cc:517-0 Error, TLS-PSK credentials not found.
bareos-dir (50): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned ssl-error
bareos-dir (50): lib/tls_openssl_private.cc:421-0 jcr=0 Connect failure: ERR=error:14201076:SSL routines:tls_choose_sigalg:no suitable signature algorithm
bareos-dir (50): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned ssl-error
bareos-dir (100): lib/tls_openssl_private.cc:89-0 Destruct TlsOpenSslPrivate
bareos-dir (50): lib/bsock.cc:645-0 TLS negotiation failed.
bareos-dir (100): lib/bsock.cc:137-0 Destruct BareosSocket
bareos-dir (250): lib/bnet_server_tcp.cc:385-0 Cannot set TCP_ULP on socket: ERR=Datei oder Verzeichnis nicht gefunden.
Is the tls module not loaded?  kTLS will not work without it.bareos-dir (100): lib/bsock.cc:85-0 Construct BareosSocket
bareos-dir (200): lib/bsock.cc:732-0 Identified from Bareos handshake: admin-R_CONSOLE recognized version: 24.0
bareos-dir (200): lib/try_tls_handshake_as_a_server.cc:61-0 TlsPolicy for admin is 0
bareos-dir (110): dird/socket_server.cc:105-0 Conn: Hello admin calling version 24.0.1~pre53.6ffc81313
bareos-dir (100): lib/jcr.cc:185-0 Construct JobControlRecord
bareos-dir (10): dird/jcr_util.cc:35-0 NewDirectorJcr: configuration_resources_ is at 7ff204006d60 2025-02-07_17:40:55
bareos-dir (100): dird/storage.cc:166-0 write_storage_list=File
bareos-dir (100): dird/storage.cc:176-0 write_storage=File where=Job resource
bareos-dir (100): dird/job.cc:1516-0 JobId=0 created Job=-Console-.2025-02-07_17.43.13_04
bareos-dir (50): lib/cram_md5.cc:106-0 send: auth cram-md5 <847169173.1738946593@R_DIRECTOR::bareos-dir> ssl=0
bareos-dir (50): lib/cram_md5.cc:135-0 Authenticate OK CUhio65vjddEFSagBz31LQ
bareos-dir (100): lib/cram_md5.cc:167-0 cram-get received: auth cram-md5 <6591717687.1738946593@php-bsock> ssl=0
bareos-dir (50): lib/cram_md5.cc:61-0 my_name: <R_DIRECTOR::bareos-dir> - challenge_name: <php-bsock>
bareos-dir (99): lib/cram_md5.cc:232-0 sending resp to challenge: 0iAdlioMdVRRJ9NYrHN/BA
...
Kind Regards
Stefan Harbich
Sebastian Sura schrieb am Freitag, 7. Februar 2025 um 06:45:34 UTC+1:

Stefan Harbich

unread,
Feb 11, 2025, 4:11:06 AM2/11/25
to bareos-users
Hello, I activated debugging and issued the command ".api 2".
...
...

Stefan Harbich

unread,
Feb 11, 2025, 4:11:06 AM2/11/25
to bareos-users
Hello, I activated debugging and issued the command ".api 2".
...
root@dsme01:~# cat /var/lib/bareos/bareos-dir.trace

bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
bareos-dir (200): dird/scheduler_private.cc:195-0 Begin AddJobsForThisAndNextHourToQueue
bareos-dir (200): dird/run_hour_validator.cc:85-0 now = 67a632dd: h=17 m=1 md=6 wd=5 wom=0 woy=6 yday=37
bareos-dir (200): dird/run_hour_validator.cc:85-0 now = 67a640ed: h=18 m=1 md=6 wd=5 wom=0 woy=6 yday=37

bareos-dir (300): dird/scheduler_private.cc:53-0 Scheduler: Check if job IsAutomaticSchedulerJob RestoreFiles.
bareos-dir (300): dird/scheduler_private.cc:53-0 Scheduler: Check if job IsAutomaticSchedulerJob BackupCatalog.
bareos-dir (300): dird/scheduler_private.cc:60-0 Scheduler: Check if job IsAutomaticSchedulerJob BackupCatalog: Yes.
bareos-dir (200): dird/scheduler_private.cc:208-0 Got job: BackupCatalog
bareos-dir (200): dird/scheduler_private.cc:215-0 run@5557407bd5b0: run_now=0 run_next_hour=0

bareos-dir (300): dird/scheduler_private.cc:53-0 Scheduler: Check if job IsAutomaticSchedulerJob backup-bareos-fd.
bareos-dir (300): dird/scheduler_private.cc:60-0 Scheduler: Check if job IsAutomaticSchedulerJob backup-bareos-fd: Yes.
bareos-dir (200): dird/scheduler_private.cc:208-0 Got job: backup-bareos-fd
bareos-dir (200): dird/scheduler_private.cc:215-0 run@5557407bd130: run_now=0 run_next_hour=0
bareos-dir (200): dird/scheduler_private.cc:215-0 run@5557407bd2b0: run_now=0 run_next_hour=0
bareos-dir (200): dird/scheduler_private.cc:215-0 run@5557407bd430: run_now=0 run_next_hour=0

bareos-dir (200): dird/scheduler_private.cc:232-0 Finished AddJobsForThisAndNextHourToQueue
bareos-dir (500): lib/crypto_openssl.cc:1790-0 SSL_get_error() returned want-read
...
Kind Regards
Stefan Harbich
Stefan Harbich schrieb am Freitag, 7. Februar 2025 um 17:00:49 UTC+1:

Stefan Harbich

unread,
Feb 11, 2025, 4:11:06 AM2/11/25
to bareos-users
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
  }

Bruno Friedmann (bruno-at-bareos)

unread,
Feb 11, 2025, 6:57:26 AM2/11/25
to bareos-users
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.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages