Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1532 Failed to rename file

v3.00
closed
nobody
5
2012-11-22
2012-08-08
Anton Markelov
No

System: Debian 6
Version Group-Office: 3.7.55
Fresh installation.

During uploading file in the groupoffice I see error:
"Warning: rename(/tmp/3/files_upload/test.txt,/home/groupoffice/users/markelovaa/testfolder/test.txt): Invalid argument in /usr/share/groupoffice/classes/filesystem.class.inc on line 240
{"feedback":"Failed to rename file","success":false}

Ext.decode exception occurred".
But file was uploaded correctly and has correct name.

Discussion

  • Anton Markelov
    Anton Markelov
    2012-08-08

    Detail (may be important) - /home/groupoffice is a remote folder, mounted via NFS, with drwxrwxrwx permissions.

     
  • I don't understand why it spits a warning if it actually renames the file. I think it has something todo with NFS.

    As a quick workaround you can disable display_errors in php.ini. This will only log the warning to the error log then.

     
    • Anton Markelov
      Anton Markelov
      2012-09-18

      $config['display_errors']=false;
      

      is helps for me, thanks.

       
      Last edit: Anton Markelov 2012-09-20
  • Anton Markelov
    Anton Markelov
    2012-09-20

    Also: in 4.xx branch (4.0.101 e.g.) bug was not reproduced, all works fine with /home in NFS.

     
    • status: pending --> closed
     
  • Ok, closing because it works in 4.0,