Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Unable to upload files 5.0 RC1 #2006

Closed
ccianciulli opened this Issue · 37 comments

13 participants

ccianciulli Thomas Müller im1981 Bernhard Posselt Lukas Reschke Michael Gapczynski sare Robin Appelman cf-josecarlos schnebeck Paul MAILLARDET Daniel Reuther Georges
ccianciulli

Expected behaviour

Upload a file or create a directory

Actual behaviour

There isn't upload button

Steps to reproduce

  1. Fresh install
  2. Try to upload a file or to create a dir

Server configuration

Operating system:
Ubuntu server 12.04

Web server:
Apache/2.2.14 (Ubuntu) Server

PHP version:
PHP Version 5.3.2-1ubuntu4.18

ownCloud version:
5.0 RC1

Client configuration

Browser:
All

Operating system:
All

With a fresh install there isn't the button to upload a file or to create a directory
On te same server the 4.5.7 works good.
In the apache vhost config there is already Allowoverride All

Schermata 2013-03-01 alle 13 22 18
Schermata 2013-03-01 alle 13 22 31

Thomas Müller

please double check if the web server user has write access to the folders/subfolders.

Upload will be disabled if there are not enough rights

#2001 (comment)

ccianciulli

the permissions seem good:

/var/www/owncloud
drwxr-xr-x 14 www-data www-data 4096 2013-03-01 13:13 owncloud

/var/www/owcloud/data
drwxrwx--- 3 www-data www-data 4096 2013-03-01 13:14 data

/var/www/owncloud/data/admin
drwxr-xr-x 3 www-data www-data 4096 2013-03-01 13:13 admin

/var/www/owncloud/data/admin/files
drwxr-xr-x 2 www-data www-data 4096 2013-03-01 13:13 files

Also with a chmod -R 777 not work.

ccianciulli

Some logs:

{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"PHP","message":"Undefined index: size at \/var\/www\/owncloud\/lib\/helper.php#804","level":2,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148024}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148024}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148024}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148024}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148024}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148024}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148025}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1362148025}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148025}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148025}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/lib\/hook.php#72","level":2,"time":1362148025}

Thomas Müller

Ouch!

@icewind1991 any idea? THX

ccianciulli

On a fresh install of ubuntu work good

im1981

Same Problem

Bernhard Posselt
Collaborator

so this is an upgrade issue?

im1981

I had done a fresh install. On Ubuntu.

Bernhard Posselt
Collaborator

can you try the latest master version on git? I can create textfiles just fine

im1981

I had tried the latest version from github, last time pulled this afternoon.

My System:
PHP Version 5.3.2-1ubuntu4.18

ownCloud version:
5.0 RC1

Lukas Reschke
Collaborator

Can't reproduce here with PHP 5.4.10 on OS X 10.8

Bernhard Posselt
Collaborator

which apps do you use?

im1981

To minimize error vector i disabled all apps except calendar, contacts and files. Exactly as ccianciulli described 4.5.7 works good.

Bernhard Posselt
Collaborator

Enabled the same apps as you, still cant reproduce. In that case i need a more detailed description how i can reproduce it.

im1981

@Raydiation which PHP Version do you use, which OS?

Mine is: PHP Version 5.3.2-1ubuntu4.18 the same as @ccianciulli uses.

Bernhard Posselt
Collaborator

@im1981 PHP 5.4.12 archlinux

ccianciulli

@im1981 starting from a new installation of Ubuntu (ubuntu-12.04.2-server-amd64.iso), upgrading the distro and installing owncloud 5.0 RC1 there aren't problem. The only edit needed is the AllowOverride All in /etc/apache2/sites-avaiable/default for the /var/www/ directory.

Bernhard Posselt
Collaborator

@ccianciulli is this documented :D? in the admin manual. Because if this is needed, it should be

im1981

Distro upgrade is not an option in my case. My System meets all oc requirements.

Michael Gapczynski

Very strange that the local storage class is not found. Can you confirm that the file /lib/files/storage/local.php exists?

sare

I have exactly the same problem, using ownCloud 5 RC1.
OC 4.5.7 works fine.

System:
Ubuntu 10.04.4 LTS
PHP 5.3.2-1ubuntu4.18
Apache/2.2.14 (Ubuntu)
Parallels Plesk 11.0.9 Update #38

The problem does not depend on the database, I tried both databases.

I am also not able to store any options, they always get reset.

/lib/files/storage/local.php exists.

Bernhard Posselt
Collaborator

@ccianciulli what do you mean by upgrading the distro? are you on 12.10 now?

@im1981 ive gone through the changelogs of php and there shouldnt be any big changes. But there are so many bug and security fixes that you might want to upgrade to a newer server distro nonetheless.

Maybe we have to require the latest bugfix release of 5.3? @bartv2 do you have any idea?

ccianciulli

@Raydiation no stil on 12.04, just apt-get upgrade not dist-upgrade.
@MTGap i confirm that /lib/files/storage/local.php exist

Bernhard Posselt
Collaborator

@icewind1991 how can this work https://github.com/owncloud/core/blob/master/lib/files/mount.php#L66

The storage classes have a different namespace than their directory structure.

Robin Appelman
Owner

@Raydiation what do you mean, the storage classes are /OC/Files/Storage/* and they are stored in /lib/files/storage/*.php

Bernhard Posselt
Collaborator

@icewind also shared storage?

Robin Appelman
Owner

That sets the class path for the storage class like other apps do

Bernhard Posselt
Collaborator

i see, so thats not the issue hm

Michael Gapczynski

Does anyone have additional logs? Is it just the storage classes not being found? There seems to be a problem with the autoloader on this version of php.

Bernhard Posselt
Collaborator

Cant reproduce this with 12.04

Edit: and neither with Debian 7 and Archlinux

Bernhard Posselt
Collaborator

Please create a new bug or reopen if this can be properly reproduced by anyone.

Bernhard Posselt Raydiation closed this
cf-josecarlos

I have the same problem in Ubuntu 10.04 LTS.

System:
Ubuntu 10.04.4 LTS
PHP 5.3.2-1ubuntu4.18
Apache/2.2.14 (Ubuntu)

Logs:
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1363124216}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1363124216}
{"app":"PHP","message":"Undefined index: size at \/var\/www\/owncloud\/owncloud\/lib\/helper.php#799","level":2,"time":1363124216}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1363124216}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at \/var\/www\/owncloud\/owncloud\/lib\/hook.php#72","level":2,"time":1363124516}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1363124516}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1363124516}
{"app":"PHP","message":"Undefined index: size at \/var\/www\/owncloud\/owncloud\/lib\/helper.php#799","level":2,"time":1363124516}
{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1363124516}

schnebeck

For Ubuntu 10.04.4 LTS helps

sudo echo "deb http://ppa.launchpad.net/ondrej/php5/ubuntu lucid main" >> /etc/apt/sources.list
sudo echo "deb-src http://ppa.launchpad.net/ondrej/php5/ubuntu lucid main" >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C
sudo apt-get update
sudo apt-get install php5

dpkg -l | grep php5
ii libapache2-mod-php5 5.4.12-2~lucid+1 server-side, HTML-embedded scripting language (Apache 2 module)
ii php5 5.4.12-2~lucid+1 server-side, HTML-embedded scripting language (metapackage)
ii php5-cli 5.4.12-2~lucid+1 command-line interpreter for the php5 scripting language
ii php5-common 5.4.12-2~lucid+1 Common files for packages built from the php5 source
ii php5-curl 5.4.12-2~lucid+1 CURL module for php5
ii php5-gd 5.4.12-2~lucid+1 GD module for php5
ii php5-ldap 5.4.12-2~lucid+1 LDAP module for php5
ii php5-mcrypt 5.4.12-2~lucid+1 MCrypt module for php5
ii php5-mysql 5.4.12-2~lucid+1 MySQL module for php5
ii php5-sqlite 5.4.12-2~lucid+1 SQLite module for php5

HTH

Thorsten

Bernhard Posselt
Collaborator

Please create a pull request for the docs :)

Paul MAILLARDET

Hi !

I had a problem after updating OC to 5.0 this morning : a message "Upgrading filesystem cache..." on the "files" page, with freezed (& empty) progressbar, and the error "storage backend \OC\Files\Storage\Local not found" into log file.

Fixed by updating php to 5.4.12, thanks to @schnebeck 's comment !
Cheerz

Daniel Reuther

Looks like 5.3.2 expects the class name without a leading slash. As a quick test, I've just removed it by using substr($this->class,1) in mount.php. With that in place, I was able to upload files to the local storage just fine.

Georges

Hello
I just tested this method
but on ubuntu 10.04 server with ispconfig your web server falls
impossible to run a server with 5 owncloud ubuntu 10.04 with ispconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.