Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NC client sync error: Server replied "500 Internal Server Error" to "PUT..." (Could not rename part file to final file) #1587

Closed
propcoder opened this issue Apr 20, 2021 · 4 comments

Comments

@propcoder
Copy link

Our NextCloud clients stopped synchronizing files in groupfolders.

This issue does NOT appear with client on Debian, version 3.2.0 (KDE).

Steps to reproduce

Not sure about that, but still:

  1. create a groupfolder, a subfolder
  2. connect NC client in Windows and select to sync the folder, subfolder
  3. Create a file in the subfolder in Windows, try to sync and check NextCloud client for errors.

Expected behaviour

Successfull sync

Actual behaviour

Sync does not happen, error is shown in NC client:
Server replied "500 Internal Server Error" to "PUT https://.../remote.php/dav/files/.../NC_test.txt" (Could not rename part file to final file)

Server configuration

Operating system:
Debian GNU/Linux 9.13
Web server:
Apache2
Database:
mysql (or MariaDB ?) 10.1.48
PHP version:
7.3.27
Nextcloud version: (see Nextcloud admin page)
20.0.9
Updated from an older Nextcloud/ownCloud or fresh install:
Updated frome earlier NC
Where did you install Nextcloud from:
Update script
Signing status:
???

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.6.0
  - admin_audit: 1.10.0
  - apporder: 0.12.0
  - calendar: 2.2.0
  - camerarawpreviews: 0.7.10
  - cloud_federation_api: 1.3.0
  - comments: 1.10.0
  - contacts: 3.5.1
  - contactsinteraction: 1.1.0
  - dav: 1.16.2
  - drawio: 1.0.0
  - external: 3.7.2
  - extract: 1.3.1
  - federatedfilesharing: 1.10.2
  - federation: 1.10.1
  - files: 1.15.0
  - files_pdfviewer: 2.0.1
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.2
  - files_trashbin: 1.10.1
  - files_versions: 1.13.0
  - files_videoplayer: 1.9.0
  - firstrunwizard: 2.9.0
  - groupfolders: 8.2.0
  - logreader: 2.5.0
  - lookup_server_connector: 1.8.0
  - mail: 1.9.5
  - nextcloud_announcements: 1.9.0
  - notes: 4.0.4
  - notifications: 2.8.0
  - oauth2: 1.8.0
  - onlyoffice: 6.3.0
  - password_policy: 1.10.1
  - photos: 1.2.3
  - polls: 1.8.1
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - qownnotesapi: 20.9.0
  - recommendations: 0.8.0
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - sharebymail: 1.10.0
  - socialsharing_twitter: 2.2.0
  - survey_client: 1.8.0
  - systemtags: 1.10.0
  - text: 3.1.0
  - theming: 1.11.0
  - twofactor_backupcodes: 1.9.0
  - twofactor_totp: 5.0.0
  - updatenotification: 1.10.0
  - user_status: 1.0.1
  - user_usage_report: 1.4.2
  - video_converter: 1.0.1
  - viewer: 1.4.0
  - weather_status: 1.0.0
  - workflowengine: 2.2.0
Disabled:
  - activity
  - dashboard
  - encryption
  - event_update_notification
  - files_external
  - spreed
  - support
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "in.femtika.lt",
            "192.168.0.240",
            "oo.femtika.lt",
            "192.168.0.241"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "http:\/\/in.femtika.lt",
        "overwriteprotocol": "https",
        "dbtype": "mysql",
        "version": "20.0.9.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 0,
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "default_language": "lt",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "onlyoffice": {
            "jwt_secret": "uASow982M3D8sj20565dSwe72sK8X67C4R5sJ2zIeJ72LSK",
            "jwt_header": "AuthorizationGRT"
        },
        "app_install_overwrite": [
            "calendar",
            "files_clipboard",
            "twainwebscan",
            "groupfolders"
        ],
        "mysql.utf8mb4--type": {
            "boolean--value=true": ""
        },
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mysql.utf8mb4": true,
        "mail_sendmailmode": "smtp",
        "updater.release.channel": "stable",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "debug": false,
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

Are you using external storage, if yes which one: local

Are you using encryption: no

Are you using an external user-backend, if yes which one: Webdav

Client configuration

Operating system: Windows 10

Logs

Web server error log

``` [Tue Apr 20 06:53:02.189610 2021] [ssl:warn] [pid 23519] AH01909: localhost:12322:0 server certificate does NOT include an ID which matches the server name [Tue Apr 20 06:53:02.189721 2021] [mpm_prefork:notice] [pid 23519] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2u configured -- resuming normal operations [Tue Apr 20 06:53:02.189726 2021] [core:notice] [pid 23519] AH00094: Command line: '/usr/sbin/apache2' [Tue Apr 20 07:50:32.639884 2021] [access_compat:error] [pid 2580] [client 192.168.0.242:49348] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 08:49:31.236112 2021] [access_compat:error] [pid 2645] [client 192.168.0.242:58782] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 09:01:36.076267 2021] [access_compat:error] [pid 2577] [client 192.168.0.242:33134] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 09:28:39.201117 2021] [access_compat:error] [pid 2578] [client 192.168.0.242:41428] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 09:31:08.576348 2021] [access_compat:error] [pid 2645] [client 192.168.0.242:42002] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 10:06:21.725351 2021] [access_compat:error] [pid 2581] [client 192.168.0.242:50604] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 10:08:07.915912 2021] [access_compat:error] [pid 2645] [client 192.168.0.242:51202] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 10:12:53.106725 2021] [access_compat:error] [pid 2645] [client 192.168.0.242:52934] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 10:35:49.717487 2021] [access_compat:error] [pid 7843] [client 192.168.0.242:33870] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 10:41:12.314027 2021] [access_compat:error] [pid 2578] [client 192.168.0.242:36502] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 10:46:25.308263 2021] [access_compat:error] [pid 8515] [client 192.168.0.242:39092] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 11:43:00.421487 2021] [access_compat:error] [pid 8724] [client 192.168.0.242:36460] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 12:26:50.432238 2021] [access_compat:error] [pid 9997] [client 192.168.0.242:51558] AH01797: client denied by server configuration: /var/www/nextcloud/config [Tue Apr 20 12:43:15.484864 2021] [php7:error] [pid 8700] [client 192.168.0.242:56396] script '/var/www/nextcloud/wp-login.php' not found or unable to stat [Tue Apr 20 12:45:23.898371 2021] [ssl:warn] [pid 276] AH01909: localhost:12322:0 server certificate does NOT include an ID which matches the server name [Tue Apr 20 12:45:23.985741 2021] [ssl:warn] [pid 487] AH01909: localhost:12322:0 server certificate does NOT include an ID which matches the server name [Tue Apr 20 12:45:23.989416 2021] [mpm_prefork:notice] [pid 487] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2u configured -- resuming normal operations [Tue Apr 20 12:45:23.989441 2021] [core:notice] [pid 487] AH00094: Command line: '/usr/sbin/apache2' [Tue Apr 20 12:45:24.272099 2021] [php7:error] [pid 510] [client 192.168.0.242:56962] PHP Fatal error: Uncaught Error: Class 'OCA\\DAV\\Connector\\Sabre\\ExceptionLoggerPlugin' not found in /var/www/nextcloud/remote.php:61\nStack trace:\n#0 /var/www/nextcloud/remote.php(169): handleException(Object(Doctrine\\DBAL\\DBALException))\n#1 {main}\n thrown in /var/www/nextcloud/remote.php on line 61 [Tue Apr 20 12:46:43.867057 2021] [access_compat:error] [pid 513] [client 192.168.0.242:57402] AH01797: client denied by server configuration: /var/www/nextcloud/config
</details>

#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log</summary>

{"reqId":"tOnuJQSdsaBRsV2xujyI","level":0,"time":"2021-04-20T10:02:46+00:00","remoteAddr":"192.168.0.242","user":"HIDDENUSERNAME","app":"contacts","method":"PROPFIND","url":"/remote.php/dav/files/HIDDENUSERNAME/","message":"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows) mirall/3.0.2stable-Win64 (build 20200924) (Nextcloud)","version":"20.0.9.1"}
{"reqId":"tOnuJQSdsaBRsV2xujyI","level":0,"time":"2021-04-20T10:02:46+00:00","remoteAddr":"192.168.0.242","user":"HIDDENUSERNAME","app":"groupfolders","method":"PROPFIND","url":"/remote.php/dav/files/HIDDENUSERNAME/","message":"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows) mirall/3.0.2stable-Win64 (build 20200924) (Nextcloud)","version":"20.0.9.1"}
{"reqId":"tOnuJQSdsaBRsV2xujyI","level":0,"time":"2021-04-20T10:02:46+00:00","remoteAddr":"192.168.0.242","user":"HIDDENUSERNAME","app":"drawio","method":"PROPFIND","url":"/remote.php/dav/files/HIDDENUSERNAME/","message":"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows) mirall/3.0.2stable-Win64 (build 20200924) (Nextcloud)","version":"20.0.9.1"}
{"reqId":"tOnuJQSdsaBRsV2xujyI","level":0,"time":"2021-04-20T10:02:46+00:00","remoteAddr":"192.168.0.242","user":"HIDDENUSERNAME","app":"files_sharing","method":"PROPFIND","url":"/remote.php/dav/files/HIDDENUSERNAME/","message":"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows) mirall/3.0.2stable-Win64 (build 20200924) (Nextcloud)","version":"20.0.9.1"}
{"reqId":"tOnuJQSdsaBRsV2xujyI","level":0,"time":"2021-04-20T10:02:46+00:00","remoteAddr":"192.168.0.242","user":"HIDDENUSERNAME","app":"onlyoffice","method":"PROPFIND","url":"/remote.php/dav/files/HIDDENUSERNAME/","message":"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows) mirall/3.0.2stable-Win64 (build 20200924) (Nextcloud)","version":"20.0.9.1"}

@Jacq
Copy link

Jacq commented Apr 20, 2021

Yes similar or probably the same issue as linked above, we are working only via web now as desktop clients do not sync due to the group folder issue.
In our case this issue affects the created internal shared links from group folders, not the group folders functionality itself but the folders inside the group folders that are then internally shared with other users.

@szaimen szaimen transferred this issue from nextcloud/server Jul 6, 2021
@fschrempf
Copy link
Contributor

@propcoder @Jacq This looks related to #1445 and #1453 which were fixed in the latest release of NC (21.0.3) and probably also in the latest patch release for NC 20. Can you please check if this is solved after updating?

@thekk1
Copy link

thekk1 commented Oct 12, 2021

Additional there is another case which provoke this error message:
If group WG has no right to delete in group folder or in a subfolder in the group folder, an upload over the client will fail with the same error message 500.

@fschrempf
Copy link
Contributor

@propcoder @Jacq Due to no response, I will close this and assume it is fixed.

@thekk1 Please create a new issue for this problem if you can reproduce it on a stable release. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants