Still having the write error to /etc/backuppc.  Providing this summary to help 
others.

I reinstalled Apache2 and backuppc.  Permissions are definitely OK.  Apache2 
running as www-data, user www-data is in group www-data, and permissions in 
/etc/backuppc are writeable for backuppc:www-data

This previous thread had the same problem: 
https://sourceforge.net/p/backuppc/mailman/backuppc-users/thread/[email protected]/
  One commenter (not the thread initiator) said his distro had SELinux running 
and had to write a policy to allow it to run.  I don't have SELinux running.  
The thread initiator did not get his problem solved but mentioned something in 
the end about the file system being read only.  His was not, and neither is 
mine.

I found this discussion: https://github.com/backuppc/backuppc/issues/188 which 
had the same issue.  One respondent provided some code to add to 
/usr/share/backuppc/lib/BackupPC/Storage/Text.pm to get more info on the error. 
 I did this and got the same additional error information:

---
TextFileWrite: Failed to write /etc/backuppc/localhost.pl.new (errno = 
Read-only file system, uids = 33,113, gids = 33 33,33 33, umask = 027, ver = 
v5.40.1, prog = /usr/bin/perl)
---

I also got the read-only file system message, which didn't make sense (note uid 
and gid 33 are both www-data and uid 113 is backuppc).

So then I found this thread with the same issue: 
https://www.reddit.com/r/sysadmin/comments/104960e/backuppc_turning_linux_client_into_a_readonly/
   That user turned out to have a bad sector on his disk.  So I plugged in an 
external drive with a fresh ext4 partition.  Did a temporary mount and copied 
over the contents of /etc/backuppc, then remounted it at /etc/backuppc.

And it worked!  So I must have some bad blocks where /etc/backuppc was in the 
original installation.  So I am going to run some smartmon or fsck/badblocks 
tests and the drive, and reinstall ubuntu.

On Sun, May 10, 2026, at 1:52 PM, [email protected] wrote:
> That's what is strange.  This is a fresh install of Lubuntu 26.04, with 
> backuppc installed from the ubuntu packages.  The 26.04 release just dropped 
> a week or so ago, so maybe there was some problem with its original packaging.
> 
> Ubuntu – Details of package backuppc in resolute 
> <https://packages.ubuntu.com/resolute/backuppc>
> 
> On Sun, May 10, 2026, at 1:04 PM, Les Mikesell wrote:
>> >
>> > Any suggestions?  Maybe whatever I did to get the CGI interface working 
>> > wasn't enough to get it working with the correct permissions?
>> >
>> 
>> For anyone considering setting up a new system, my suggestion would be
>> to use a distribution that has a packaged install that comes up
>> working predictably. Long ago when I ran a system for a small company
>> that couldn't afford much extra equipment I kept a matching install on
>> a dual-boot laptop that could have restored from a USB connection if
>> the main system died but now a VM would be an easier approach.
>> 
>> 
>> _______________________________________________
>> BackupPC-users mailing list
>> [email protected]
>> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
>> Wiki:    https://github.com/backuppc/backuppc/wiki
>> Project: https://backuppc.github.io/backuppc/
>> 
> 
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to