- Posts: 9
Strange behavior regarding user session
- vanoir
- Topic Author
- Offline
- New Member
-
Less
More
12 years 11 months ago #1
by vanoir
Strange behavior regarding user session was created by vanoir
Hello, I work at
www.telelab.ufsc.br
, we run Joomdle for almost 10 months now without major problems. Now has a month that we began to notice this error and it became more frequent.
the bug is characterized by a blank page with a URL like this when the user is trying to access the website (Joomla):
" dev.moodle.telelab.ufsc.br/auth/joomdle/..._user=0&wantsurl=%2F "
When it happen it lasts for about 2 minutes. Other aspect of this behavior is that other computers on the same network present the same error during the same time and shows the exactly same URL even if this second computer had never been used by this user.
Analyzing joomla/plugins/user/joomdlehooks/joomdlehooks.php (the file that appears to be the generator of the url @line 140) I verify that the token is from "JFactory::getSession();" but I can not figure out what is the problem or why the sessions are getting messed up
any help? thanks
notes:
Moodle and Joomla are in different servers.
"username" and "token" in the URL are the same on different computers.
I verified that it happend in two different networks(different places).
Joomdle conf:
redirectless SSO: off
conection method: file_get_contents
server:
PHP is: PHP Version 5.3.2-1ubuntu4.19
Apache is: Apache/2.2.14 (Ubuntu)
Joomla is: Joomla! 2.5.7 Stable
Joomdle is: Joomdle 0.82
Moodle is: 2.2.3+ (Build: 20120624)
Community Builder is: 1.8.1
the bug is characterized by a blank page with a URL like this when the user is trying to access the website (Joomla):
" dev.moodle.telelab.ufsc.br/auth/joomdle/..._user=0&wantsurl=%2F "
When it happen it lasts for about 2 minutes. Other aspect of this behavior is that other computers on the same network present the same error during the same time and shows the exactly same URL even if this second computer had never been used by this user.
Analyzing joomla/plugins/user/joomdlehooks/joomdlehooks.php (the file that appears to be the generator of the url @line 140) I verify that the token is from "JFactory::getSession();" but I can not figure out what is the problem or why the sessions are getting messed up
any help? thanks
notes:
Moodle and Joomla are in different servers.
"username" and "token" in the URL are the same on different computers.
I verified that it happend in two different networks(different places).
Joomdle conf:
redirectless SSO: off
conection method: file_get_contents
server:
PHP is: PHP Version 5.3.2-1ubuntu4.19
Apache is: Apache/2.2.14 (Ubuntu)
Joomla is: Joomla! 2.5.7 Stable
Joomdle is: Joomdle 0.82
Moodle is: 2.2.3+ (Build: 20120624)
Community Builder is: 1.8.1
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
12 years 11 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Strange behavior regarding user session
Really strange behaviour indeed. I have never seen reports of similar problems.
Usually blank pages are caused by server errors, so you could check logs to see if you find something.
> Other aspect of this behavior is that other computers on the same network present the same error during the same time and shows the exactly same URL even if this second computer had never been used by this user.
Have you tried connecting from a different network at the same time?
Maybe it's some problem in your network, proxy....
Usually blank pages are caused by server errors, so you could check logs to see if you find something.
> Other aspect of this behavior is that other computers on the same network present the same error during the same time and shows the exactly same URL even if this second computer had never been used by this user.
Have you tried connecting from a different network at the same time?
Maybe it's some problem in your network, proxy....
Please Log in or Create an account to join the conversation.
- vanoir
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 9
12 years 11 months ago #3
by vanoir
Replied by vanoir on topic Strange behavior regarding user session
Thanks for your feedback Antonio.
I could not connect from a different network at the same time but I know it happend in 2 different networks so the odds are that it's not network, proxy related. Unfortunately I don't have access to the logs of this server and it's also a shared server that has shown some problems in the past.
I'll proceed moving the Joomla to the same server as the Moodle, hope it fix the question. Thoughts on that?
I could not connect from a different network at the same time but I know it happend in 2 different networks so the odds are that it's not network, proxy related. Unfortunately I don't have access to the logs of this server and it's also a shared server that has shown some problems in the past.
I'll proceed moving the Joomla to the same server as the Moodle, hope it fix the question. Thoughts on that?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
12 years 11 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Strange behavior regarding user session
As I don't have any idea of why that problem is happening, I don't know if moving serves will have any impact.
Please Log in or Create an account to join the conversation.
- vanoir
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 9
12 years 10 months ago #5
by vanoir
Replied by vanoir on topic Strange behavior regarding user session
a feedback on the issue:
moving the Joomla to the same server and changing the conection method to cURL solved the problem. I can't confirm that making only one of those changes would solve the problem.
also, from the moodle's apache log:
Thanks for the support
moving the Joomla to the same server and changing the conection method to cURL solved the problem. I can't confirm that making only one of those changes would solve the problem.
also, from the moodle's apache log:
Code:
[Sun May 26 12:57:59 2013] [error] [client 201.16.252.212] PHP Warning: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0, referer: http://telelab.ufsc.br/guia
[Sun May 26 12:57:59 2013] [error] [client 201.16.252.212] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/moodle/moodledata/devtelelab/sessions) in Unknown on line 0, referer: http://telelab.ufsc.br/guia
Thanks for the support
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
12 years 10 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Strange behavior regarding user session
Thanks for the update. We will be alert, in case someone reports a similar problem.
Please Log in or Create an account to join the conversation.