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

Cant upload from nextcloud app #52

Closed
Tealk opened this issue Aug 14, 2017 · 4 comments
Closed

Cant upload from nextcloud app #52

Tealk opened this issue Aug 14, 2017 · 4 comments

Comments

@Tealk
Copy link

Tealk commented Aug 14, 2017

Steps to reproduce

  1. Upload file with nextcloud iphone app

Actual behaviour

Client:
Internal server error

Server:
{"reqId":"eqGQ5FryRzfEfDN5UuVc","level":3,"time":"14.08.17 16:36:31","remoteAddr":"80.187.103.136","user":"Tealk","app":"PHP","method":"PUT","url":"/remote.php/webdav/AnzahCraft/17-08-12%2014-30-11%200237.jpg","message":"copy(//home/anzahcloud/17-08-12 14-30-11 0237.jpg): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#272","userAgent":"Nextcloud/00005 CFNetwork/878.2 Darwin/17.0.0","version":"12.0.1.5"}
{"reqId":"eqGQ5FryRzfEfDN5UuVc","level":4,"time":"14.08.17 16:36:31","remoteAddr":"80.187.103.136","user":"Tealk","app":"webdav","method":"PUT","url":"/remote.php/webdav/AnzahCraft/17-08-12%2014-30-11%200237.jpg","message":"Exception: {"Exception":"Sabre\\DAV\\Exception","Message":"path needs to be relative to the system wide data folder and point to a user specific file","Code":0,"Trace":"#0 \/var\/www\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/File.php(194): OCA\\DAV\\Connector\\Sabre\\File->convertToSabreException(Object(BadMethodCallException))\n#1 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(1130): OCA\\DAV\\Connector\\Sabre\\File->put(Resource id #24)\n#2 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php(513): Sabre\\DAV\\Server->updateFile('AnzahCraft\/17-0...', Resource id #24, NULL)\n#3 [internal function]: Sabre\\DAV\\CorePlugin->httpPut(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#4 \/var\/www\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#5 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:PUT', Array)\n#6 \/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#7 \/var\/www\/nextcloud\/apps\/dav\/appinfo\/v1\/webdav.php(71): Sabre\\DAV\\Server->exec()\n#8 \/var\/www\/nextcloud\/remote.php(162): require_once('\/var\/www\/nextcl...')\n#9 {main}","File":"\/var\/www\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/File.php","Line":567}","userAgent":"Nextcloud/00005 CFNetwork/878.2 Darwin/17.0.0","version":"12.0.1.5"}

General server configuration

Operating system: Linux Anzah-Cloud 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) x86_64

Web server: Apache/2.4.10 (Debian) (apache2handler)

Database: mysql 5.7.19

PHP version: 7.1.8-2+020170804100723.7+jessie1.gbpae7f04

PHP-modules loaded
 - Core
 - date
 - libxml
 - openssl
 - pcre
 - zlib
 - filter
 - hash
 - Reflection
 - SPL
 - session
 - standard
 - apache2handler
 - mysqlnd
 - PDO
 - xml
 - apcu
 - apc
 - calendar
 - ctype
 - curl
 - dom
 - mbstring
 - fileinfo
 - ftp
 - gd
 - geoip
 - gettext
 - iconv
 - igbinary
 - intl
 - json
 - exif
 - mcrypt
 - msgpack
 - mysqli
 - pdo_mysql
 - Phar
 - posix
 - readline
 - shmop
 - SimpleXML
 - sockets
 - sysvmsg
 - sysvsem
 - sysvshm
 - tokenizer
 - wddx
 - xmlreader
 - xmlwriter
 - xsl
 - zip
 - memcached
 - Zend OPcache

Nextcloud configuration

Nextcloud version: 12.0.3

Updated from an older Nextcloud/ownCloud or fresh install: YOUR ANSWER HERE

Where did you install Nextcloud from: YOUR ANSWER HERE

Are you using external storage, if yes which one: files_external is disabled

Are you using encryption: yes

Are you using an external user-backend, if yes which one: YOUR ANSWER HERE (LDAP/ActiveDirectory/Webdav/...)

Signing status
[]
Enabled apps
 - activity: 2.5.2
 - admin_audit: 1.2.0
 - admin_notifications: 1.0.0
 - apporder: 0.4.0
 - bookmarks: 0.10.1
 - bruteforcesettings: 1.0.2
 - calendar: 1.5.3
 - comments: 1.2.0
 - contacts: 1.5.3
 - dav: 1.3.0
 - encryption: 1.6.0
 - federatedfilesharing: 1.2.0
 - federation: 1.2.0
 - files: 1.7.2
 - files_downloadactivity: 1.1.1
 - files_pdfviewer: 1.1.1
 - files_reader: 1.0.4
 - files_sharing: 1.4.0
 - files_texteditor: 2.4.1
 - files_trashbin: 1.2.0
 - files_versions: 1.5.0
 - files_videoplayer: 1.1.0
 - firstrunwizard: 2.1
 - groupfolders: 1.1.0
 - issuetemplate: 0.2.2
 - logreader: 2.0.0
 - lookup_server_connector: 1.0.0
 - mail: 0.6.4
 - news: 11.0.5
 - nextcloud_announcements: 1.1
 - notifications: 2.0.0
 - oauth2: 1.0.5
 - password_policy: 1.2.2
 - provisioning_api: 1.2.0
 - quota_warning: 1.0.1
 - serverinfo: 1.2.0
 - sharebymail: 1.2.0
 - socialsharing_email: 1.0.1
 - survey_client: 1.0.0
 - systemtags: 1.2.0
 - tasks: 0.9.5
 - theming: 1.3.0
 - twofactor_backupcodes: 1.1.1
 - twofactor_totp: 1.3.0
 - twofactor_u2f: 1.3.2
 - updatenotification: 1.2.0
 - workflowengine: 1.2.0
Disabled apps
 - files_external
 - gallery
 - user_external
 - user_ldap
Content of config/config.php
{
    "instanceid": "ocz6kekhpjaq",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "anzah.cloud"
    ],
    "datadirectory": "\/home\/anzahcloud",
    "overwrite.cli.url": "https:\/\/anzah.cloud",
    "dbtype": "mysql",
    "version": "12.0.1.5",
    "dbname": "anzahcloud",
    "dbhost": "localhost",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "logtimezone": "Europe\/Berlin",
    "installed": true,
    "forcessl": true,
    "asset-pipeline.enabled": true,
    "theme": "",
    "log_type": "owncloud",
    "logfile": "\/home\/anzahcloud\/nextcloud.log",
    "loglevel": 2,
    "syslog_tag": "ownCloud",
    "logdateformat": "d.m.y H:i:s",
    "log_query": false,
    "cron_log": true,
    "log_rotate_size": 104857600,
    "versions_retention_obligation": "auto, 120",
    "trashbin_retention_obligation": "auto, 60",
    "mail_from_address": "noreply",
    "mail_smtpmode": "smtp",
    "mail_domain": "anzahcraft.de",
    "maintenance": false,
    "updatechecker": false,
    "appstore.experimental.enabled": true,
    "enable_previews": true,
    "preview_max_x": 2048,
    "preview_max_y": 2048,
    "preview_max_filesize_image": 50,
    "preview_max_scale_factor": 10,
    "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
    "preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore -convert-to pdf -outdir ",
    "enabledPreviewProviders": [
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\MP3",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown",
        "OC\\Preview\\OpenDocument",
        "OC\\Preview\\PDF"
    ],
    "memcache.local": "\\OC\\Memcache\\APCu",
    "blacklisted_files": [
        ".htaccess"
    ],
    "minimum.supported.desktop.version": "2.2.2",
    "assetdirectory": "\/var\/www\/nextcloud",
    "activity_expire_days": 365,
    "htaccess.RewriteBase": "\/",
    "mail_smtpauth": 1,
    "mail_smtphost": "s95.goserver.host",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "singleuser": false,
    "mysql.utf8mb4": true
}

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.91 Safari/537.36 Vivaldi/1.92.917.39

Operating system: YOUR ANSWER HERE

Logs

Web server error log
Insert your webserver log here
Nextcloud log (data/nextcloud.log)
Insert your Nextcloud log here
Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@joergmschulz
Copy link

joergmschulz commented Sep 29, 2017

same here using NC 12.0.2 & 3.
install of current client did NOT help.

@jpantall
Copy link

Experiencing same issue with NC 12.0.0.

@icewind1991
Copy link
Member

Can you upload trough any other means?

@icewind1991
Copy link
Member

Using groupfolders with encryption is not supported.

The upcoming groupfolders release that will come with NC15 will properly disable encryption for group folders.

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