twilio / OpenVBX

OpenVBX is a web-based open source phone system for business.
http://openvbx.org
Other
699 stars 342 forks source link

Gets logged out on login #330

Open rctl opened 9 years ago

rctl commented 9 years ago

Server: Ubuntu 14.04 Webserver: nginx, php-fpm

After installation when trying to login I get redirected to logout page "/auth/logout". This happens repeatedly upon trying to sign in. Have tried some solutions from google search but without success.

Entering wrong credentials throws "Email address and/or password is incorrect" and correct credentials throws "You have been logged out.".

Any solutions?

Gipetto commented 9 years ago

Have you tried a different browser? There's a weird issue with Safari that I've noticed (and not been able to squash) that looks like this.

Torniojaws commented 7 years ago

Happens to me also. It initially worked OK, but after some time it stopped working while nothing changed. I'm running it locally on Windows 7 in Powershell with the standalone php server php -S 127.0.0.1:8000.

When I open 127.0.0.1:8000 in Vivaldi (1.10) or Firefox (54.0.1), all I get is a timeout after a few minutes. Vivaldi says "Too many redirects", Firefox says it cannot connect to the server.

The access log is just:

PS C:\Web\Projects\OpenVBX> php -S 127.0.0.1:8000
PHP 5.6.19 Development Server started at Mon Jul 10 11:20:26 2017
Listening on http://127.0.0.1:8000
Document root is C:\Web\Projects\OpenVBX
Press Ctrl-C to quit.
[Mon Jul 10 11:20:57 2017] 127.0.0.1:56338 [302]: /
[Mon Jul 10 11:21:08 2017] 127.0.0.1:56349 [302]: /auth/logout
[Mon Jul 10 11:21:19 2017] 127.0.0.1:56363 [302]: /auth/logout
[Mon Jul 10 11:21:30 2017] 127.0.0.1:56396 [302]: /auth/logout
[Mon Jul 10 11:21:40 2017] 127.0.0.1:56413 [302]: /auth/logout
[Mon Jul 10 11:21:51 2017] 127.0.0.1:56424 [302]: /auth/logout
[Mon Jul 10 11:22:02 2017] 127.0.0.1:56447 [302]: /auth/logout
[Mon Jul 10 11:22:13 2017] 127.0.0.1:56459 [302]: /auth/logout
[Mon Jul 10 11:22:24 2017] 127.0.0.1:56470 [302]: /auth/logout
[Mon Jul 10 11:22:35 2017] 127.0.0.1:56481 [302]: /auth/logout
[Mon Jul 10 11:22:46 2017] 127.0.0.1:56492 [302]: /auth/logout

The /auth/logout repeats about 20 times and after that the browsers give up and nothing more appears in the PHP log.

Interestingly, when I use Chrome (59.0), I get:

[Mon Jul 10 11:35:58 2017] 127.0.0.1:51153 [302]: /
[Mon Jul 10 11:35:58 2017] 127.0.0.1:51154 Invalid request (Unexpected EOF)
[Mon Jul 10 11:36:09 2017] 127.0.0.1:51165 [302]: /auth/logout
[Mon Jul 10 11:36:20 2017] 127.0.0.1:51177 [302]: /auth/logout
Torniojaws commented 7 years ago

Ooh, the reason was that my database is in Vagrant and Vagrant was not running :)