On Wed, Aug 5, 2026 at 12:23 PM Daniel Sahlberg
<[email protected]> wrote:
>
> ons 5 aug. 2026 kl. 17:49 skrev Jeffrey Walton <[email protected]>:
>>
>> On Wed, Aug 5, 2026 at 11:30 AM falco philmarks.net <[email protected]> 
>> wrote:
>> >
>> > Is anyone else experiencing problems with repository changes (e.g., 
>> > commits) submitted over https to server running Apache2 on Ubuntu LTS 
>> > 26.04?
>> >
>> > When trying to commit changes remotely, or add new projects to a 
>> > repository, the following error messages are returned:
>> >
>> > E000001: Commit failed (details follow):
>> > E000001: Can't write '/var/svn/NetBeansProjects/db/txn-current' atomically
>> >
>> > And I find the following lines in the Apache error log:
>> >
>> > [Tue Aug 04 14:43:00.903971 2026] [:error] [pid 9352:tid 9369] [client 
>> > 10.1.0.26:57765] Can't write '/var/svn/NetBeansProjects/db/txn-current' 
>> > atomically  [500, #1]
>> > [Tue Aug 04 14:43:00.903980 2026] [:error] [pid 9352:tid 9369] [client 
>> > 10.1.0.26:57765] Can't set permissions on 
>> > '/var/svn/NetBeansProjects/db/svn-2iqlzz'  [500, #1]
>> > [Tue Aug 04 14:43:00.903988 2026] [:error] [pid 9352:tid 9369] [client 
>> > 10.1.0.26:57765] Can't set permissions on 
>> > '/var/svn/NetBeansProjects/db/svn-2iqlzz': Operation not permitted  [500, 
>> > #1]
>> >
>> > At first glance this looks like a simple permissions problem, and I have 
>> > reviewed numerous internet postings showing similar (though not identical) 
>> > error messages.  But I have looked very closely at the settings for all 
>> > the relevant files and made sure that they are owned by www-data and 
>> > within a group named “subversion” group that includes both www-data and my 
>> > own personal ID on the server.
>> >
>> > I have no problem adding projects or making commits locally on the server 
>> > in question (repository access via file:/// …..). I have no problems 
>> > viewing the repository from a Windows 11 machine using the Tortoise SVN 
>> > repository browser. I have no problems checking out a project into 
>> > NetBeans on the same Windows client, or onto a different client machine 
>> > that runs Ubuntu LTS 24.04.
>> >
>> >
>> > Before setting up the environment on the 26.04 machine that reports the 
>> > errors, I tried a dry run on a parallel testing environment on another 
>> > server machine that also happens to run Ubuntu LTS 24.04 (i.e., this is a 
>> > different machine from the 24.04 client mentioned in the previous 
>> > paragraph). That test environment experiences no problems with remote 
>> > changes – in particular, commits sent via https from NetBeans instances 
>> > running on client machines function as expected.  There are of course 
>> > version level differences in the Apache and subversion software on these 
>> > two servers, but when I compare the Apache and dav_svn config files 
>> > between them I see no significant differences; likewise the permissions 
>> > settings on the files in the two repositories.
>> >
>> > At this stage the repository concerned is not in production mode and does 
>> > not contain anything that I cannot afford to lose.  So I have also tried 
>> > deleting and recreating it from scratch, as well as uninstalling and 
>> > reinstalling Apache and subversion and related packages on the 26.04 LTS 
>> > machine intended as the long-term host.
>> >
>> > Does anyone have any suggestions as to what I should try next?
>> >
>> > Any help would be appreciated.
>>
>> I think you need to issue the following commands:
>>
>>     sudo chown -R www-data:subversion /var/svn/NetBeansProjects
>>     sudo chmod -R ug+rwX /var/svn/NetBeansProjects
>>
>> And then see if the problem is still present.
>>
>> Also, does your subversion group include the same principals as the
>> www-data group?
>
> Any chance that SELinux is doing its magic?

At first, I thought that smelled of SELinux, too.  But he said Ubuntu,
and Ubuntu uses AppArmor.

Fedora and Red Hat would use SELinux, and `ls -alZ` would be one of my
goto tools.

Jeff

Reply via email to