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

owncloud app upload issue #11729

Closed
giorgosperi opened this issue Oct 23, 2014 · 10 comments
Closed

owncloud app upload issue #11729

giorgosperi opened this issue Oct 23, 2014 · 10 comments

Comments

@giorgosperi
Copy link

Hello, i am trying to upload files from owncloud app but its getting failed. Everything else is working fine. Uploading from computer client etc. Do you have any idea? I can post also the logs if you want. Thank you in advance.

@karlitschek
Copy link
Contributor

we need a full bug report using our issue template please. Thanks

@PVince81
Copy link
Contributor

@giorgosperi
Copy link
Author

Expected behaviour

Everything is working fine except the uploading from owncloud app. You check the process that is starting but after some % it fails.

Actual behaviour

Everything is working fine except the uploading from owncloud app. You check the process that is starting but after some % it fails.

Server configuration

Web server:
its under the nas4free

Database:
sqllite

PHP version:
where i can find the version of the php that is using?

ownCloud version: (see ownCloud admin page)
7.0.2
Updated from an older ownCloud or fresh install:
new installation
List of activated apps:
only the by default apps

The content of config/config.php:

Insert your config.php content here
<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'trusted_domains' => 
  array (
    0 => 'xxxx',
    1 => 'xxxx,
    2 => 'xxxx',
    3 => 'xxxx',
  ),
  'datadirectory' => '/mnt/Pool1/www/owncloud/data',
  'dbtype' => 'sqlite3',
  'version' => '7.0.2.1',
  'installed' => true,
  'forcessl' => true,
  'loglevel' => '0',
);

i deleted the instanceid, the passwordsalt and i replaced the trusted ip's that i have with xxxx. if you need it also i can post them.
(Without the database password and passwordsalt)

Are you using external storage, if yes which one: local/smb/sftp/...
yes i m using the storage on the nas4free /mnt/Pool1/www and here /mnt/Pool1/www/owncloud/data
i m using for the user files.

Are you using encryption: yes/no
yes ssl.

Client configuration

Browser:
Any ( Chrome, Mozilla)

Operating system:
Windows7. Android 4.4.2 for the application. I tried also on IOS.

Logs

Web server error log

Insert your webserver log here
where i can find the log? Maybe the log of the nas4free?

#### ownCloud log (data/owncloud.log)

Insert your ownCloud log here
{"reqId":"5448a7fa72a5e","app":"PHP","message":"syntax error, unexpected 'const' (T_CONST) at \/mnt\/Pool1\/www\/owncloud\/lib\/private\/connector\/sabre\/filesplugin.php#16","level":3,"time":"2014-10-23T07:02:18+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/IMG_20140810_172358%20(151).jpg"}
{"reqId":"5448a7fac0c9b","app":"PHP","message":"syntax error, unexpected 'const' (T_CONST) at \/mnt\/Pool1\/www\/owncloud\/lib\/private\/connector\/sabre\/filesplugin.php#16","level":3,"time":"2014-10-23T07:02:18+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/IMG_20140810_172358%20(152).jpg"}
{"reqId":"5448a7fb88a66","app":"PHP","message":"syntax error, unexpected 'const' (T_CONST) at \/mnt\/Pool1\/www\/owncloud\/lib\/private\/connector\/sabre\/filesplugin.php#16","level":3,"time":"2014-10-23T07:02:19+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/IMG_20140810_172358%20(153).jpg"}
{"reqId":"5448a7fbd6c93","app":"PHP","message":"syntax error, unexpected 'const' (T_CONST) at \/mnt\/Pool1\/www\/owncloud\/lib\/private\/connector\/sabre\/filesplugin.php#16","level":3,"time":"2014-10-23T07:02:19+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/IMG_20140810_172358%20(154).jpg"}
{"reqId":"5448a7fc2e566","app":"PHP","message":"syntax error, unexpected 'const' (T_CONST) at \/mnt\/Pool1\/www\/owncloud\/lib\/private\/connector\/sabre\/filesplugin.php#16","level":3,"time":"2014-10-23T07:02:20+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/IMG_20140810_172358%20(155).jpg"}
{"reqId":"5448a7fc7c796","app":"webdav","message":"Sabre\\DAV\\Exception\\NotFound: File with name photos\/IMG_20140810_172358 (156).jpg could not be located","level":0,"time":"2014-10-23T07:02:20+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/IMG_20140810_172358%20(156).jpg"}
{"reqId":"5448a809a5e26","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-23T07:02:33+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"5448a829a5f5e","app":"webdav","message":"Sabre\\DAV\\Exception\\NotFound: File with name photos\/xxxx.mp3 could not be located","level":0,"time":"2014-10-23T07:03:05+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/xxxx.mp3"}
{"reqId":"5448a82a816e3","app":"PHP","message":"Call to undefined method OC_Connector_Sabre_Directory::getSize() at \/mnt\/Pool1\/www\/owncloud\/lib\/private\/connector\/sabre\/filesplugin.php#87","level":3,"time":"2014-10-23T07:03:06+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/photos\/"}
{"reqId":"5448a831b2286","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-23T07:03:13+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"5448a8b09c3c2","app":"webdav","message":"Sabre\\DAV\\Exception\\NotFound: File with name photos\/IMG_20140810_172358.jpg could not be located","level":0,"time":"2014-10-23T07:05:20+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/IMG_20140810_172358.jpg"}
{"reqId":"5448a8ba2bd83","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-23T07:05:30+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"5448a8bb35a18","app":"PHP","message":"mkdir(): Permission denied at \/mnt\/Pool1\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#15","level":3,"time":"2014-10-23T07:05:31+00:00","method":"GET","url":"\/owncloud\/cron.php"}
{"reqId":"5448a8e75a332","app":"webdav","message":"Sabre\\DAV\\Exception\\NotFound: File with name photos\/02  - \u03a4\u03cc\u03c3\u03b1 \u03ba\u03b1\u03bb\u03bf\u03ba\u03b1\u03af\u03c1\u03b9\u03b1.mp3 could not be located","level":0,"time":"2014-10-23T07:06:15+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/
{"reqId":"5448a8f0ea4a3","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-23T07:06:24+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"5448a99061956","app":"webdav","message":"Sabre\\DAV\\Exception\\NotFound: File with name photos\/IMG_20140810_172358.jpg could not be located","level":0,"time":"2014-10-23T07:09:04+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/photos\/IMG_20140810_172358.jpg"}
{"reqId":"5448a99715db3","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-23T07:09:11+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"5448a9b34454f","app":"webdav","message":"Sabre\\DAV\\Exception\\NotFound: File with name music\/03 \u0392\u03b1\u03c3\u03b9\u03bb\u03b9\u03ba\u03ae \u039d\u03c4\u03b1\u03bd\u03c4\u03ac - \u039f\u03cd\u03c4\u03b5 \u039d\u03b1 \u03a3\u03b5 \u039e\u03b1\u03bd\u03b1\u03b4\u03ce.mp3 could not be located","level":0,"time":"2014-10-23T07:09:39+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/music\/03%20%CE%92%CE%B1%CF%83%CE%B9%CE%BB%CE%B9%CE%BA%CE%AE%20%CE%9D%CF%84%CE%B1%CE%BD%CF%84%CE%AC%20-%20%CE%9F%CF%8D%CF%84%CE%B5%20%CE%9D%CE%B1%20%CE%A3%CE%B5%20%CE%9E%CE%B1%CE%BD%CE%B1%CE%B4%CF%8E.mp3"}
{"reqId":"5448a9bc3322f","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-23T07:09:48+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"5448ab64926ac","app":"webdav","message":"Sabre\\DAV\\Exception\\NotFound: File with name music\/03 \u0392\u03b1\u03c3\u03b9\u03bb\u03b9\u03ba\u03ae \u039d\u03c4\u03b1\u03bd\u03c4\u03ac - \u039f\u03cd\u03c4\u03b5 \u039d\u03b1 \u03a3\u03b5 \u039e\u03b1\u03bd\u03b1\u03b4\u03ce.mp3 could not be located","level":0,"time":"2014-10-23T07:16:52+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/music\/03%20%CE%92%CE%B1%CF%83%CE%B9%CE%BB%CE%B9%CE%BA%CE%AE%20%CE%9D%CF%84%CE%B1%CE%BD%CF%84%CE%AC%20-%20%CE%9F%CF%8D%CF%84%CE%B5%20%CE%9D%CE%B1%20%CE%A3%CE%B5%20%CE%9E%CE%B1%CE%BD%CE%B1%CE%B4%CF%8E.mp3"}
{"reqId":"5448ab77b96ee","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-23T07:17:11+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"5448ab79492d4","app":"PHP","message":"mkdir(): Permission denied at \/mnt\/Pool1\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#15","level":3,"time":"2014-10-23T07:17:13+00:00","method":"GET","url":"\/owncloud\/cron.php"}
{"reqId":"5448ad402bdc8","app":"webdav","message":"Sabre\\DAV\\Exception\\NotFound: File with name music\/IMG_20140810_172358.jpg could not be located","level":0,"time":"2014-10-23T07:24:48+00:00","method":"HEAD","url":"\/owncloud\/remote.php\/webdav\/music\/IMG_20140810_172358.jpg"}
{"reqId":"5448ad43220e7","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-23T07:24:51+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"5448ad48332dd","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-10-23T07:24:56+00:00","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/"}
{"reqId":"5448ad4949308","app":"PHP","message":"mkdir(): Permission denied at \/mnt\/Pool1\/www\/owncloud\/lib\/private\/cache\/fileglobal.php#15","level":3,"time":"2014-10-23T07:24:57+00:00","method":"GET","url":"\/owncloud\/cron.php"}

i just copied the last 25 lines that i think that here is the problem. on two lines just i deleted the file title that i tried to upload.

#### Browser log

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

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



let me know if you need more information. I tried to give whatever i knew. I am using it only 1-2 days. Thank you in advance.

@PVince81 PVince81 reopened this Oct 23, 2014
@PVince81
Copy link
Contributor

You can get the php version by typing php --version.

There are some suspicious syntax errors in the log, maybe your PHP version is outdated.
The minimum required version is 5.3.3. Recommanded is >= 5.4

@giorgosperi
Copy link
Author

I noticed that the issue is with the size of the files. I tried some kb and it worked. I think over 1 mb is not working. I will check also the php version but can i type the command under nas4free?

update : also i am getting the error request entity too large.
i see also under the logs
Error PHP mkdir(): Permission denied at /mnt/Pool1/www/owncloud/lib/private/cache/fileglobal.php#15 2014-10-23T21:23:03+00:00
Error PHP mkdir(): Permission denied at /mnt/Pool1/www/owncloud/lib/private/cache/fileglobal.php#15 2014-10-23T21:13:12+00:00
Error PHP mkdir(): Permission denied at /mnt/Pool1/www/owncloud/lib/private/cache/fileglobal.php#15 2014-10-23T20:54:46+00:00
Error PHP mkdir(): Permission denied at /mnt/Pool1/www/owncloud/lib/private/cache/fileglobal.php#15 2014-10-23T17:12:37+00:00
Error PHP mkdir(): Permission denied at /mnt/Pool1/www/owncloud/lib/private/cache/fileglobal.php#15 2014-10-23T07:24:57+00:00
Error PHP mkdir(): Permission denied at /mnt/Pool1/www/owncloud/lib/private/cache/fileglobal.php#15 2014-10-23T07:17:13+00:00
Error PHP mkdir(): Permission denied at /mnt/Pool1/www/owncloud/lib/private/cache/fileglobal.php#15

@giorgosperi
Copy link
Author

finally i found the issue it was the path of the upload directory of the webserver. I didn't have permissions to this maybe. I changed it to the default path. Thank you for the assistance anyway.

@giorgosperi
Copy link
Author

just one more question if you know. How i can change the maximum upload limit? Now its 512mb i found something under .htaccess but i think on the owncloud plugin i have to change it also somewhere else..

@giorgosperi
Copy link
Author

i changed from both .htaccess and php.ini. i tried 1900M but still i see there 513mb limit.

@PVince81
Copy link
Contributor

Maybe nas4free is bundled with nginx instead of Apache ? Have you tried the nginx settings instead ?

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

No branches or pull requests

3 participants