After installation the admin can't log in

Asked by selvakumar

I was installed the xibo1.0.2 on my server "http://1010network.com/xibo-server/index.php?p=dashboard". After installation i trying to login but its not go in.

The Details are:
UserName: xibo_admin
Password : password
url:http://1010network.com/xibo-server/index.php

First time i got this error so that i removed the folder and database and install it again. Even its not log in.
Can you please help me on this.

Regards
selvakumar

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
selvakumar (selva-sign) said :
#1

I was installed the xibo1.0.2 on my server "http://1010network.com/xibo-server/index.php?p=dashboard". After installation i trying to login but its not go in.

The Details are:
UserName: xibo_admin
Password : password
url:http://1010network.com/xibo-server/index.php

First time i got this error so that i removed the folder and database and install it again. Even its not log in.
Can you please help me on this.

Regards
selvakumar

Revision history for this message
Alex Harrington (alexharrington) said :
#2

Hi

I just tried and it logged in first time?

Alex

Revision history for this message
selvakumar (selva-sign) said :
#3

Hi alex,

Is it blocked my ip address. Because i cant log in.

The Details are:
UserName: xibo_admin
Password : password
url:http://1010network.com/xibo-server/index.php

Regards
selvakumar

Revision history for this message
Alex Harrington (alexharrington) said :
#4

Hi

There's no code in Xibo to "block" IP addresses. Are you accessing Xibo through a proxy? Please try clearing the browser and session caches of your web browser, close the browser and try again.

Alex

Revision history for this message
selvakumar (selva-sign) said :
#5

Hi alex,

Thank you so much for your prompt reply.
Yes i cleared all the cookie and priveate data and session and restart the browser also.

Still i cant login. Can you please help me on this.

Regards
selvakumar

Revision history for this message
Alex Harrington (alexharrington) said :
#6

It's very strange.

When I log in and look at the sessions, I can see you logged in 4 times from two similar IP addresses. Three times in Firefox and one time in IE7?

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#7

I've put your server in to full debug/audit/test mode. Please try logging on now so we can see what's logged.

Cheers

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#8

Are you behind some kind of load-balancer? I see you trying to log on however while the session ID is constant (in some cases), the IP address you're coming from keeps skipping about...

Revision history for this message
selvakumar (selva-sign) said :
#9

Hi Alex,

No we havnt use any load-balancer technique. I am installed on my separate laptop.
I sent this link to my colleague. He also not able to login.

We both cleared the cache and session and tried many times its not login.

Regards
selvakumar

Revision history for this message
Alex Harrington (alexharrington) said :
#10

OK

That really isn't helpful. What I need is for one person to clear their cache, cookies and session data. Then from one browser on one PC, try logging in a few times so I can see what's going on.

Thanks

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#11

OK - so from the log I see:

Form token incorrect from: 220.255.7.192 with token [d4d2afe8ccdc68cf1e6a325f250ee57d]
Form token incorrect from: 220.255.7.196 with token [2233c9f925ea31f907fa95f89fa6404d]
Form token incorrect from: 220.255.7.191 with token [89d1a1b02a9150e7e0e7e0ce99a034fa]

All from your last three attempts. See how your IP address is changing?

Revision history for this message
selvakumar (selva-sign) said :
#12

Hi Alex,

I got the error like this after login

Notice: Undefined index: token in /home/networkc/public_html/xibo-server/lib/app/app_functions.php on line 692

Warning: Cannot modify header information - headers already sent by (output started at /home/networkc/public_html/xibo-server/lib/app/app_functions.php:692) in /home/networkc/public_html/xibo-server/lib/pages/index.class.php on line 91

So i put ob_start() on the first line.

The ip address change is my colleague also trying this login so it might be his ip address.

I saw the log its saying

"'Form token incorrect from: 220.255.7.195 with token [9ed8827cffdf6830478de5bea41e78f3]".

Revision history for this message
Alex Harrington (alexharrington) said :
#13

Selvakumar

Please - we can't debug this with lots of people accessing the server.

Please arrange it so that it is JUST YOU attempting to log on from ONE BROWSER on ONE PC two or three times in sucession. We need to see what is happening with the session IDs and having multiple people trying to access it at once makes that impossible.

Please do not modify the source code as it's yet another variable to contend with. Please revert the change you made already until we understand the problem properly.

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#14

The IP is still skipping all over the place:

 Form token incorrect from: 220.255.7.199 with token [e3600fc8f0386cda913a82ebead28990]
 Form token incorrect from: 220.255.7.198 with token [e3600fc8f0386cda913a82ebead28990]

See how the session ID is the same but the IP is changing. That has to be the same web browser on two different IP addresses...

Alex

Revision history for this message
selvakumar (selva-sign) said :
#15

Hi Alex,

I revert back all the changes then i got the following error. [After login]

Notice: Undefined index: token in /home/networkc/public_html/xibo-server/lib/app/app_functions.php on line 692

Warning: Cannot modify header information - headers already sent by (output started at /home/networkc/public_html/xibo-server/lib/app/app_functions.php:692) in /home/networkc/public_html/xibo-server/lib/pages/index.class.php on line 91

Regards
selvakumar

Revision history for this message
Alex Harrington (alexharrington) said :
#16

OK.

I've pushed up a special branch for you to test. Please can you download the new version of app_functions.php and replace the version in xibo-server/lib/app

Go here: http://bazaar.launchpad.net/~alexharrington/xibo/Q76284/annotate/head%3A/server/lib/app/app_functions.php
Use the "download file" link at the top to download a fresh copy and replace the existing version.

It won't work, but it will give us extra debug information about the sessions. Please continue to ensure that only one person is attempting to log on.

Cheers

Alex

Revision history for this message
selvakumar (selva-sign) said :
#17

yes i download and replaced. Its display the following error

Notice: Undefined index: token in /home/networkc/public_html/xibo-server/lib/app/app_functions.php on line 692

Warning: Cannot modify header information - headers already sent by (output started at /home/networkc/public_html/xibo-server/lib/app/app_functions.php:692) in /home/networkc/public_html/xibo-server/lib/pages/index.class.php on line 91

Regards
selvakumar

Revision history for this message
Alex Harrington (alexharrington) said :
#18

> Notice: Undefined index: token in
> /home/networkc/public_html/xibo-server/lib/app/app_functions.p
hp on line 692
>
> Warning: Cannot modify header information - headers already
> sent by (output started at /home/networkc/public_html/xibo-
> server/lib/app/app_functions.php:692) in
> /home/networkc/public_html
> /xibo-server/lib/pages/index.class.php on line 91

That output won't change, but I get extra info in the log.

I see you've tried to log on once. Please can you try three or four
times in quick succession so I can see if the session ID is changing
between tries.

Alex

Revision history for this message
selvakumar (selva-sign) said :
#19

Yes i tried 5 times.

Regards
selvakumar

Revision history for this message
Alex Harrington (alexharrington) said :
#20

Thanks - I got what I need.

The session ID is staying constant - which means that the sessions look sane. However your IP is changing on every request. Why is that happening? You must be behind some kind of load balancer and multiple net connections?

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#21

FYI I've pastebin'd the relivant part of the log:
http://ubuntu.pastebin.com/m6844461c

Revision history for this message
Dan Garner (dangarner) said :
#22

Alex has pin pointed the problem exactly (despite me being sure he was wrong!). The session is restricted to IP - because your IP is changing constantly you are never getting your session data persisted - and therefore you cannot login.

If you fix the IP issues I am sure it will be completely resolved.

I am researching alternatives and will keep you posted.

Revision history for this message
Dan Garner (dangarner) said :
#23

Can you try the patch found on the linked bug report.

Thanks,
Dan

Revision history for this message
Alex Harrington (alexharrington) said :
#24

Hehe. Makes a change. It'll be the first thing I've got right this week!

A

Revision history for this message
Alex Harrington (alexharrington) said :
#25

Bug created to track status. Patch issued to OP.

Revision history for this message
allisterbrizan (allisterbrizan) said :
#26

I get this error on a localhost server i use for testing powered by XAMPP.
Here is how the error occured:
I tried a movie upload which was too large for my "max_upload_filesize" in my php.ini. To solve the problem I modified my php.ini and restarted the apache service. After the reboot i get this error.

The listed patch don't work in my scenario.
I am using xibo-server-1.0.3.

Revision history for this message
Alex Harrington (alexharrington) said :
#27

1. Upgrade to 1.0.6 - unless you like people having access to any file on your servers filesystem. All details are in the release notes for v1.0.4,1.0.5 and 1.0.6. You can upgrade from 1.0.3->1.0.6 in one step.

2. Clear your browser file and session cache. This bug won't apply to you unless you're beind a loadbalancer which changes your IP on each request.

Alex