Instant logout after login - Tried all the usual's

Started by elliott, January 09, 2014, 09:22:49 PM

elliott

Hey guys,

So I've just forked out $1,100 for Hostbill and the OpenStack plugin.

Installed it on CentOS 6.4 minimal, installed Hostbill as per instructions, set permissions, cron jobs etc.

Everything was working fine, created a few packages, tested them. I added second network adapter so Hostbill could access the management network for Openstack, rebooted, everything was still fine...

Then all of sudden, every time I changed pages on the client portal it would log me out. I tried the admin interface, and that instantly logs me out after logging in (as in it flashes up the time-out message, then takes me back to the login page.

I've tried all the usuals:
Created TMP partition, set permissions, scripted PHP to write to the temp directory (Which worked fine, was the correct directory)
Manually set timeout in MYSQL database to 75 as per another forum post, then 999999999999, then 0, all of which didn't fix it (rebooted after each)
Disabled selinux to test, not fixed.
Blew away iptables
I removed the second network adapter just in case this was causing problems, still the same issue.
All the permissions I can see are correct.

Anyone seen this before? Any ideas?

I know I could just start again from scratch, but as this just happened randomly out of the blue I will certainly be returning Hostbill for a refund if I can't find a definitive fix, as if this happened in production it would NOT be a good look!!

Thanks for your assistance guys!

Elliott

Enterprisevpssolutions

Clear your templete_C folder, restart apache, clear folder again, Clear your browser cache and try to login.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

elliott

#2
Thanks for the prompt reply!

EDIT: sorry I'm useless, found it. Testing it now

elliott

No luck with this either unfortunately :(

I'm at the point that I'm thinking of re-provisioning the server and hoping the problem doesn't recur :(

Enterprisevpssolutions

why not backup the database and just reinstall hostbill.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

elliott

OK so I've figured it out, you can't have more than one NIC.

I don't know why, but when I provision the server, if there is more than one NIC it causes this instant-logout problem. If I provision the server with a single NIC, it works fine until I add a second NIC, then the problem begins.

The secondary NIC has no gateway and is to access the OpenStack management network.

I install HostBill with the provided install script (install.sh), not sure if this is relevant?

Any thoughts?

Enterprisevpssolutions

Doesn't make since I have 2 nics inside my system. Make sure hostbill is only using one ip in the configuration and it doesn't switch, the changing of ip would cause the loop in the licensing software would be my guess. There really should be a option to have 2 nics setup with a private backup for security in the setup or general configuration. I think you have to send a support ticket now to have them put private ips so your license will continue to work. Send in a request to have the software updated and we can vote it up.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

elliott

It doesn't seem license related, since if I remove the second network adapter from the VM completely the problem persists.

I did the following in order:
1. New ESXi 5.5 VM w/single NIC
2. Install Centos 6.4 Minimal x64
3. Run Hostbill install.sh
4. Hostbill installed and working
5. Add second NIC
6. Hostbill broken/instant admin logout issue
7. Remove second NIC
8. Hostbill still broken

I would think if it was license related it would go away after removing the second NIC.

I might try a manual install instead of using the auto-installer install.sh and see if that makes any difference.

Any other thoughts?

elliott

OK I've tried exactly the same thing, but with a Centos 6.5 Minimal install rather than a 6.4 Minimal install.

The email I got when I purchased said "To install log-in to your freshly installed Centos 6.4 x86_64 and issue command: wget blah blah blah install.sh"

However the install.sh script has a line in there that says:
check_os()
{
   if [ $OS -ne 0 ] || [ $ARCH != "x86_64" ]; then
      echo "HostBill Enterprise requires Centos 6.5 x86_64"
      exit 1

With 6.5 it has at least let me log into the admin section... so far so good. Maybe there was a change in the script between 6.4 and 6.5, but the welcome email wasn't updated?

Either way, I had actually already tried Centos 6.5, but I did the "standard web server" install rather than minimal. This is the first Minimal install I have done with 6.5.

Will keep you posted..

ethaniel86

I am having the same 'instant logout' issue end up it was due to upgraded PHP version.   :-X