Skip to content
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

Fatal errors after auth #3

Closed
ggambini opened this issue Jun 3, 2013 · 3 comments
Closed

Fatal errors after auth #3

ggambini opened this issue Jun 3, 2013 · 3 comments

Comments

@ggambini
Copy link

ggambini commented Jun 3, 2013

Hi all,

I had used user_saml for OC4.5 with a simplesamlphp SP, but doesn't work with OC5.
I try our user_shibboleth with a Shibboleth SP, i have several fatal errors in OC5 after auth at first user's login. I have a blanck page after login on user_shibboleth/login.php and in owncloud log i can see :
{"app":"PHP","message":"opendir(/data/owncloud/ec687ba39b1d1ed51d605089ae5d2a2bd32a03ed050a8d1dcbf3991d9fefxxxx/cache/): failed to open dir: No such file or directory at /var/www/owncloud/lib/files/storage/local.php#40","level":2,"time":1370266793}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource, boolean given at /var/www/owncloud/lib/cache/file.php#88","level":2,"time":1370266793}

The folder /data/owncloud is writable for apache users and mkdir command in a shell work fine with this folder name.

mkdir /data/owncloud/ec687ba39b1d1ed51d605089ae5d2a2bd32a03ed050a8d1dcbf3991d9fefxxxx

My local conf :
Apache location in vhost spécific conf :


Order allow,deny
Allow from all

                    # Auth Shibb
                    AuthType shibboleth
                    ShibRequestSetting requireSession 0
                    ShibRequestSetting applicationId partage
                    Require shibboleth

                    ShibUseHeaders On
            </Location>
(note: my owncloud is behind a reverse proxy and i map requested attributes)

And user_shibboleth conf :

Sessions HandlerURL: /Shibboleth.sso/Login?target=https://mydomain/apps/user_shibboleth/login.php
SessionInitiator Location: /
Federation Name: Fédération Education-Recherche
Quota: 2GB
Enforce Domain Similarity uncheck
Link to LDAP Backend uncheck

Do you have some hints about failed directory creation ?
Regards, Gamb.

@AndreasErgenzinger
Copy link
Owner

Hello,

I'm afraid I am a little busy until Friday, so I'll be brief.

Those log messages indicating a problem opening the home directory are
the result of a bug in the owncloud core, on low log levels I get the
same log entries from the LDAP user backend. If I remember correctly, it
is caused by one method expecting a boolean value, but the user
interface enforcing the return of a string.

Anyway, this doesn't cause any problems, it just spams your log file.

I am more worried about you seeing a blank page.

I will continue this in my reply to your second request.

On 03.06.2013 16:44, ggambini wrote:

Hi all,

I had used user_saml for OC4.5 with a simplesamlphp SP, but doesn't
work with OC5.
I try our user_shibboleth with a Shibboleth SP, i have several fatal
errors in OC5 after auth at first user's login. I have a blanck page
after login on user_shibboleth/login.php and in owncloud log i can see :
|{"app":"PHP","message":"opendir(/data/owncloud/ec687ba39b1d1ed51d605089ae5d2a2bd32a03ed050a8d1dcbf3991d9fefxxxx/cache/):
failed to open dir: No such file or directory at
/var/www/owncloud/lib/files/storage/local.php#40","level":2,"time":1370266793}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource,
boolean given at
/var/www/owncloud/lib/cache/file.php#88","level":2,"time":1370266793}
|

The folder /data/owncloud is writable for apache users and mkdir
command in a shell work fine with this folder name.
|
mkdir
/data/owncloud/ec687ba39b1d1ed51d605089ae5d2a2bd32a03ed050a8d1dcbf3991d9fefxxxx
|

My local conf :
Apache location in vhost spécific conf :
|

Order allow,deny
Allow from all|

| # Auth Shibb
AuthType shibboleth
ShibRequestSetting requireSession 0
ShibRequestSetting applicationId partage
Require shibboleth

                 ShibUseHeaders On
         </Location>

|
|

(note: my owncloud is behind a reverse proxy and i map requested
attributes)

And user_shibboleth conf :
|
Sessions HandlerURL:
/Shibboleth.sso/Login?target=https://mydomain/apps/user_shibboleth/login.php
SessionInitiator Location: /
Federation Name: Fédération Education-Recherche
Quota: 2GB
Enforce Domain Similarity uncheck
Link to LDAP Backend uncheck
|

Do you have some hints about failed directory creation ?
Regards, Gamb.


Reply to this email directly or view it on GitHub
#3.

@ggambini
Copy link
Author

ggambini commented Jun 4, 2013

Hi,

Thank you for fast reply ;-) the user's creation failed, no home directory was created. In admin mode, i cant browse user's list, i have a sql fatal error :

{"app":"PHP","message":"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''30' OFFSET NULL' at line 1 at /var/www/owncloud/lib/db.php#965","level":4,"time":1370267567}

A normal user's creation work fine, i think there are a problem between your app and user's OC API. Perhaps, persistent-id is too long for a folder name ? I think not, but i dont check php limits.

Regards, Gamb.

@ggambini
Copy link
Author

Hi Andreas,

In my ownCloud instance, i set the data folder out of /var/www. My data folder is /data/owncloud/. When i use user_shibboleth, i have several error about the home directory of an user. If i browse my data folder, i didn't find shibb users home. But if i browse the default data folder ie /var/www/owncloud/data, i can see a shibboleth folder with shibb users home directories !!
I think the source of fatal errors are here :-)

Regards, Gamb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants