Bug 22777 - Google OpenId Connect Internal server error
Summary: Google OpenId Connect Internal server error
Status: RESOLVED DUPLICATE of bug 22717
Alias: None
Product: Koha
Classification: Unclassified
Component: Authentication (show other bugs)
Version: 18.11
Hardware: All All
: P1 - high critical
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-25 19:48 UTC by Claudio Costales
Modified: 2019-04-27 18:29 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
OpenID connect internal server error (58.24 KB, image/png)
2019-04-25 19:49 UTC, Claudio Costales
Details
OpenID Internal Server Error (81.24 KB, application/pdf)
2019-04-26 12:41 UTC, Claudio Costales
Details
EDS (17.84 KB, application/pdf)
2019-04-27 01:55 UTC, Claudio Costales
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Costales 2019-04-25 19:48:24 UTC
Internal Server Error when trying to login with Google OpenID Connection. See file attached please.
Comment 1 Claudio Costales 2019-04-25 19:49:58 UTC
Created attachment 88815 [details]
OpenID connect internal server error

Google OpenID Connect sysprefs configuration.
Comment 2 Claudio Costales 2019-04-25 19:53:20 UTC
No error with existing patrons. This occurs when patrons are created automatically, i.e., when GoogleOpenIDConnectAutoRegister is set to "Allow".
Comment 3 Claudio Costales 2019-04-25 19:56:09 UTC
Thers's no Koha logs' useful information
Comment 4 Claudio Costales 2019-04-26 12:41:05 UTC
Created attachment 88919 [details]
OpenID Internal Server Error
Comment 5 Jonathan Druart 2019-04-27 00:16:16 UTC
Hello Claudio,
If there is a 500 error you might have an error in the log.
It would help a lot to have it.
Comment 6 Claudio Costales 2019-04-27 00:27:46 UTC
Jonathan, hope this helps:


/var/log/koha/INSTANCE/plack-error,log
========================================================

Can't locate Koha/Plugin/EDS in @INC (@INC contains: /usr/share/koha/lib /usr/share/koha/installer /usr/share/koha/lib/installer /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86$
Attempt to reload Koha/Plugin/EDS.pm aborted.
Compilation failed in require at /usr/share/perl/5.20/Module/Load.pm line 77.
Can't locate Koha/Plugin/EDS in @INC (@INC contains: /usr/share/koha/lib /usr/share/koha/installer /usr/share/koha/lib/installer /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86$
Comment 7 Jonathan Druart 2019-04-27 00:45:26 UTC
Do you use the EDS plugin?
Comment 8 Claudio Costales 2019-04-27 00:47:27 UTC
No Jonathan, I do not use EDS plugin.
Comment 9 Jonathan Druart 2019-04-27 00:53:46 UTC
Could you test the patch I have added on bug 22717?
Comment 10 Claudio Costales 2019-04-27 01:02:17 UTC
It fails, same error.
Comment 11 Claudio Costales 2019-04-27 01:12:45 UTC
Plack-error.log in other customer:

Use of uninitialized value in string ne at /usr/share/koha/opac/cgi-bin/opac/svc/auth/googleopenidconnect line 102.
Comment 12 Jonathan Druart 2019-04-27 01:31:12 UTC
The error you got before was about the EDS plugin, you may have installed it at some point.
Comment 13 Claudio Costales 2019-04-27 01:55:59 UTC
Created attachment 88975 [details]
EDS

Jonathan, look at the file attached. There's an EDS directory in koha/plugins since 2016! But Koha backoffice says that there's no EDS plugin installed.

I do not know what to do. How can I uninstall EDS? Simply delete it? Probably it was for a test, but do not need it now...
Comment 14 Claudio Costales 2019-04-27 01:58:04 UTC
In the second customer plugin directoy is empty.
Comment 15 Claudio Costales 2019-04-27 13:17:05 UTC
Jonathan, please discard comments 6, 11 and 13. From my point of view the problem is not linked to plugin system. 
I have two istallation of Koha in two differents servers. One has plugin system enabled (which echoes EDS issue) and one has plugin system disabled. So I disabled the plugin system in the first and could reproduce the same error in both installations:


PLACK-ERROR.LOG

Can't use string ("firstname") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/Koha/Object.pm line 69.
Comment 16 Jonathan Druart 2019-04-27 18:29:31 UTC
So it's a duplicate of bug 22717.

*** This bug has been marked as a duplicate of bug 22717 ***