maindavfs2 - Support: sr #107841, davfs2 fails whenever there is a ...

 
 

sr #107841: davfs2 fails whenever there is a permission change

Submitter:  None
Submitted:  Thu 13 Oct 2011 08:07:35 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  In Progress
Privacy:  Public Assigned to:  _71007
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 16 Oct 2011 02:28:38 PM UTC, comment #3: 

Hi Werner,

Thanks very much for the feedback. With exec option, I have the following mount info:

http://www.xxxx.co.za/owncloud/files/webdav.php on /home/xxxx/owncloud type davfs (rw,nosuid,nodev,_netdev,user=xxxx)

I'll do some furthe rtesting and let you know how it goes but so far, it's good! Thanks for the help.

Robby

Robby Pedrica <rpedrica>
Sun 16 Oct 2011 09:17:48 AM UTC, comment #2: 

Your file system is mounted with option 'user' which includes option 'noexec'.
With mount option 'noexec' davfs2 will not allow to set execute permissions on regular files. That's why the action fails with 'invalid argument'.

I think this behaviour is an error. I misunderstood how noexec works. (At least ext3 file systems allow to set the execute bit even with mount option noexec). I will create a bug tracker item for this and hope to be able to fix it with the next release.

Meanwhile you can work around this bug by setting mount option 'exec'. It will override the implicit 'noexec' of the 'user' option.

Werner

- <_71007>
Thu 13 Oct 2011 08:21:36 PM UTC, comment #1: 

To clarify

client side is:
Slackware 13.37 with davfs2 1.4.6 / neon 0.29.5

server side is:
centos 5.x/apache 2.2.19

Sig =
[hdr] Server: Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.3.6 mod_perl/2.0.5 Perl/v5.8.8

I'm also using rsync --size-only option ...

Regards, Robby

Robby Pedrica <rpedrica>
Thu 13 Oct 2011 08:07:35 PM UTC, original submission:  

I have an issue whenever a file is copied/moved to a davfs2 mount in that the set permissions fails and the file is not written ( sometimes/variable ).

centos 5.x/apache 2.2.18
https://www.xxxxxx.co.za/owncloud/files/webdav.php /home/rpedrica/owncloud davfs user,rw,noauto 0 0
davfs2 1.4.6 / neon 0.29.5
Some options for davfs:
 if_match_bug 1
 use_locks 0
 kernel_fs       fuse
 buf_size        32
 backup_dir      lost+found
 cache_dir       ~/.davfs2/cache   # per user cache
 cache_size      100                # MiByte 
 table_size      1024
 gui_optimize    1
 

1. initially I could not write at all to the davfs2 mount and used the 'if_match_bug 1' to sort this out

2. I then had the problem that rsync would not work ( reliably ) and used the 'use_locks 0' option to fix this

3. now rsync fails to write some files due to permissions setting.

 rsync opts: -av

In rsync, some files fail to write at all to the target folder but is sometimes left in lost&found - some logging:

Oct 13 21:44:49 googly mount.davfs: FUSE_LOOKUP:
Oct 13 21:44:49 googly mount.davfs:   p 0x678910, Shockwave_Installer_Full.exe
Oct 13 21:44:49 googly mount.davfs: lookup /owncloud/files/webdav.php/winapps/Shockwave_Installer_Full.exe
Oct 13 21:44:49 googly mount.davfs: RET: No such file or directory
Oct 13 21:44:49 googly mount.davfs: SELECT: 1
Oct 13 21:44:49 googly mount.davfs: FUSE_LOOKUP:
Oct 13 21:44:49 googly mount.davfs:   p 0x678910, .Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs: lookup /owncloud/files/webdav.php/winapps/.Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs: RET: No such file or directory
Oct 13 21:44:49 googly mount.davfs: SELECT: 1
Oct 13 21:44:49 googly mount.davfs: FUSE_CREATE:
Oct 13 21:44:49 googly mount.davfs:   n 0x678910, f 0100302
Oct 13 21:44:49 googly mount.davfs:   pid 12259, mode 0100600
Oct 13 21:44:49 googly mount.davfs: lookup /owncloud/files/webdav.php/winapps/.Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs: create /owncloud/files/webdav.php/winapps/.Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs: new node: 0x678910->0x68aea0
Oct 13 21:44:49 googly mount.davfs: open /owncloud/files/webdav.php/winapps/.Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs:   no update
Oct 13 21:44:49 googly mount.davfs:   fd 6
Oct 13 21:44:49 googly mount.davfs: RET: Success
Oct 13 21:44:49 googly mount.davfs: SELECT: 1
Oct 13 21:44:49 googly mount.davfs: FUSE_SETATTR:
Oct 13 21:44:49 googly mount.davfs:   n 0x68aea0, m 0100700
Oct 13 21:44:49 googly mount.davfs:   uid 0, gid 0
Oct 13 21:44:49 googly mount.davfs:   sz 0, at 0,
Oct 13 21:44:49 googly mount.davfs:   mt 0
Oct 13 21:44:49 googly mount.davfs: setattr /owncloud/files/webdav.php/winapps/.Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs:   set mode to 100700
Oct 13 21:44:49 googly mount.davfs: RET: Invalid argument
Oct 13 21:44:49 googly mount.davfs: SELECT: 1
Oct 13 21:44:49 googly mount.davfs: FUSE_LOOKUP:
Oct 13 21:44:49 googly mount.davfs:   p 0x66f5f0, winapps
Oct 13 21:44:49 googly mount.davfs: lookup /owncloud/files/webdav.php/winapps
Oct 13 21:44:49 googly mount.davfs: RET: Success
Oct 13 21:44:49 googly mount.davfs: SELECT: 1
Oct 13 21:44:49 googly mount.davfs: FUSE_FLUSH: ignored
Oct 13 21:44:49 googly mount.davfs: RET: Success
Oct 13 21:44:49 googly mount.davfs: SELECT: 1
Oct 13 21:44:49 googly mount.davfs: FUSE_RELEASE:
Oct 13 21:44:49 googly mount.davfs:   n 0x68aea0, f 0100002
Oct 13 21:44:49 googly mount.davfs:   pid 0, fd 6
Oct 13 21:44:49 googly mount.davfs:  close /owncloud/files/webdav.php/winapps/.Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs: RET: Success
Oct 13 21:44:49 googly mount.davfs: tidy: 1 of 74 nodes changed
Oct 13 21:44:49 googly mount.davfs: cache-size: 84 MiBytes.
Oct 13 21:44:49 googly mount.davfs: SELECT: 1
Oct 13 21:44:49 googly mount.davfs: FUSE_UNLINK:
Oct 13 21:44:49 googly mount.davfs:   p 0x678910, .Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs: remove /owncloud/files/webdav.php/winapps/.Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs: deleting node 0x68aea0
Oct 13 21:44:49 googly mount.davfs: RET: Success
Oct 13 21:44:49 googly mount.davfs: SELECT: 1
Oct 13 21:44:49 googly mount.davfs: FUSE_LOOKUP:
Oct 13 21:44:49 googly mount.davfs:   p 0x678910, .Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs: lookup /owncloud/files/webdav.php/winapps/.Shockwave_Installer_Full.exe.Nyhv6g
Oct 13 21:44:49 googly mount.davfs: RET: No such file or directory
Oct 13 21:44:49 googly mount.davfs: SELECT: 1
Oct 13 21:44:49 googly mount.davfs: FUSE_FORGET: no reply
Oct 13 21:44:50 googly mount.davfs: SELECT: 1
Oct 13 21:44:50 googly mount.davfs: FUSE_GETATTR:
Oct 13 21:44:50 googly mount.davfs:   n 0x678910

On setattr there is a failure: Invalid argument

+ pic attached ( davfs2 )

Other files write fine ... permissions and ownership of the same for files that do and don't work.

Using rsync -rv ( ie. without perms, ownership, etc. ), the copy goes fine now however setattr error still occurs in davfs log.

4. In kde/konqueror, the copy fails with set permissions error but is still written to target folder - pic attached ( davfs1 ).

5. have tested connectivity using NetDrive on Windows and there  are no issues copying files in that case to the remote webdav store.

Any help would be appreciated.

Regards, Robby

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #24142:  davfs1.png added by None (45KiB - image/png)
file #24143:  davfs2.png added by None (31KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _71007 (Posted a comment)
  • -email is unavailable- added by rpedrica (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-07-19 _71007 Open/ClosedOpen Closed
    2011-10-16 _71007 StatusNone In Progress
        Assigned toNone _71007
    2011-10-13 None Attached File- Added davfs1.png, #24142
        Attached File- Added davfs2.png, #24143

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code