Thanks Marcin. I did a bit more testing and found that the error is intermittent. It will often take 2 or 3 attempts to save a config and then it does. That must be something outside Bacula/Baculum so I'll look into it elsewhere. Other than that, it's all good. I have restarted Apache a few times but that hasn't fixed it.
I think I have php7.4-fpm so will restart that. Best Chris On Fri, 25 Mar 2022, 5:35 am Marcin Haba, <ganius...@gmail.com> wrote: > Hello Chris, > > This permission denied error comes from the system and it means that the > www-data user is not able to write to bacula-dir.conf. > > Your file permissions look correct. The only change that I would propose > to check is restarting the web server because adding to the www-data user a > new group doesn't take effect until the next time the www-data user logs in. > > So, depending on how your web server uses PHP, you can restart the web > server or php-fpm. > > For example: > > systemctl restart apache2 > > or (for PHP 7.4): > > systemctl restart php7.4-fpm > > Good luck :-) > > Best regards, > Marcin Haba (gani) > > On Wed, 23 Mar 2022 at 21:30, Chris Wilkinson <winstonia...@gmail.com> > wrote: > >> My earlier attempt to install v9.6.7 Baculum on 32 bit Raspbian failed >> due to the 4G limit on integer values so that larger values for max volume >> size threw an error. Bacula did not seem to have the same limitation and >> worked fine. >> >> I have now attempted this again on 64 bit Raspbian. Bacula and Baculum >> were compiled from v9.6.7 source. I have run into the below error when >> Baculum writes to DIR config. This is an extract from the API debug log. >> >> I checked the permissions on the file referenced and all seems correct. >> >> File: bacula:bacula 664 >> /etc/bacula root:root 755 >> www-data is a member of group bacula >> sudo -u www-data test -w file returns 0 indicating it is writable by >> www-data. >> >> Is there something else I could check? >> >> API error log when saving a config change. >> >> Mar 23 15:17:06 [Debug] [Application] >> >> Command=onInit, Output=Method: >> >> PUT Prado\Exceptions\TPhpErrorException: >> >> [Warning] file_put_contents(/etc/bacula/bacula-dir.conf): >> >> failed to open stream: >> >> Permission denied (@line 58 in file >> >> /var/www/baculum/protected/Common/Class/ConfigBacula.php). in >> >> /var/www/baculum/framework/pradosoft/prado/framework/PradoBase.php:177 >> >> >> >> Regards >> Chris Wilkinson >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> > > > -- > "Greater love hath no man than this, that a man lay down his life for his > friends." Jesus Christ > > "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za > przyjaciół swoich." Jezus Chrystus >
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users