barcus / bareos

Docker image for Bareos
https://hub.docker.com/r/barcus
MIT License
116 stars 55 forks source link

cant add client Alpine docker #18

Closed gudge25 closed 5 years ago

gudge25 commented 5 years ago

image

Resource config directory "/etc/bareos/bareos-dir-export/client/JiraServer/bareos-fd.d/director/" does not exist.

seems that docker is not working properly

gudge25 commented 5 years ago

it is not creating file in dir /etc/bareos/bareos-dir-export/client/

barcus commented 5 years ago

Hello,

Unable to reproduce in a fresh install

#docker exec -t -i bareos_bareos-dir_1 bconsole
Connecting to Director localhost:9101
 Encryption: PSK-AES256-CBC-SHA
1000 OK: bareos-dir Version: 18.2.4rc2 (18 Dec 2018)
You are connected using the default console

Enter a period to cancel a command.
*configure add client name=toto address=192.168.1.55 password=totopassword
Exported resource file "/etc/bareos/bareos-dir-export/client/toto/bareos-fd.d/director/bareos-dir.conf":
Director {
  Name = bareos-dir
  Password = "[md5]f35635f354467414e2a086ff5c3f7740"
}
Created resource config file "/etc/bareos/bareos-dir.d/client/toto.conf":
Client {
  Name = toto
  Address = 192.168.1.55
  Password = totopassword
}
*
#docker exec -t -i bareos_bareos-dir_1 /bin/bash
root@371d35bde45c:/# ls -l /etc/bareos/bareos-dir-export/client/
total 4
drwxr-x--- 3 bareos root 4096 Jan 12 14:52 toto

Did you ran bconsole inside your director container ? Maybe there is a permission issue inside your /etc/bareos configdir !

My perms looks like

root@371d35bde45c:/# ls -l /etc/bareos/bareos-dir-export/
total 4
drwxr-x--- 3 bareos bareos 4096 Jan 12 14:52 client
gudge25 commented 5 years ago

forgot to mention --- i use alpine version image

barcus commented 5 years ago

it's fixed, Docker image have been updated. you just need to pull the new one and restart your director container

23