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:
> 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 bareos-users...@googlegroups.com. > 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 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 > > -- 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+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/bareos-users/65226f4e-b902-4961-9f8e-bd081b0d8040n%40googlegroups.com.