Announcement

Collapse
No announcement yet.

[SOLVED]webDAV writing fails with "Access was denied while attempting to upload"

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED]webDAV writing fails with "Access was denied while attempting to upload"

    I am trying to set up webfolders with Apache 2.2.4 + webDAV.

    I am trying to create files in the webfolder through the webdav-protocol in Konqueror, but I get the same message over and over again: "Access was denied while attempting to upload..."

    On the contrary, I am able to download files (which I have forced in the webfolder directory using "sudo vim")

    I included some information below that I think could be relevant.


    I have symlinks to (amongst others) the following modules:
    Code:
    dav_fs.conf
    dav_fs.load
    dav.load
    auth_mysql.load
    include.load
    Part of my httpd.conf is:
    Code:
    <IfModule mod_dav.c>
     <Directory "/var/www/webfolders">
      AllowOverride AuthConfig FileInfo Limit Indexes
      Options None
      ForceType text/plain
    
      DAV On
    
      AuthName "Webfolders kOOL"
      AuthType Basic
      AuthBasicAuthoritative Off
      AuthUserFile /dev/null
      AuthMySQL_Host localhost
      AuthMySQL_User XXXX
      AuthMySQL_Password XXXX
      Auth_MySQL_DB XXXX
      Auth_MySQL_Password_Table XXXX
      Auth_MySQL_Username_Field login
      Auth_MySQL_Password_Field password
      Auth_MySQL_Empty_Passwords Off
      Auth_MySQL_Encryption_Types PHP_MD5
     </Directory>
    </IfModule>
    chmod 777 doens't help

    access.log says:
    Code:
    127.0.0.1 - - [09/Jan/2008:22:34:15 +0100] "GET / HTTP/1.0" 200 935 "-" "Apache/2.2.4 (Ubuntu) DAV/2 PHP/5.2.3-1ubuntu6.2 (internal dummy connection)"
    error.log says:
    Code:
    [Wed Jan 09 22:34:15 2008] [notice] caught SIGWINCH, shutting down gracefully
    [Wed Jan 09 22:34:15 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Wed Jan 09 22:34:15 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Wed Jan 09 22:34:15 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Wed Jan 09 22:34:15 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Wed Jan 09 22:34:15 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Wed Jan 09 22:34:25 2008] [notice] Apache/2.2.4 (Ubuntu) DAV/2 PHP/5.2.3-1ubuntu6.2 configured -- resuming normal operations
    There's a .htaccess file in the webfolder directory which states:
    Code:
    <Limit GET HEAD OPTIONS PROPFIND>
    Require user "myReadAndWriteUser" "myReadOnlyUser"
    </Limit>
    <LimitExcept GET HEAD OPTIONS PROPFIND>
    Require user "myReadAndWriteUser"
    </LimitExcept>
    Does anyone have a clue?

    Thanks very much already!
    Once your problem is solved please edit the first post of your topic and add [SOLVED] in front of the subject. In that way, others can benefit from your experience!

    #2
    [PARTIALLY SOLVED] webDAV writing fails with &quot;Access was denied while attemp...&quot;

    I think the final solution wasn't even in the info I posted, after some 20-30 seconds, another few lines appeared in error.log:
    Code:
    [Sat Jan 12 00:59:54 2008] [notice] caught SIGWINCH, shutting down gracefully
    [Sat Jan 12 00:59:54 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Sat Jan 12 00:59:54 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Sat Jan 12 00:59:54 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Sat Jan 12 00:59:54 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Sat Jan 12 00:59:54 2008] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
    [Sat Jan 12 01:00:04 2008] [notice] Apache/2.2.4 (Ubuntu) DAV/2 PHP/5.2.3-1ubuntu6.2 configured -- resuming normal operations
    [Sat Jan 12 01:00:36 2008] [error] [client 130.89.230.59] The locks could not be queried for verification against a possible "If:" header. [5
    00, #0]
    [Sat Jan 12 01:00:36 2008] [error] [client 130.89.230.59] Could not open the lock database. [500, #400]
    [Sat Jan 12 01:00:36 2008] [error] [client 130.89.230.59] (2)No such file or directory: Could not open property database. [500, #1]
    These last three lines seem to be related to the following entry in httpd.conf:
    Code:
    <IfModule mod_dav.c>
     DAVLockDB /var/lock/DAV/apache
    </IfModule>
    The path /var/lock/DAV/ did not exist at this time, so I created it. When I set the ownership of this folder to www-data, I was able to succesfully write a file to the webfolder, using Konqueror and an authorized user:
    Code:
    sudo chown www-data:www-data /var/lock/DAV/
    However, there's still one more thing I'd like to be solved: I cannot delete a file from the webfolder using the DELETE key. If I click right and use the context-menu, then I am able to delete the file. Anyone any ideas?

    Note: I still have to test Windows Explorer as DAVclient.
    Once your problem is solved please edit the first post of your topic and add [SOLVED] in front of the subject. In that way, others can benefit from your experience!

    Comment


      #3
      Re: webDAV writing fails with &quot;Access was denied while attempting to upload&quot;

      I cannot delete a file from the webfolder using the DELETE key. If I click right and use the context-menu, then I am able to delete the file. Anyone any ideas?

      the DELETE key wants to move a file to the wastebin, which is not available in the webfolder. In addition to using the context menu, you can use SHIFT+DELETE to remove a file from the webfolder.
      Once your problem is solved please edit the first post of your topic and add [SOLVED] in front of the subject. In that way, others can benefit from your experience!

      Comment

      Working...
      X