-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
"File with id not found" log message when on available ext storage #26342
Comments
I have the same problem, and I can't open the apps page. |
Hmm ok, so it doesn't break functionality but still causes some log messages. |
Steps I tried:
After the last login, the share disappeared from the web UI. This message usually appears when a share is pointing at a file/folder that is in trash or deleted completely but the share info remain. Such stray info gets cleared when running cron.php. @tflidd can you give more details about how you created the external storage and how the user is accessing it (download?) |
All the sharing setting were set up a few versions ago (dates back at least to OC 7.0).
I see the error when I login with user2. The error started to show up with the upgrade to OC 9.0.5 (from 8.2.7). Now I logged in as user1 and get this error:
The error message is only about the fileid 223808 (database entry is in my first post). For the SFTP storage, most uploads were done directly via SFTP. If I now navigate as user1 through the external storage, I get this error:
When I want to download a file I get this error (user1):
I got 2 more with 54 and 58 is not a valid Directory resource. But finally the download starts. If I navigate through the folders as user2, I get the File-id 223808 error on each folder I open. When I download a file, I get a similar messages:
|
I run the occ files:scan on user1, it detected all files but it doesn't change anything. |
I tried with your steps and neither on 8.2.8 not 9.0.5 do I see any of the mentioned errors. I suspect that there is something else broken in the DB structure on your env. So far what you posted looks good: the storage exists and the share points there, so it should work. |
ah, you using PHP 7 ? I tested on PHP 5.6 |
the storages-table (I don't use a prefix) has several entries:
sftp is on a different host and it is the user's home directory. A user on owncloud mounts this external storage and shares it to other users. I'm using the php7.0 packages (version 7.0.12) of dotdeb under debian 8. It's with apache as php module, I did activate the correct directory setting:
|
Could not reproduce with PHP7 either. I reformatted the original stack trace and found this: looks like it's from the mail app, it seems to call |
I disabled the mail app but that doesn't change anything. I looked up the wrong storage id in the db-table. Situation is slightly different: This sql-query is empty (I don't use a table-prefix, the table is not empty): Questions:
Perhaps I now need to check manually if there are some old storages that are not used any more but which are still indexed on the filecache-table. |
Just tried on php 5.6.27, it's the same. |
I did some more digging. I probably added this share when experiencing this issue: #18720 I installed a fresh OC 8.0.6 (Debian 8, php5, mysql, apache, all default, no caching, no encryption) and then upgraded to OC 9.0.5 (over 8.0.15, 8.1.10, 8.2.8). In 8.0.6, I only activated files_external and added the SFTP-storage on the personal page. I accessed the folder, then I deleted the external storage. This created two storages:
In the filecache-table, I have entries for the second storage. After removing this external storage, the entries persisted over all upgrades to OC 9.0.5. Unfortunately, I could not reproduce the error like in my productive system. In this setup, I haven't enabled all apps I normally use and I do not have the same history (original install dates back to OC 4.5 or 5.0.x). Shouldn't there be a clean-up routine for old external_storages when you delete them? |
There is one when you delete them manually, but not if they use the But there is another bug that when you change the storage's config, it would simply create new storage ids and leave the old ones... |
Finally, I didn't manage to find a way to reproduce this and I corrected the error manually. The file-ids probably were kept because it was in the trash bin although if you opened the users trash-bin they were not inside. What I did: All these tables regarding storages are not consistent, e.g. I have home storages in the |
Yes... we badly need to introduce foreign keys #13143 and cascading delete to get rid of so many inconsistencies and orphaned entries |
Closing as this is old and I couldn't reproduce this. If more people report this issue in the future for 10.0.4 we can invest more time to dig into the code... |
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. |
Steps to reproduce
Expected behaviour
Clean update
Actual behaviour
My logfile is flooded with NotFoundException messages. I can really find out if there is a malfunction related to that.
ownCloud log (data/owncloud.log)
I did some investigation with this file id, I have this entry in the filecache table:
Full texts fileid storage path path_hash parent name mimetype mimepart size mtime encrypted etag unencrypted_size storage_mtime permissions checksum
223808 90 d41d8cd98f00b204e9800998ecf8427e -1 2 1 5887492 1202123016 0 55e482656f490 0 1202123016 23 NULL
The storage id 90 is a external SFTP storage:
sftp::[email protected]// 80 1 1469864325
note that there are really two slashes in the end. There is a different storage id for this connection. Perhaps a bit more information about this storage:
I use a dedicated user who accesses this external sftp storage. This folder is then shared within owncloud to other users. The error occurs under a user that uses this share, even without accessing it. But you can open the share and see all files.
Server configuration
Operating system: Debian 8/apache/mod_php7.0(dotdeb)
Database: mariadb
ownCloud version: 9.0.5
Updated from an older ownCloud or fresh install: update from 8.2.7
Where did you install ownCloud from: manual upgrade
Signing status (ownCloud 9.0 and above): no problems
List of activated apps:
Are you using external storage, if yes which one: sftp
Are you using encryption: no
Are you using an external user-backend, if yes which one: No
The text was updated successfully, but these errors were encountered: