maindavfs2 - Support: sr #108631, Cannot create files (EINVAL)

 
 

sr #108631: Cannot create files (EINVAL)

Submitter:  Christian Henz <chenz>
Submitted:  Fri 15 Aug 2014 05:16:49 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 18 Aug 2014 10:27:38 AM UTC, comment #2: 

'use_locks 0' did the trick, thanks! The server btw is sabre/dav, as used by ownCloud.

Christian Henz <chenz>
Sat 16 Aug 2014 06:55:44 PM UTC, comment #1: 

This error may have different reasons. The two most likely reasons are

  • the server does not properly supported conditional requests (old apache/mod_dav versions)
  • the server does not properly support locks.


You may try

  • option 'use_locks 0' in davfs2.conf
  • option 'if_match_bug 1'
  • both of these options.


If any of theses options seems to help you should test whether the file was really uploaded to the server. After waiting 20 seconds after closing the file it must not appear in lost+found. You may also use another client (browser?) to connect to the server and look for the file.

If none of these options helps then please set option 'debug most', mount the file system, copy one small file into the file system, wait 20 seconds and unmount the file system.

Now check your log files for entries from mount.davfs and send these log entries.

Werner

- <_71007>
Fri 15 Aug 2014 05:16:49 PM UTC, original submission:  

When I try to create or copy files on/to a mounted davfs, I get EINVAL errors. Folders can be created, but not files.

'strace touch foobar' gives me:

open("foobar", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_LARGEFILE, 0666) = -1 EINVAL (Invalid argument)

'strace cp /tmp/foobar foobar':

open("foobar", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0644) = -1 EINVAL (Invalid argument)

My fstab entry:

http://192.168.1.22/owncloud/remote.php/webdav /home/chenz/mounts/ownCloud davfs noauto,uid=chenz,gid=chenz 0 0

Any ideas as to what the problem might be?

Christian Henz <chenz>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 chenz (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-15 _71007 StatusIn Progress Done
        Open/ClosedOpen Closed
    2014-08-16 _71007 StatusNone In Progress
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code