Repository navigation
Description
Expected behavior
Users can log into ownCloud
Actual behavior
User cannot log in and data directory is never created
Steps to reproduce
- In this instance, ownCloud was upgraded from 5.0.10 to 5.0.11
- LDAP was configured and working in 5.0.10. Encryption was enabled in
5.0.10. LDAP Users were able to log in - After the upgrade, LDAP users who had been logged in on 5.0.10 can
log in - Local users can log in
- LDAP users who had never logged in cannot log in. The browser spins
constantly forever. Never spits out any error. The Data directory is
never created for these users. - Encryption was disabled in 5.0.11 and users still cannot log in.
- After closing the browser, the logs continue to fill up with the following
repeating continuously until apache was restarted
{"app":"PHP","message":"filemtime(): stat failed for /mnt/serlab/D5D3BDC6-B988-4DDE-B9F4-7F17B0BA8BA6/cache/ at /var/www/owncloud/lib/files/storage/local.php#92","level":2,"time":"2013-08-28T13:27:30+00:00"}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource, boolean given at /var/www/owncloud/lib/cache/file.php#97","level":2,"time":"2013-08-28T13:27:30+00:00"}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource, boolean given at /var/www/owncloud/lib/cache/file.php#97","level":2,"time":"2013-08-28T13:27:30+00:00"}
{"app":"PHP","message":"filemtime(): stat failed for /mnt/serlab/61B915A9-6EEB-47A0-ACB2-0ADD98EFAF15/cache/ at /var/www/owncloud/lib/files/storage/local.php#92","level":2,"time":"2013-08-28T13:27:30+00:00"}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource, boolean given at /var/www/owncloud/lib/cache/file.php#97","level":2,"time":"2013-08-28T13:27:30+00:00"}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource, boolean given at /var/www/owncloud/lib/cache/file.php#97","level":2,"time":"2013-08-28T13:27:30+00:00"}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource, boolean given at /var/www/owncloud/lib/cache/file.php#97","level":2,"time":"2013-08-28T13:27:30+00:00"}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource, boolean given at /var/www/owncloud/lib/cache/file.php#97","level":2,"time":"2013-08-28T13:27:30+00:00"}
{"app":"PHP","message":"filemtime(): stat failed for /mnt/serlab/D5D3BDC6-B988-4DDE-B9F4-7F17B0BA8BA6/cache/ at /var/www/owncloud/lib/files/storage/local.php#92","level":2,"time":"2013-08-28T13:27:30+00:00"}
{"app":"PHP","message":"filemtime(): stat failed for /mnt/serlab/D5D3BDC6-B988-4DDE-B9F4-7F17B0BA8BA6/cache/ at /var/www/owncloud/lib/files/storage/local.php#92","level":2,"time":"2013-08-28T13:27:30+00:00"}
Server configuration
{"installed":"true","version":"5.0.15","versionstring":"5.0.11RC1"}
Ubuntu
apache
Client configuration
browser: IE9, IE 10, Chrome
EDIT Blizzz: Changed the title from "LDAP Users…" to "New Users…"
Activity
karlitschek commentedon Aug 28, 2013
@blizzz Can you have a look please?
blizzz commentedon Aug 29, 2013
Thanks for testing. Could you provide the full owncloud.log? Or maybe a clean one for just one login attempt?
blizzz commentedon Aug 29, 2013
Hm, I see this behaviour with on a fresh install with local users (without LDAP enabled).
blizzz commentedon Aug 29, 2013
It works with the admin user, but not with a new local user. My owncloud.log is below. Could be related to filecache? cc @icewind1991
P.S.: the log repeats in an infinite loop
blizzz commentedon Aug 29, 2013
Seems to happen when there is no data folder for the user in place. With regard to LDAP it smells like it is triggered before initMountPoints is done.
ser72 commentedon Aug 29, 2013
Yes, that is my experience. If there is a data folder, users can log in. If there is no data folder, users can not log in and the data folder is not created.
blizzz commentedon Aug 29, 2013
Do you have the app "Full Text Search" enabled? It triggers setupFS to run before login and thus won't do afterwards. But there is where the folder is created. The app however is not to blame, might be a pitfall for any.
Make sure user FS is ready before mounting and doing all the other fu…
kiranos commentedon Aug 30, 2013
maybe add unittests for issues like this?
blizzz commentedon Aug 30, 2013
i am not sure it will work so easily, it's cross-unit, but it would be ideal to have one, sure.
ser72 commentedon Aug 30, 2013
I did not have the app "Full Text Search" enabled.
blizzz commentedon Aug 30, 2013
Which apps do you have enabled?
blizzz commentedon Aug 30, 2013
And could you try the PR #4613 nevertheless?
ser72 commentedon Aug 30, 2013
Apps enabled:
Encryption <-- Tried with and without this app enabled
External Storage Support
First Run Wizard
Image Viewer
LDAP Home Connector <-- Tried with and without this app enabled
LDAP user and group Backend
Log Audit Info
Shared Files
Text Editor
User Account Migration
Versoins
ownCloud Instance Migration
ser72 commentedon Aug 30, 2013
Tested #4653 and it is working with that fix.
Check variable type before using readdir to avoid surprises and fix #…
blizzz commentedon Sep 2, 2013
@ser72 could you please try this too with #4701 (and without #4653)? Thank You!
ser72 commentedon Sep 3, 2013
@blizzz : Tested with #4701 and it is working.
blizzz commentedon Sep 4, 2013
Thank you @ser72!
Merge pull request #4701 from owncloud/fix_4667
blizzz commentedon Sep 4, 2013
fixed with #4701