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
A Shared folder is not displaying all of the data to users - lots of errors in owncloud log #17640
Comments
Do you mean that neither the owner nor the recipients can see the missing files ? Do the missing files have anything in particular ? Were they more recent ? Or alphabetically at the end of the list while the visible files were at the beginning ? |
@PVince81 Bad directories:
Good Directories:
|
@gig13 Does it mean the files also disappeared from the server ? So they did not only disappear from the web UI or the clients. Are the missing folders in the trashbin (under "files_trashbin" of the owner on the server) Does this happen for many different shares or just that one ? Does it happen for newly created shares ? So far the only thing that comes to mind is that a concurrent operation happened (possibly renaming a parent folder) on an already shared folder and maybe that caused disappearance of the files. |
@PVince81 Any idea what those errors are in the log ("Array to string conversion at ..." and "Illegal offset type in isset or empty at ..."? |
@PVince81 Other symptoms:
Going to obtain additional logs, the directory disappeared between last Friday and this Monday (7/10-7/13) |
@PVince81 |
@icewind1991 @schiesbn please help. Thanks.
|
@icewind1991 @schiesbn @bboule |
@cmonteroluque Can we get someone to help out on this one? The temperature is rising and we need to help the user understand the situation! Any help would be appreciated. |
@cmonteroluque |
@bboule |
Looking at the two listings: #17640 (comment): Now for the other symptoms:
It would be useful to find out what exactly was done to cause the folders to disappear. Did it happen suddenly ? Some things that could be tried to gather more clues:
|
@gig13 hinted to me that the share might be an orphaned share, which might or might not explain the strange behavior above. Let's check if that's the case:
Another suspicious thing is the "Array" entry:
I will check the logs for further clues. |
I found this in the logs:
Notice that the timestamp is from July 12th midnight, shortly before the reupload happens on July 13th as noticed in the listing: #17640 (comment). The log entries mention a user called "Array" which explains the bogus storage entries. Now the question is what on LDAP could cause that ? @butonic @MorrisJobke @blizzz |
Could this be a case of unavailable LDAP server ? |
More happens a bit later:
I replaced the group names and user names with placeholders here. Basically it looks like several different requests from the same IP unshared the folder "trusef" from everybody, groups and users. Not sure why. Open questions:
|
This is the place in the code where the message is logged: https://github.com/owncloud/core/blob/v8.0.5/lib/private/files/filesystem.php#L346 |
I think the reboot theory is wrong. @gig13 did they mention the exact date when it started happening, if not July 13th ? |
We don't have stack traces, but here we can see how the warnings are thrown in different places in the code, which can help trace how the bogus array was passed around:
|
Looking at the config, this smells very very much like AD. |
I looked again at the suspicious "Unshare" actions. Since they all have a different request ID, I guess maybe it was done on purpose by the admin through the share dialog, which AFAIK sends a separate request for each action. Maybe the shared folder was already broken and the admin decided to try to unshare and reshare it. I didn't find any entries for the "share again" case, it might have happened later, so not sure. Still trying to find any connection with the LDAP issue. |
Something to investigate: why would a sync client reupload files (from selective sync) into the empty shared folder ? Normally if a folder is suddenly empty, the desktop client would rather delete the local files to match the server. |
The LDAP issues are likely (not 100% sure - there are some similarities including an identical origin, and the original report was against OC 7) a duplicate of #13533 which will be fixed with 8.0.6. |
Had a quick chat with @ogoffart and it seems that either:
I checked the server logs and did not see entries that would delete folders in the "trusef" shared folder. Also I did not find any entries that show a reupload, but maybe that happened in another timeframe not visible in the logs. I also checked if the "trusef" folder was reshared again but did not find any log entries. So far the disappearance of files in the "trusef" folder are still unexplained. |
This is also fixed in 7.0.6 |
@MorrisJobke No results for: select * from oc_share where file_target like '%trusef%';" No user named Array. TO DO TOMORROW: filescan in maint mode |
@gig13 thanks for the info. No results means the share is gone. This fits with what I saw in the log where the admin user "root" manually deleted the shares. |
Depends… If APCu is used it needs to be enabled for cli explicitely. IIRC in OC 7 that was not enforced and web UI could run with it and CLI without.
So we would need to try to connect to LDAP and insert a delay (which could add up to a 60s timeout).
Always ownCloud's user id. |
@PVince81 |
Then this instance has actually a problem to connect to LDAP ... |
@gig13 @MorrisJobke Do we think the issue here is LDAP related? Just want to understand the path forward on this issue? |
@bboule |
@MorrisJobke @blizzz is there any additional information we can provide to help identify this issue and possible fix? |
@bboule |
Not sure, it seems to be a mix of different issues. I'd say first would be to aim at making occ files:scan work again so that the missing files can be displayed again. Then if they happen to disappear again randomly, try and find out why and whether it's related to the random LDAP failings. |
@blizzz Can we get more details why the connection is lost? Is there anything logged or is this all we can get? |
Not from our side, unfortunately.
@gig13 some output we can look at? How does their LDAP/AD landscape look like? Maybe Proxy? Do we have log output from the scan command attempts? Meanwhile, was there an update attempted. As mentioned (#17640 (comment)), at least part of the LDAP issues were fixed with 8.0.6 |
@blizzz
LDAP info is in the config report on s3. |
But not the information is asked about. Unless I oversaw it, then point me please. |
@blizzz I even provided an entire database dump on s3 -- so you can review the tables. What else do you need? |
How their LDAP setup is. Are they having just one server, everything is talking to, or are there LDAP slaves and their OC servers is talking to one, or are there many LDAP servers and OC connects with one of them via proxy, or somehow else?
So they are now on 8.0.6 or 8.0.8? Do we have log output from the scan command attempts (ideally with logging set to DEBUG level)? In none of the provided log files i can find anything about |
They are on 8.0.6 The ldap server is on the same subnet on the same switch as the owncloud also i tried running it again and php spins at 100% for a really long time
|
I can't help with "LDAP temporarily unavailable" issues and @blizzz is sick this week. Ideal would be to have the "files:scan" for the "trusef" user complete and then see whether the file disappearance case occurs again. It is likely that the problem will not appear again due to recent fixes related to LDAP not being available while syncing. In the past, an unavailable LDAP server could make the user's home folder appear empty to the outside and make the sync client believe that the files were gone. It is likely that when some users saw the sync client's dialog "all files are gone, do you want to keep or delete", they clicked "keep", which caused their sync client to reupload the files they had locally, which explains why the folders all have a more recent timestamp. The reason why not all the files are there is likely to be because that user used selective sync, so didn't have all the files locally. From what I understood from @blizzz and @MorrisJobke is that now in the newer OC 8 versions this situation cannot happen any more, because now an unavailable LDAP server will throw an error to the outside (503 service unavailable) instead of exposing an empty folder. Now to confirm this we need to find a way to make the "files:scan" of the user "trusef" finish properly, and then let the system run as normal. After the scan all files should be visible again. |
This is what we think. And it's not that unlikely. @gig13 Is there any chance to get this instance upgrade to at least 8.0.6 and run the files:scan again? |
@MorrisJobke |
Oh. Sorry. Just read it above. @PVince81 Then it seems that it is still another issue with the filesystem setup. cc @icewind1991 |
So I guess the missing folders are still missing now ? Now thinking of it, the output @gig13 gave here #17640 (comment) is directly from the data folder. So if the missing folders aren't there, a rescan will not help. The folders will have to be restored manually by moving/copying them from "new_trusef". |
This is an old log, but maybe it's still present. And it looks somehow fishy.
|
Regarding the "Array to string conversion", see #17640 (comment), still not clear why an Array was returned instead of the user object. Could be due to the user not existing or another bug. There is a chance that it might be fixed already, see #17640 (comment) |
Okay. Just had a screen sharing session. As it turned out this was a leftover from old filesystem setups. The folders were actually present in the data dir (and showed up as non shared in the "Shared" folder). This was quite confusing in the first time. What now is done:
Case closed. :) |
Steps to reproduce
WIP
Expected behaviour
Sharing a folder with other users should allow all users to see the entire folder. The owner of the data should also be able to view all of the content in the folder via the desktop client, web interface or via mobile apps
Actual behaviour
Most of the content from a shared folder appears to have disappeared when viewing from the web interface, desktop client or via the mobile apps. When checking the ownCloud server, the data still resides in the users directory.
Server configuration
Operating system: Ubuntu -- see config report
https://s3.owncloud.com/owncloud/index.php/apps/files?dir=%2FShared%2Fowncloud%2Fsupport%2Fgithub-issues%2Fcore%2F17640
Web server: Apache 2.2
Database: PostgreSQL
PHP version: 5.4.42
ownCloud version: 8.0.5
Updated from an older ownCloud or fresh install: Updated
List of activated apps: See report config on s3
The content of config/config.php:
see report config on s3
Are you using external storage, if yes which one: NO
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: OpenLDAP
LDAP configuration
See s3 report config
https://s3.owncloud.com/owncloud/index.php/apps/files?dir=%2FShared%2Fowncloud%2Fsupport%2Fgithub-issues%2Fcore%2F17640
Client configuration
Browser: Internet Explorer
Operating system: Windows
Logs
ownCloud log (data/owncloud.log)
See s3 -- https://s3.owncloud.com/owncloud/index.php/apps/files?dir=%2FShared%2Fowncloud%2Fsupport%2Fgithub-issues%2Fcore%2F17640
Lots of these errors:
The text was updated successfully, but these errors were encountered: