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

Nextcloud Share API appears to point to an incorrect location #11600

Closed
ghost opened this issue Oct 3, 2018 · 2 comments
Closed

Nextcloud Share API appears to point to an incorrect location #11600

ghost opened this issue Oct 3, 2018 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 3, 2018

Steps to reproduce

  1. Open the Console (F12 on Chrome)
  2. Click the "share" icon next to a file or directory

Expected behaviour

The Share panel should open, allowing you to share files with other local users, Federation users, and email.

Actual behaviour

The loading spinner spins forever and the following error is pushed to the console:

console

Note that this error only occurs for some files and not others -- I don't know what the correlation is. Clicking off the file and back onto it sometimes makes it work as well.

Server configuration

Operating system:
Debian testing

Web server:
lighttpd 1.4.49

Database:
MySQL 8.0.12

PHP version:
7.2.9-1

Nextcloud version: (see Nextcloud admin page)
14.0.1 (stable)

Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install

Where did you install Nextcloud from:
Manual zip download to Web server

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.0.1
  - bruteforcesettings: 1.1.0
  - calendar: 1.6.2
  - cloud_federation_api: 0.0.1
  - contacts: 2.1.6
  - dav: 1.6.0
  - federatedfilesharing: 1.4.0
  - files: 1.9.0
  - files_pdfviewer: 1.3.2
  - files_sharing: 1.6.2
  - files_texteditor: 2.6.0
  - files_trashbin: 1.4.1
  - files_versions: 1.7.1
  - files_videoplayer: 1.3.0
  - firstrunwizard: 2.3.0
  - gallery: 18.1.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.2.0
  - notifications: 2.2.1
  - oauth2: 1.2.1
  - password_policy: 1.4.0
  - provisioning_api: 1.4.0
  - serverinfo: 1.4.0
  - sharebymail: 1.4.0
  - theming: 1.5.0
  - twofactor_backupcodes: 1.3.1
  - twofactor_totp: 1.5.0
  - updatenotification: 1.4.1
  - workflowengine: 1.4.0
Disabled:
  - activity
  - admin_audit
  - comments
  - encryption
  - federation
  - files_external
  - nextcloud_announcements
  - support
  - survey_client
  - systemtags
  - user_external
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "14.0.1.1",
        "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    }
}

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

Are you using encryption: no

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

Client configuration

Browser: Chrome 69.0.3497.100

Operating system:
Windows 7 Professional x86

Logs

Web server error log

Web server error log
Logging not enabled

Nextcloud log (data/nextcloud.log)

Nextcloud log
(note that certain system file paths have been removed)
{"reqId":"iyDcL9pP5dpUyZd98KPY","level":3,"time":"2018-10-03T16:20:02+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"aveilleux","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/apps\/files_sharing\/api\/v1\/shares?format=json&path=%2FMisc%2FStudyguide-Q.docx&reshares=true","message":{"Exception":"Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException","Message":"An exception occurred while executing 'INSERT INTO `oc_file_locks` (`key`,`lock`,`ttl`) SELECT ?,?,? FROM `oc_file_locks` WHERE `key` = ? HAVING COUNT(*) = 0' with params [\"files\\\/40a3ca61a7a7820a908083a4c2c98474\", 1, 1538587201, \"files\\\/40a3ca61a7a7820a908083a4c2c98474\"]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'files\/40a3ca61a7a7820a908083a4c2c98474' for key 'lock_key_index'","Code":0,"Trace":[{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php","line":128,"function":"convertException","class":"Doctrine\\DBAL\\Driver\\AbstractMySQLDriver","type":"->","args":["An exception occurred while executing 'INSERT INTO `oc_file_locks` (`key`,`lock`,`ttl`) SELECT ?,?,? FROM `oc_file_locks` WHERE `key` = ? HAVING COUNT(*) = 0' with params [\"files\\\/40a3ca61a7a7820a908083a4c2c98474\", 1, 1538587201, \"files\\\/40a3ca61a7a7820a908083a4c2c98474\"]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'files\/40a3ca61a7a7820a908083a4c2c98474' for key 'lock_key_index'",{"errorInfo":["23000",1062,"Duplicate entry 'files\/40a3ca61a7a7820a908083a4c2c98474' for key 'lock_key_index'"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php","line":1015,"function":"driverExceptionDuringQuery","class":"Doctrine\\DBAL\\DBALException","type":"::","args":[{"__class__":"Doctrine\\DBAL\\Driver\\PDOMySql\\Driver"},{"errorInfo":["23000",1062,"Duplicate entry 'files\/40a3ca61a7a7820a908083a4c2c98474' for key 'lock_key_index'"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"},"INSERT INTO `oc_file_locks` (`key`,`lock`,`ttl`) SELECT ?,?,? FROM `oc_file_locks` WHERE `key` = ? HAVING COUNT(*) = 0",{"1":"files\/40a3ca61a7a7820a908083a4c2c98474","2":1,"3":1538587201,"4":"files\/40a3ca61a7a7820a908083a4c2c98474"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/DB\/Connection.php","line":216,"function":"executeUpdate","class":"Doctrine\\DBAL\\Connection","type":"->","args":["INSERT INTO `oc_file_locks` (`key`,`lock`,`ttl`) SELECT ?,?,? FROM `oc_file_locks` WHERE `key` = ? HAVING COUNT(*) = 0",["files\/40a3ca61a7a7820a908083a4c2c98474",1,1538587201,"files\/40a3ca61a7a7820a908083a4c2c98474"],[]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/DB\/Adapter.php","line":114,"function":"executeUpdate","class":"OC\\DB\\Connection","type":"->","args":["INSERT INTO `oc_file_locks` (`key`,`lock`,`ttl`) SELECT ?,?,? FROM `oc_file_locks` WHERE `key` = ? HAVING COUNT(*) = 0",["files\/40a3ca61a7a7820a908083a4c2c98474",1,1538587201,"files\/40a3ca61a7a7820a908083a4c2c98474"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/DB\/Connection.php","line":254,"function":"insertIfNotExist","class":"OC\\DB\\Adapter","type":"->","args":["*PREFIX*file_locks",{"key":"files\/40a3ca61a7a7820a908083a4c2c98474","lock":1,"ttl":1538587201},["key"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Lock\/DBLockingProvider.php","line":136,"function":"insertIfNotExist","class":"OC\\DB\\Connection","type":"->","args":["*PREFIX*file_locks",{"key":"files\/40a3ca61a7a7820a908083a4c2c98474","lock":1,"ttl":1538587201},["key"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Lock\/DBLockingProvider.php","line":181,"function":"initLockField","class":"OC\\Lock\\DBLockingProvider","type":"->","args":["files\/40a3ca61a7a7820a908083a4c2c98474",1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Storage\/Common.php","line":713,"function":"acquireLock","class":"OC\\Lock\\DBLockingProvider","type":"->","args":["files\/40a3ca61a7a7820a908083a4c2c98474",1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":592,"function":"acquireLock","class":"OC\\Files\\Storage\\Common","type":"->","args":["files\/Misc\/Studyguide-Q.docx",1,{"__class__":"OC\\Lock\\DBLockingProvider"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":592,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files\/Misc\/Studyguide-Q.docx",1,{"__class__":"OC\\Lock\\DBLockingProvider"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/View.php","line":1923,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files\/Misc\/Studyguide-Q.docx",1,{"__class__":"OC\\Lock\\DBLockingProvider"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/View.php","line":2033,"function":"lockPath","class":"OC\\Files\\View","type":"->","args":["\/aveilleux\/files\/Misc\/Studyguide-Q.docx",1,false]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Node\/Node.php","line":362,"function":"lockFile","class":"OC\\Files\\View","type":"->","args":["\/aveilleux\/files\/Misc\/Studyguide-Q.docx",1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/apps\/files_sharing\/lib\/Controller\/ShareAPIController.php","line":1052,"function":"lock","class":"OC\\Files\\Node\\Node","type":"->","args":[1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/apps\/files_sharing\/lib\/Controller\/ShareAPIController.php","line":668,"function":"lock","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"getShares","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->","args":["false","true","false",{"__class__":"OC\\Files\\Node\\File"},"false"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"getShares"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"getShares"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareAPIController","getShares",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.files_sharing.ShareAPI.getShares"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"ocs.files_sharing.ShareAPI.getShares"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"ocs.files_sharing.ShareAPI.getShares"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/ocs\/v1.php","line":82,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/ocsapp\/apps\/files_sharing\/api\/v1\/shares"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/ocs\/v2.php","line":24,"args":["***REMOVED SENSITIVE VALUE***\/nextcloud\/ocs\/v1.php"],"function":"require_once"}],"File":"***REMOVED SENSITIVE VALUE***\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractMySQLDriver.php","Line":66,"Previous":{"Exception":"Doctrine\\DBAL\\Driver\\PDOException","Message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'files\/40a3ca61a7a7820a908083a4c2c98474' for key 'lock_key_index'","Code":"23000","Trace":[{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php","line":1008,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDOStatement","type":"->","args":[["files\/40a3ca61a7a7820a908083a4c2c98474",1,1538587201,"files\/40a3ca61a7a7820a908083a4c2c98474"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/DB\/Connection.php","line":216,"function":"executeUpdate","class":"Doctrine\\DBAL\\Connection","type":"->","args":["INSERT INTO `oc_file_locks` (`key`,`lock`,`ttl`) SELECT ?,?,? FROM `oc_file_locks` WHERE `key` = ? HAVING COUNT(*) = 0",["files\/40a3ca61a7a7820a908083a4c2c98474",1,1538587201,"files\/40a3ca61a7a7820a908083a4c2c98474"],[]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/DB\/Adapter.php","line":114,"function":"executeUpdate","class":"OC\\DB\\Connection","type":"->","args":["INSERT INTO `oc_file_locks` (`key`,`lock`,`ttl`) SELECT ?,?,? FROM `oc_file_locks` WHERE `key` = ? HAVING COUNT(*) = 0",["files\/40a3ca61a7a7820a908083a4c2c98474",1,1538587201,"files\/40a3ca61a7a7820a908083a4c2c98474"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/DB\/Connection.php","line":254,"function":"insertIfNotExist","class":"OC\\DB\\Adapter","type":"->","args":["*PREFIX*file_locks",{"key":"files\/40a3ca61a7a7820a908083a4c2c98474","lock":1,"ttl":1538587201},["key"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Lock\/DBLockingProvider.php","line":136,"function":"insertIfNotExist","class":"OC\\DB\\Connection","type":"->","args":["*PREFIX*file_locks",{"key":"files\/40a3ca61a7a7820a908083a4c2c98474","lock":1,"ttl":1538587201},["key"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Lock\/DBLockingProvider.php","line":181,"function":"initLockField","class":"OC\\Lock\\DBLockingProvider","type":"->","args":["files\/40a3ca61a7a7820a908083a4c2c98474",1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Storage\/Common.php","line":713,"function":"acquireLock","class":"OC\\Lock\\DBLockingProvider","type":"->","args":["files\/40a3ca61a7a7820a908083a4c2c98474",1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":592,"function":"acquireLock","class":"OC\\Files\\Storage\\Common","type":"->","args":["files\/Misc\/Studyguide-Q.docx",1,{"__class__":"OC\\Lock\\DBLockingProvider"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":592,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files\/Misc\/Studyguide-Q.docx",1,{"__class__":"OC\\Lock\\DBLockingProvider"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/View.php","line":1923,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files\/Misc\/Studyguide-Q.docx",1,{"__class__":"OC\\Lock\\DBLockingProvider"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/View.php","line":2033,"function":"lockPath","class":"OC\\Files\\View","type":"->","args":["\/aveilleux\/files\/Misc\/Studyguide-Q.docx",1,false]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Node\/Node.php","line":362,"function":"lockFile","class":"OC\\Files\\View","type":"->","args":["\/aveilleux\/files\/Misc\/Studyguide-Q.docx",1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/apps\/files_sharing\/lib\/Controller\/ShareAPIController.php","line":1052,"function":"lock","class":"OC\\Files\\Node\\Node","type":"->","args":[1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/apps\/files_sharing\/lib\/Controller\/ShareAPIController.php","line":668,"function":"lock","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"getShares","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->","args":["false","true","false",{"__class__":"OC\\Files\\Node\\File"},"false"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"getShares"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"getShares"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareAPIController","getShares",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.files_sharing.ShareAPI.getShares"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"ocs.files_sharing.ShareAPI.getShares"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"ocs.files_sharing.ShareAPI.getShares"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/ocs\/v1.php","line":82,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/ocsapp\/apps\/files_sharing\/api\/v1\/shares"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/ocs\/v2.php","line":24,"args":["***REMOVED SENSITIVE VALUE***\/nextcloud\/ocs\/v1.php"],"function":"require_once"}],"File":"***REMOVED SENSITIVE VALUE***\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php","Line":107,"Previous":{"Exception":"PDOException","Message":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'files\/40a3ca61a7a7820a908083a4c2c98474' for key 'lock_key_index'","Code":"23000","Trace":[{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php","line":105,"function":"execute","class":"PDOStatement","type":"->","args":[["files\/40a3ca61a7a7820a908083a4c2c98474",1,1538587201,"files\/40a3ca61a7a7820a908083a4c2c98474"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php","line":1008,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDOStatement","type":"->","args":[["files\/40a3ca61a7a7820a908083a4c2c98474",1,1538587201,"files\/40a3ca61a7a7820a908083a4c2c98474"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/DB\/Connection.php","line":216,"function":"executeUpdate","class":"Doctrine\\DBAL\\Connection","type":"->","args":["INSERT INTO `oc_file_locks` (`key`,`lock`,`ttl`) SELECT ?,?,? FROM `oc_file_locks` WHERE `key` = ? HAVING COUNT(*) = 0",["files\/40a3ca61a7a7820a908083a4c2c98474",1,1538587201,"files\/40a3ca61a7a7820a908083a4c2c98474"],[]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/DB\/Adapter.php","line":114,"function":"executeUpdate","class":"OC\\DB\\Connection","type":"->","args":["INSERT INTO `oc_file_locks` (`key`,`lock`,`ttl`) SELECT ?,?,? FROM `oc_file_locks` WHERE `key` = ? HAVING COUNT(*) = 0",["files\/40a3ca61a7a7820a908083a4c2c98474",1,1538587201,"files\/40a3ca61a7a7820a908083a4c2c98474"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/DB\/Connection.php","line":254,"function":"insertIfNotExist","class":"OC\\DB\\Adapter","type":"->","args":["*PREFIX*file_locks",{"key":"files\/40a3ca61a7a7820a908083a4c2c98474","lock":1,"ttl":1538587201},["key"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Lock\/DBLockingProvider.php","line":136,"function":"insertIfNotExist","class":"OC\\DB\\Connection","type":"->","args":["*PREFIX*file_locks",{"key":"files\/40a3ca61a7a7820a908083a4c2c98474","lock":1,"ttl":1538587201},["key"]]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Lock\/DBLockingProvider.php","line":181,"function":"initLockField","class":"OC\\Lock\\DBLockingProvider","type":"->","args":["files\/40a3ca61a7a7820a908083a4c2c98474",1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Storage\/Common.php","line":713,"function":"acquireLock","class":"OC\\Lock\\DBLockingProvider","type":"->","args":["files\/40a3ca61a7a7820a908083a4c2c98474",1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":592,"function":"acquireLock","class":"OC\\Files\\Storage\\Common","type":"->","args":["files\/Misc\/Studyguide-Q.docx",1,{"__class__":"OC\\Lock\\DBLockingProvider"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php","line":592,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files\/Misc\/Studyguide-Q.docx",1,{"__class__":"OC\\Lock\\DBLockingProvider"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/View.php","line":1923,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["files\/Misc\/Studyguide-Q.docx",1,{"__class__":"OC\\Lock\\DBLockingProvider"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/View.php","line":2033,"function":"lockPath","class":"OC\\Files\\View","type":"->","args":["\/aveilleux\/files\/Misc\/Studyguide-Q.docx",1,false]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Files\/Node\/Node.php","line":362,"function":"lockFile","class":"OC\\Files\\View","type":"->","args":["\/aveilleux\/files\/Misc\/Studyguide-Q.docx",1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/apps\/files_sharing\/lib\/Controller\/ShareAPIController.php","line":1052,"function":"lock","class":"OC\\Files\\Node\\Node","type":"->","args":[1]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/apps\/files_sharing\/lib\/Controller\/ShareAPIController.php","line":668,"function":"lock","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"getShares","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->","args":["false","true","false",{"__class__":"OC\\Files\\Node\\File"},"false"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"getShares"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"getShares"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareAPIController","getShares",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.files_sharing.ShareAPI.getShares"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"ocs.files_sharing.ShareAPI.getShares"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"ocs.files_sharing.ShareAPI.getShares"}]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/ocs\/v1.php","line":82,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/ocsapp\/apps\/files_sharing\/api\/v1\/shares"]},{"file":"***REMOVED SENSITIVE VALUE***\/nextcloud\/ocs\/v2.php","line":24,"args":["***REMOVED SENSITIVE VALUE***\/nextcloud\/ocs\/v1.php"],"function":"require_once"}],"File":"***REMOVED SENSITIVE VALUE***\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php","Line":105}},"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 6.1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/69.0.3497.100 Safari\/537.36","version":"14.0.1.1"}

Browser log

Browser log
GET https://***REMOVED SENSITIVE VALUE***/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2FCareer%2Fphleb-externship.PDF&shared_with_me=true 404 (Not Found)

 send                 @ core.js?v=b1b51dc8-4:4
 ajax                 @ core.js?v=b1b51dc8-4:4
 _fetchReshare        @ merged-share-backend.js?v=b1b51dc8-4:739
 fetch                @ merged-share-backend.js?v=b1b51dc8-4:785
 render               @ additionalScripts.js?v=b1b51dc8-4:352
 setFileInfo          @ merged-index.js?v=b1b51dc8-4:9140
 setFileInfo          @ merged-index.js?v=b1b51dc8-4:9645
 _updateDetailsView   @ merged-index.js?v=b1b51dc8-4:4889
 showDetailsView      @ merged-index.js?v=b1b51dc8-4:4838
 actionHandler        @ additionalScripts.js?v=b1b51dc8-4:175
 action               @ merged-index.js?v=b1b51dc8-4:9874
 (anonymous)          @ merged-index.js?v=b1b51dc8-4:10169
 dispatch             @ core.js?v=b1b51dc8-4:3
 r.handle             @ core.js?v=b1b51dc8-4:3
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #4159 (Shared API ), #8876 (Nextcloud instance users don't appear in autocomplete list of users when sharing a folder), #7227 (OCS Share API data empty), #8125 (share-menu displays different/incorrect permissions), and #7315 (Generic share and comments API).

@MorrisJobke
Copy link
Member

The URL there is totally fine. Maybe there is something wrong in your webserver config?

The error in the nextcloud.log is also not related to this one. Maybe check back in the forums for further help as this looks like a setup issue. https://help.nextcloud.com

If you wish support with setup issues from Nextcloud GmbH we offer this as part of the Nextcloud subscription. Learn more about this at https://nextcloud.com/enterprise/

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

No branches or pull requests

2 participants