Unable to access Bacularis API link

14 views
Skip to first unread message

Meth

unread,
Oct 18, 2024, 4:11:31 AM10/18/24
to bacularis
I do the installation and all the steps are normal, but at the end the Bacularis API Link stage does not complete.


Here is Rawlog output;

EXITCODE=0
quitspawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/bacularis/bacularis.key -out /etc/bacularis/bacularis.crt <<EOF
ZZ
Bacularis
Bacularis
Bacularis web interface
Bacularis
*************
non-existing-email@localhost
EOF
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Generating a RSA private key
....+++++
......................................................+++++
writing new private key to '/etc/bacularis/bacularis.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:Email Address []:Connection to ************* closed.



EXITCODE=0
quitspawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo sed -i -e "/ssl_certificate/d" -e "s/listen 9097;\$/listen 9097 ssl;/" -e "/index index.php;/a ssl_certificate_key /etc/bacularis/bacularis.key;" -e "/index index.php;/a ssl_certificate /etc/bacularis/bacularis.crt;" /etc/nginx/sites-available/bacularis.conf
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
===== Step: Create Bacularis user =====

spawn scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /usr/share/bacularis/protected/Web/Config/basic.conf root@*************:/tmp/bacularis-deploy/basic.conf
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:

basic.conf                                      0%    0     0.0KB/s   --:-- ETA
basic.conf                                    100%   30    58.0KB/s   00:00    

EXITCODE=0
quit
spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo mv /tmp/bacularis-deploy/basic.conf /etc/bacularis/API/basic.conf
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo chown www-data /etc/bacularis/API/basic.conf
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo chmod 600 /etc/bacularis/API/basic.conf
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
===== Step: Set Bacularis password =====

spawn scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /usr/share/bacularis/protected/Web/Config/bacularis.users_new root@*************:/tmp/bacularis-deploy/bacularis.users_new
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:

bacularis.users_new                             0%    0     0.0KB/s   --:-- ETA
bacularis.users_new                           100%   44    67.8KB/s   00:00    

EXITCODE=0
quit
spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo mv /tmp/bacularis-deploy/bacularis.users_new /etc/bacularis/API/bacularis.users
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo chown www-data /etc/bacularis/API/bacularis.users
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo chmod 600 /etc/bacularis/API/bacularis.users
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
===== Step: Set Bacularis password =====

spawn scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /usr/share/bacularis/protected/Web/Config/bacularis.users_new root@*************:/tmp/bacularis-deploy/bacularis.users_new
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:

bacularis.users_new                             0%    0     0.0KB/s   --:-- ETA
bacularis.users_new                           100%   44    56.8KB/s   00:00    

EXITCODE=0
quit
spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo mv /tmp/bacularis-deploy/bacularis.users_new /etc/bacularis/Web/bacularis.users
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo chown www-data /etc/bacularis/Web/bacularis.users
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo chmod 600 /etc/bacularis/Web/bacularis.users
Could not create directory '/var/www/.ssh'.

Warning: Permanently added '*************' (ECDSA) to the list of known hosts.


root@*************'s password:Connection to ************* closed.



EXITCODE=0
quit
===== Step: Start Bacularis =====

spawn ssh -t -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@************* sudo systemctl restart nginx 2>&1
Could not create directory '/var/www/.ssh'.
Warning: Permanently added '*************' (ECDSA) to the list of known hosts.

root@*************'s password:
Connection to ************* closed.


EXITCODE=0
quit

resim_2024-10-18_111117061.png

Marcin Haba

unread,
Oct 18, 2024, 5:03:11 AM10/18/24
to Meth, bacularis
On Fri, 18 Oct 2024 at 10:11, Meth <bys...@gmail.com> wrote:
I do the installation and all the steps are normal, but at the end the Bacularis API Link stage does not complete.

Hi Meth,

Thanks for your report. It looks strange. I have never seen this step failing.

Did it happen only one time or it is reproducible every time?

Best regards,
Marcin Haba (gani) 

Meth

unread,
Oct 18, 2024, 6:41:45 AM10/18/24
to bacularis
Hey Marcin, 

Nice to see you again.

I've only encountered it once, I'm thinking of doing a clean install to solve the problem, how can I delete everything about bacula and bacularis installed on the system?

18 Ekim 2024 Cuma tarihinde saat 12:03:11 UTC+3 itibarıyla Marcin Haba şunları yazdı:

Marcin Haba

unread,
Oct 18, 2024, 9:03:34 AM10/18/24
to Meth, bacularis
On Fri, 18 Oct 2024 at 12:41, Meth <bys...@gmail.com> wrote:
>
> Hey Marcin,
>
> Nice to see you again.
>
> I've only encountered it once, I'm thinking of doing a clean install to solve the problem, how can I delete everything about bacula and bacularis installed on the system?

Hi Meth,

Thanks. Good to hear you too :-)

If this problem happened only once, it could be a timeout from the web
server side. Nothing dangerous.

For completely deleting Bacula and Bacularis with configuration, you
can try this:

For Bacularis:

# apt autoremove --purge bacularis

For Bacula it depends how you installed it. If I remember well you use
Bacula from DEB bacula.org repositories. In this case it can be
command something like:

# apt autoremove --purge bacula-postgresql bacula-client bacula-console

Good luck!
Reply all
Reply to author
Forward
0 new messages