Bacularis installation on Ubuntu 24.04 fails

23 views
Skip to first unread message

joseppe mayer

unread,
Sep 24, 2024, 12:44:26 PMSep 24
to bacularis
Hi Marcin,

I wanted to test the installation process on Ubuntu 24.04 now but I run into a "502 Bad Gateway" error. Nginx and PHP are up and running. How can I solve that problem. Thank you.

Best Regards,
Joseppe

Marcin Haba

unread,
Sep 24, 2024, 12:55:03 PMSep 24
to joseppe mayer, bacularis
On Tue, 24 Sept 2024 at 18:44, joseppe mayer <joseppe...@gmail.com> wrote:
>
> Hi Marcin,
>
> I wanted to test the installation process on Ubuntu 24.04 now but I run into a "502 Bad Gateway" error. Nginx and PHP are up and running. How can I solve that problem. Thank you.

Hi Joseppe,

Thanks for your report.

When exactly did you receive this error, on which step?

It looks like a problem in communication between Nginx <=> PHP. Could
you try to restart PHP-FPM like here:

systemctl restart php8.3-fpm

Is it better now?

Best regards,
Marcin Haba (gani)

joseppe mayer

unread,
Sep 24, 2024, 1:06:38 PMSep 24
to bacularis
When I tried to open the Bacularis webpage the first time after the installation.
I restarted PHP-FPM already a few times.

That's from the Nginx error log:

2024/09/24 17:01:52 [crit] 300#300: *6 connect() to unix:/run/php/php8.1-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.99, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "192.168.0.123:9097"

Marcin Haba

unread,
Sep 24, 2024, 1:13:17 PMSep 24
to joseppe mayer, bacularis
On Tue, 24 Sept 2024 at 19:06, joseppe mayer <joseppe...@gmail.com> wrote:
>
> When I tried to open the Bacularis webpage the first time after the installation.
> I restarted PHP-FPM already a few times.
>
> That's from the Nginx error log:

Hi Joseppe,

Thanks for showing us this log.

Are you sure you installed Bacularis packages for Ubuntu 24.04 Noble?
Nginx is asking about PHP 8.1 that is on Ubuntu 22.04 Jammy, but on
24.04 Noble. On Ubuntu 24.04 by default there is PHP 8.3.

joseppe mayer

unread,
Sep 24, 2024, 1:13:18 PMSep 24
to bacularis
I see now what the problem might be:

Nginx tries to connect to php8.1-fpm.sock but php8.3-fpm.sock is installed. Why does this happen? How can I change it?

joseppe mayer

unread,
Sep 24, 2024, 1:15:03 PMSep 24
to bacularis
Well I used the given command from the Bacularis webpage:

apt install bacularis bacularis-nginx

Marcin Haba

unread,
Sep 24, 2024, 1:18:20 PMSep 24
to joseppe mayer, bacularis
On Tue, 24 Sept 2024 at 19:15, joseppe mayer <joseppe...@gmail.com> wrote:
>
> Well I used the given command from the Bacularis webpage:
>
> apt install bacularis bacularis-nginx

Hi Joseppe,

Yes, this command is correct, but before running this command there is
added the package repository to
/etc/apt/sources.list.d/bacularis-app.list

Could I ask you about checking this bacularis-app.list if there is a
repo for 22.04 or 24.04?

joseppe mayer

unread,
Sep 24, 2024, 1:34:18 PMSep 24
to bacularis
Oh, I see now what went wrong. On the Bacularis repository credentials webpage still Ubuntu 22.04 was chosen. Didn't think of changing that. Will ty it again with the Ubuntu 24.04 repository credentials. Thank you.

joseppe mayer

unread,
Sep 24, 2024, 1:50:33 PMSep 24
to bacularis
Great. That worked.

But the example jobs are not working. It is supposed to be like this?

Termination: *** Backup Error *** Bacula-Ubuntu-24-dir JobId 1: Fatal error: No Job status returned from FD. Bacula-Ubuntu-24-dir JobId 1: Fatal error: Failed to start job on any of the storages defined! Bacula-Ubuntu-24-dir JobId 1: Storage daemon "File1" didn't accept Device "FileChgr1" because: 3924 Device "FileChgr1" not in SD Device resources or no matching Media Type or is disabled. Bacula-Ubuntu-24-dir JobId 1: Connected to Storage "File1" at localhost:9103 with TLS Bacula-Ubuntu-24-dir JobId 1: Start Backup JobId 1, Job=BackupClient1.2024-09-24_17.47.40_18

Marcin Haba

unread,
Sep 24, 2024, 2:00:36 PMSep 24
to joseppe mayer, bacularis
On Tue, 24 Sept 2024 at 19:50, joseppe mayer <joseppe...@gmail.com> wrote:
>
> Great. That worked.
>
> But the example jobs are not working. It is supposed to be like this?
>
> Termination: *** Backup Error *** Bacula-Ubuntu-24-dir JobId 1: Fatal error: No Job status returned from FD. Bacula-Ubuntu-24-dir JobId 1: Fatal error: Failed to start job on any of the storages defined! Bacula-Ubuntu-24-dir JobId 1: Storage daemon "File1" didn't accept Device "FileChgr1" because: 3924 Device "FileChgr1" not in SD Device resources or no matching Media Type or is disabled. Bacula-Ubuntu-24-dir JobId 1: Connected to Storage "File1" at localhost:9103 with TLS Bacula-Ubuntu-24-dir JobId 1: Start Backup JobId 1, Job=BackupClient1.2024-09-24_17.47.40_18

Hi Joseppe,

Thanks for your feedback. Good to hear that it started working.

Yes, on deb-based systems the pre-defined storage has defined
non-existing paths. This setting is provided in Bacula packages and it
requires adapting. You can adapt it or create new storage and devices.
The devices you can find in:

[Main menu] => [Page: Storage] => [Button: 'Details' for selected
storage] => [Tab: Configure storage daemon] => [SubTab: Device]

and there you need to edit all devices to set them existing paths.
After that you will need to restart the Bacula Storage Daemon. It can
be done in Bacularis or directly in the console.

joseppe mayer

unread,
Sep 25, 2024, 6:56:56 AMSep 25
to bacularis
Hi Marcin,

works like a charm! :-)

Thank you so much. However, I couldn’t figure out how to restart the Bacula Storage Daemon in Bacularis. Could you please let me know how this can be done?

Thank you again.

Best regards,
Joseppe

Marcin Haba

unread,
Sep 25, 2024, 7:04:17 AMSep 25
to joseppe mayer, bacularis
On Wed, 25 Sept 2024 at 12:56, joseppe mayer <joseppe...@gmail.com> wrote:
>
> Hi Marcin,
>
> works like a charm! :-)
>
> Thank you so much. However, I couldn’t figure out how to restart the Bacula Storage Daemon in Bacularis. Could you please let me know how this can be done?

Hi Joseppe,

Great :-)

The storage daemon restart you can find in this path:

[Main menu] => [Page: Storage] => [Button: 'Details' for selected
storage] => [Tab: Actions] => [Button: Restart]

Before using it, the 'Restart' action needs to be configured in the
Bacularis API panel. But if you installed Bacula through the Bacularis
wizard (as you did yesterday), you don't need to do it because
Bacularis configured it automatically during installation. So, just
please run "Restart" in the path above.

joseppe mayer

unread,
Sep 28, 2024, 4:16:33 PMSep 28
to bacularis
Hi Marcin,

Very good. Bacularis is great :-) 
Thank you very much.

Best Regards,
Joseppe

Marcin Haba

unread,
Sep 28, 2024, 9:13:19 PMSep 28
to joseppe mayer, bacularis
On Sat, 28 Sept 2024 at 22:16, joseppe mayer <joseppe...@gmail.com> wrote:
>
> Hi Marcin,
>
> Very good. Bacularis is great :-)
> Thank you very much.

Hi Joseppe,

Great to hear :-) Thanks!
Reply all
Reply to author
Forward
0 new messages