Bug 6070 - identity-trunk is random
Summary: identity-trunk is random
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: identity.mageia.org (show other bugs)
Version: trunk
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Sysadmin Team
QA Contact:
URL: http://identity-trunk.mageia.org
Whiteboard:
Keywords:
Depends on:
Blocks: 832 3674
  Show dependency treegraph
 
Reported: 2012-05-24 19:17 CEST by Romain d'Alverny
Modified: 2012-06-15 11:39 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Romain d'Alverny 2012-05-24 19:17:35 CEST
Description of problem:

When connecting to identity-trunk with Chrome or Firefox, it answers randomly a 404 or 500 error.

However, it works for other people. And from a workstation where it fails with a browser, it works with curl.

This prevents making sure identity/trunk code is stable enough to be merged back to identity/live, and to improve the app in general.
Comment 1 Rémi Verschelde 2012-05-24 19:22:34 CEST
On my ex-Cauldron-now-Mageia-2 workstation, I get the 404 and 500 errors issue with Chromium and Konqueror, but it works okay with Firefox.

CC: (none) => remi

Comment 2 Rémi Verschelde 2012-06-08 09:14:09 CEST
I did a clean install of Mageia 2, now I can't reach identity-trunk with Firefox, Chromium, Konqueror nor Opera.
I get a 500 error at each attempt.
Comment 3 Romain d'Alverny 2012-06-08 09:21:24 CEST
Are there any debug or error message in a log on the server that could bring some light to this?

Assignee: mageia-webteam => bgmilne

Rémi Verschelde 2012-06-08 09:49:04 CEST

Blocks: (none) => 832

Romain d'Alverny 2012-06-13 00:27:17 CEST

Assignee: bgmilne => sysadmin-bugs

Romain d'Alverny 2012-06-13 00:54:39 CEST

Blocks: (none) => 3674

Comment 4 Buchan Milne 2012-06-13 17:23:21 CEST
Can you provide additional detail?

Do you not even get the login page?

Have you tried clearing cookies for identity-trunk.mageia.org (which could point to a bug regarding some cookie handling)?

What languages is your browser configured for?

From my laptop, running Mageia 1 x86_64, connected to a network with only IPv4, I have no problem reaching the login page, and logging in, from Chromium (and previously had no trouble with Firefox).

We could probably provide (authenticated?) access to the error_log, as long as no-one adds sensitive information to the logging, or enables debug mode in catalyst.

Here are some entries from error_log from a session with some errors:

[Sun Jun 10 09:50:59 2012] [error] [client 78.193.40.184] FastCGI: server "/var/www/i
dentity-trunk/script/catdap_fastcgi.pl" stderr: "
[Sun Jun 10 09:50:59 2012] [error] [client 78.193.40.184] FastCGI: server "/var/www/i
dentity-trunk/script/catdap_fastcgi.pl" stderr: [error] Couldn't render template "ind
ex.tt: undef error - Unknown encoding 'CHARSET' at /usr/lib/perl5/vendor_perl/5.12.3/
Locale/Maketext/Lexicon/Gettext.pm line 221
[Sun Jun 10 09:50:59 2012] [error] [client 78.193.40.184] FastCGI: server "/var/www/identity-trunk/script/catdap_fastcgi.pl" stderr: "
[Sun Jun 10 09:50:59 2012] [error] [client 78.193.40.184] FastCGI: incomplete headers (0 bytes) received from server "/var/www/identity-trunk/script/catdap_fastcgi.pl"


My successful login had these log entries:
[Wed Jun 13 17:11:07 2012] [error] [client 196.25.124.16] FastCGI: server "/var/www/identity-trunk/script/catdap_fastcgi.pl" stderr: [debug] No session, logging user in, referer: https://identity-trunk.mageia.org/
[Wed Jun 13 17:11:19 2012] [error] [client 196.25.124.16] FastCGI: server "/var/www/identity-trunk/script/catdap_fastcgi.pl" stderr: [debug] No session, logging user in, referer: https://identity-trunk.mageia.org/user
[Wed Jun 13 17:11:19 2012] [error] [client 196.25.124.16] FastCGI: server "/var/www/identity-trunk/script/catdap_fastcgi.pl" stderr: [debug] Logging user in to LDAP, referer: https://identity-trunk.mageia.org/user
[Wed Jun 13 17:11:19 2012] [error] [client 196.25.124.16] FastCGI: server "/var/www/identity-trunk/script/catdap_fastcgi.pl" stderr: [debug] Searching for user buchan with filter (&(objectClass=inetOrgPerson)(uid=buchan)), referer: https://identity-trunk.mageia.org/user

Maybe there are some problems in the l10n support? I will try and test locally (run catdap on my laptop) with some other languages set in a browser.

Does it work for you if you change your browser configuration to only advertise English US ?

CC: (none) => bgmilne

Comment 5 Romain d'Alverny 2012-06-13 17:38:43 CEST
(In reply to comment #4)
> Can you provide additional detail?
> 
> Do you not even get the login page?

No. It's randomly a 404 or a 500 HTTP error.

> Have you tried clearing cookies for identity-trunk.mageia.org

Yes. No change.

> What languages is your browser configured for?

Accept-Language:fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4 fails.

But, and that may be it, if using only en or en-US, it works. So it's like identity-trunk.m.o fails on non-English locales, whereas identity.m.o works. Strange, is there such a different config between the two vhosts?
Comment 6 Rémi Verschelde 2012-06-13 17:47:49 CEST
I switched my preferred language to German on Firefox (Windows 7) and managed to access the login screen. Same with en and en_US.

Maybe this is only related to the French instance of identity-trunk.mageia.org? Could it come from the translation .po files?

Here are the links to the German and French translations of identity:
http://svnweb.mageia.org/soft/identity/CatDap/trunk/lib/CatDap/I18N/de.po?view=markup
http://svnweb.mageia.org/soft/identity/CatDap/trunk/lib/CatDap/I18N/fr.po?view=markup
Comment 7 Buchan Milne 2012-06-15 10:58:40 CEST
fr.po contains:

"Content-Type: text/plain; charset=CHARSET\n"

This problem was experienced before, see the history of fr.po, e.g.:

http://svnweb.mageia.org/soft/identity/CatDap/trunk/lib/CatDap/I18N/fr.po?r1=1051&r2=1114


There seems to be a problem with this translation when imported from transifex.

I changed the charset back to UTF-8 in r4952.

Please let me know if it works, I have a telecon staring in 1 minute ...
Comment 8 Romain d'Alverny 2012-06-15 11:39:47 CEST
Thanks, it's working now. I will notify i18n about that.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.