Target folder "dir" does not exist any more


#1

Hello together,

I upgraded my owncloud to the newest version and now it's not possible to upload files. The site always say "Target folder "dir" does not exist any more". The folder exists, it is possible to download files and to create folders.

Steps to reproduce

  1. Select a file to upload
  2. Error "Target folder "dir" does not exist any more" is displayed

Expected behaviour

File should be uploaded

Actual behaviour

File is not uploaded

Server configuration

Operating system: openSUSE 13.2

Web server: Apache

Database: SQLite

PHP version: 5.6.1

ownCloud version: 10.0.7

Updated from an older ownCloud or fresh install: Updated

Where did you install ownCloud from: owncloud-10.0.7.tar.bz2

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 into https://gist.github.com/ and puth the link here.

The content of config/config.php:

List of activated apps:

  • activity: 2.3.6
  • comments: 0.3.0
  • configreport: 0.1.1
  • dav: 0.3.2
  • federatedfilesharing: 0.3.1
  • federation: 0.1.0
  • files: 1.5.1
  • files_external: 0.7.1
  • files_pdfviewer: 0.8.2
  • files_sharing: 0.10.1
  • files_texteditor: 2.2.1
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • files_videoplayer: 0.9.8
  • firstrunwizard: 1.1
  • gallery: 16.0.2
  • market: 0.2.3
  • notifications: 0.3.2
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • templateeditor: 0.2
  • updatenotification: 0.2.1
  • user_ldap: 0.10.0

Are you using external storage, if yes which one:

Are you using encryption: no

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

Client configuration

Browser: Google Chrome

Operating system: Windows 10

Logs

Web server error log

empty

ownCloud log (data/owncloud.log)

{"reqId":"q5OFxrDhAjmUn1WbWgmw","level":0,"time":"2018-03-12T09:46:32+00:00","remoteAddr":"10.100.0.27","user":"--","app":"cron","method":"GET","url":"\/owncloud\/cron.php","message":"Started background job of class : OC\Authentication\Token\DefaultTokenCleanupJob with arguments : "}
{"reqId":"q5OFxrDhAjmUn1WbWgmw","level":1,"time":"2018-03-12T09:46:32+00:00","remoteAddr":"10.100.0.27","user":"--","app":"cron","method":"GET","url":"\/owncloud\/cron.php","message":"Invalidating tokens older than 2018-03-11T09:46:32+00:00"}
{"reqId":"q5OFxrDhAjmUn1WbWgmw","level":0,"time":"2018-03-12T09:46:32+00:00","remoteAddr":"10.100.0.27","user":"--","app":"cron","method":"GET","url":"\/owncloud\/cron.php","message":"Finished background job, the job took : 0 seconds, this job is an instance of class : OC\Authentication\Token\DefaultTokenCleanupJob with arguments : "}

Browser log

jQuery.fn.tipsy @ js.js?v=bde03892739099916cba8843e854fd43:2287
/owncloud/remote.php/webdav/TEMP/Ataman.zip Failed to load resource: the server responded with a status of 404 (Not Found)
`


#2

Hi,

can you check the permissions of your data and temp folder?

Also, do you get any messages when you are trying to upload data with log level set to debug?


#3

Data folder permissions are correct. Owner is wwwrun, that is the user of the apache.
Where is the default temp directory?
Also with log level debug there are no messages in the owncloud.log


#4

I rolled back to 9.0. Everything fine. Upgraded to 9.1.8. Everything works. Upgraded from 9.1.8 to 10.0.7 -> Same Error....
So it's not a permission problem.


#5

Okay, so to reproduce it I just install 9.0 from packages or tar ball,

apply your config and update to 10.0.7?


#6

That is what I did. But with my database backup from version 9.0


#7

Can you have a look in your database and check what is configured in the table oc_storages?

There are the data dirs of the users who accessed owncloud. Maybe there is an error, and the dir in this table doesn't exist anymore.


#8

That's the content of this table:

1|home::group1|1|
2|local::/data/|1|
3|home::admin|1|
8|home::user1|1|
.......
.....
.....


#9

Does the folder /data exist?

This is an absolute path not an relative path.

So it's not owncloud/data
but root/data


#10

Yes, this folder exists and is the data folder.
It is possible to create directorys in owncloud and they are created in the file system. Only files can not be uploaded.