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 files via webinterface, Page reloads #25285

Closed
JaBecker opened this issue Jun 28, 2016 · 9 comments
Closed

Cant upload files via webinterface, Page reloads #25285

JaBecker opened this issue Jun 28, 2016 · 9 comments

Comments

@JaBecker
Copy link

JaBecker commented Jun 28, 2016

Steps to reproduce

  1. Install owncloud 9.0.2 on Arch Linux with apache and PHP7
  2. follow installation and hardening instructions
  3. Try to upload a file with a size greater than about 10kb via the webinterface

Expected behaviour

The file should be uploaded.

Actual behaviour

Message: "Error while uploading the file "filenameofthefile": "
So no real error message

Server configuration

Operating system:
Arch Linux
Web server:
Apache 2.4
Database:
MySQL (MariaDB)
PHP version:
7.0.8
ownCloud version: (see ownCloud admin page)
9.0.2
Updated from an older ownCloud or fresh install:
updated from 8.0
Where did you install ownCloud from:
Arch AUR repository
Signing status (ownCloud 9.0 and above):
?

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

Integrity checker has been disabled. Integrity cannot be verified.
List of activated apps:
Enabled:

  • activity: 2.2.1
  • bookmarks: 0.666666
  • calendar: 1.2.2
  • contacts: 1.3.1.0
  • dav: 0.1.6
  • federatedfilesharing: 0.1.0
  • files: 1.4.4
  • files_pdfviewer: 0.8.1
  • files_sharing: 0.9.1
  • files_texteditor: 2.1
  • files_trashbin: 0.8.0
  • files_versions: 1.2.0
  • files_videoplayer: 0.9.8
  • gallery: 14.5.0
  • notifications: 0.2.3
  • provisioning_api: 0.4.1
  • tasks: 0.9.1
  • updatenotification: 0.1.0
    Disabled:
  • comments
  • encryption
  • external
  • federation
  • files_external
  • firstrunwizard
  • news
  • systemtags
  • templateeditor
  • user_external
  • user_ldap
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

or 

Insert your config.php content here
(Without the database password, passwordsalt and secret)

{
"system": {
"instanceid": "oc8kwx489kde",
"passwordsalt": "_REMOVED SENSITIVE VALUE",
"secret": "_REMOVED SENSITIVE VALUE
",
"trusted_domains": [
"192.168.2.119",
"MyServerurl"
],
"datadirectory": "/usr/share/webapps/owncloud/data",
"overwrite.cli.url": "http://192.168.2.119/owncloud",
"dbtype": "mysql",
"version": "9.0.2.2",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "_REMOVED SENSITIVE VALUE",
"dbpassword": "_REMOVED SENSITIVE VALUE
",
"logtimezone": "UTC",
"installed": true,
"memcache.local": "\OC\Memcache\APCu",
"loglevel": 0,
"enable_previews": false,
"trashbin_retention_obligation": 30,
"log_rotate_size": 2621440,
"asset-pipeline.enabled": false,
"appstore.experimental.enabled": false,
"theme": "",
"maintenance": false,
"overwriteprotocol": "https"
}
}

Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no

Client configuration

Browser:
Chromium 51.0.2704.103
Operating system:
Arch Linux

Logs

Web server error log

Insert your webserver log here

[Tue Jun 28 10:47:47.354943 2016] [mpm_prefork:notice] [pid 7127] AH00163: Apache/2.4.20 (Unix) OpenSSL/1.0.2h configured -- resuming normal operations
[Tue Jun 28 10:47:47.355309 2016] [core:notice] [pid 7127] AH00094: Command line: '/usr/bin/httpd -D FOREGROUND'
[Tue Jun 28 10:50:50.729387 2016] [authz_core:error] [pid 7130] [client 134.2.50.103:36802] AH01630: client denied by server configuration: /usr/share/webapps/owncloud/data/.ocdata

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

{"reqId":"jkmiKy9anKw5UBV6SJO5","remoteAddr":"134.2.50.103","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2016-06-28T08:47:59+00:00","method":"GET","url":"/owncloud/$
{"reqId":"bavAZneTwJBUWoB/EbNl","remoteAddr":"134.2.50.103","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2016-06-28T08:48:11+00:00","method":"GET","url":"/owncloud$
{"reqId":"kWB3ZHmpg/QKMppNKnWX","remoteAddr":"134.2.50.103","app":"files","message":"Upload error: 3 - Die Datei konnte nur teilweise \u00fcbertragen werden","level":3,"time":"2016-06-28T08:49:42+00:00","me$
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 31","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 31","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 30","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 30","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 28","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 28","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 12","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 12","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 11","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 11","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 10","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 10","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 9","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 9","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 8","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 8","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 7","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 7","level":0,"time":"2016-06-28T08:50:44+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 3","level":0,"time":"2016-06-28T08:50:45+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 3","level":0,"time":"2016-06-28T08:50:45+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 2","level":0,"time":"2016-06-28T08:50:45+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 2","level":0,"time":"2016-06-28T08:50:45+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Run job with ID 1","level":0,"time":"2016-06-28T08:50:45+00:00","method":"--","url":"--","user":"--"}
{"reqId":"EwwfSk3aZdxZB6Q9ePw+","remoteAddr":"","app":"cron","message":"Finished job with ID 1","level":0,"time":"2016-06-28T08:50:45+00:00","method":"--","url":"--","user":"--"}
{"reqId":"JaSsLnQre461PoyNs//x","remoteAddr":"134.2.50.103","app":"no app in context","message":"Current user is not logged in","level":0,"time":"2016-06-28T08:56:33+00:00","method":"GET","url":"/owncloud$
{"reqId":"PIFFt6EMgGzDXoNl7Qzm","remoteAddr":"134.2.50.103","app":"files","message":"Upload error: 3 - Die Datei konnte nur teilweise \u00fcbertragen werden","level":3,"time":"2016-06-28T08:57:07+00:00","met$
{"reqId":"U5v3oIS9/oE81fO1No5k","remoteAddr":"134.2.50.103","app":"core","message":"No update found at the ownCloud appstore for app 166049","level":0,"time":"2016-06-28T08:59:41+00:00","method":"GET","url"$
{"reqId":"U5v3oIS9/oE81fO1No5k","remoteAddr":"134.2.50.103","app":"core","message":"No update found at the ownCloud appstore for app 166051","level":0,"time":"2016-06-28T08:59:44+00:00","method":"GET","url"$
{"reqId":"U5v3oIS9/oE81fO1No5k","remoteAddr":"134.2.50.103","app":"core","message":"No update found at the ownCloud appstore for app 166055","level":0,"time":"2016-06-28T08:59:45+00:00","method":"GET","url"$
{"reqId":"cXQgSIRsUP+Bfzz5pna7","remoteAddr":"","app":"cron","message":"Run job with ID 31","level":0,"time":"2016-06-28T09:00:44+00:00","method":"--","url":"--","user":"--"}

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

jquery.min.js?v=1a88d2f…:6 POST https://MyServerurl/owncloud/index.php/apps/files/ajax/upload.php net::ERR_SPDY_PROTOCOL_ERRORsend @ jquery.min.js?v=1a88d2f…:6ajax @ jquery.min.js?v=1a88d2f…:6send @ jquery.fileupload.js?v=1a88d2f…:834(anonymous function) @ jquery.min.js?v=1a88d2f…:4c @ jquery.min.js?v=1a88d2f…:4add @ jquery.min.js?v=1a88d2f…:4(anonymous function) @ jquery.min.js?v=1a88d2f…:4each @ jquery.min.js?v=1a88d2f…:4(anonymous function) @ jquery.min.js?v=1a88d2f…:4Deferred @ jquery.min.js?v=1a88d2f…:4then @ jquery.min.js?v=1a88d2f…:4_onSend @ jquery.fileupload.js?v=1a88d2f…:878(anonymous function) @ jquery-ui.custom.js?v=1a88d2f…:405data.submit @ jquery.fileupload.js?v=1a88d2f…:612(anonymous function) @ file-upload.js?v=1a88d2f…:413each @ jquery.min.js?v=1a88d2f…:4onNoConflicts @ file-upload.js?v=1a88d2f…:412checkExistingFiles @ file-upload.js?v=1a88d2f…:239add @ file-upload.js?v=1a88d2f…:432_trigger @ jquery-ui.custom.js?v=1a88d2f…:789(anonymous function) @ jquery.fileupload.js?v=1a88d2f…:935each @ jquery.min.js?v=1a88d2f…:4_onAdd @ jquery.fileupload.js?v=1a88d2f…:928(anonymous function) @ jquery-ui.custom.js?v=1a88d2f…:405(anonymous function) @ jquery.fileupload.js?v=1a88d2f…:1105c @ jquery.min.js?v=1a88d2f…:4add @ jquery.min.js?v=1a88d2f…:4always @ jquery.min.js?v=1a88d2f…:4_onChange @ jquery.fileupload.js?v=1a88d2f…:1099(anonymous function) @ jquery-ui.custom.js?v=1a88d2f…:405handlerProxy @ jquery-ui.custom.js?v=1a88d2f…:706dispatch @ jquery.min.js?v=1a88d2f…:5v.handle @ jquery.min.js?v=1a88d2f…:5
Navigated to https://MyServerurl/owncloud/index.php/apps/files/

@PVince81
Copy link
Contributor

No idea but it's likely to be a setup issue of some sorts.
Maybe try uploading with Webdav and see if you can get a more useful error message there.
Check the network console of the "ajax/upload.php" call.

@JaBecker
Copy link
Author

The desktop client uses webdav, right? Because uploading with the desktop client or the FolderSync android app works fine.

@PVince81
Copy link
Contributor

Web UI upload uses POST. Webdav uses PUT.

Maybe check your web server config regarding POST uploads

@JaBecker
Copy link
Author

JaBecker commented Jun 28, 2016

Which values should I check?

@JaBecker
Copy link
Author

JaBecker commented Jun 30, 2016

Do you think the message
"https://domainofthepage/owncloud/index.php/apps/files/ajax/upload.php net::ERR_SPDY_PROTOCOL_ERROR" in the chromium javascript console is of any help?

@JaBecker
Copy link
Author

JaBecker commented Jul 2, 2016

After an update to Owncloud 9.0.3 the error messages read

AH01630: client denied by server configuration: /usr/share/webapps/owncloud/data/htaccesstest.txt

and:

Fehler beim Hochladen der Datei "filename":
Problem loading page, reloading in 5 seconds

@JaBecker
Copy link
Author

JaBecker commented Jul 3, 2016

Found the culprit: In Apache, I've set

Protocols h2 http/1.1

instead of

Protocols h2c http/1.1

as it should be. Now everything works fine. The Issue can be closed.

@JaBecker JaBecker closed this as completed Jul 3, 2016
@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label needs info is set and there were no updates for 14 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.

@lock
Copy link

lock bot commented Jul 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants