Capture : Update Database Failed but :
-
Hello ,
I’ve an infrastructure with 1 fogserver and several separate nodes . All was perfectly working but :
Since update from 1.5.9.x to 1.5.10.1629, i met an error when capturing images .
Update database failed ; failed to open stream …
I met this issue before and solved it , but in this case there is something i don’t understand :
-Each time i launch a capture : the folder /images/dev/‘macaddresscaptured’ is created with root : root privileges .
If i edit rights during capture and do : chown -R fogproject:root /images/dev/macaddresscaptured ,
Update Database is successfull after capturing .??
I never met this error before , what i’m doing wrong .
I’ve Check all the KB’s on UpdateDatabase Failed, and all password in my config seem’s to be ok .For information The error returned :
Error returned : Type: 2, file /var/www/html/fog/lib/fog/fogftp.class.php LIne : 714, Message ftp_put(/images:dev/‘macaddresscaptured’): failed to open stream : NO such file or directory , Host : ‘Ip ofnodeserver’, Username; fogprojectThanks in advanced guys .
-
@guyfox 1.5.10.x and forward adjusted permissions from /images (recursively) to use fogproject
So I might suggest:
chown -R fogproject:fogproject /images chmod -R 775 /images
This is to make sure security is much better than it was in the past.