Coldbox administrator broken - out of the blue

Hello,

Today I restarted my CF service as well as I was working on a new module. I tried to login to my CF admin locally. I did make a domain change in IIS, where I changed my domain from payanycoin.com to beta.payanycoin.com for my local machine. I did this so that I could bring online http://payanycoin.com ( even know it’s not done . . no worries no one in the world knows this exists yet ) except you. :stuck_out_tongue: This is my test environment as of right now on my AWS server.

My dev environment is my local, which I now made beta.payanycoin.com. I pointed my hosts file (yep I’m on windows) to 127.0.0.1 like I normally do. The site comes up, and seems to work perfectly fine.

Note that payanycoin.com & my local dev environment use the same aws database.

I tried to login to the administrator (cbadmin/security/login) on my local machine, and now when I click “login” with my username & password it redirects back to the login screen but does not give me any sort of error message. However, I can login just fine on payanycoin.com ( test server ).

I’m not sure what is going on or why it just out of the blue stopped allowing me to login. I do know for sure it’s not a password issue.

Any ideas?

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

It works on dev and not on local? same database?

Can you provide us with more information such as an error message?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Oops, sorry I got the E-mails into my inbox out of order so the first one to come in was Francesco’s and it didn’t show what he was replying to :slight_smile:

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Hello,

Today I restarted my CF service as well as I was working on a new module. I tried to login to my CF admin locally. I did make a domain change in IIS, where I changed my domain from payanycoin.com to beta.payanycoin.com for my local machine. I did this so that I could bring online http://payanycoin.com ( even know it’s not done . . no worries no one in the world knows this exists yet ) except you. :stuck_out_tongue: This is my test environment as of right now on my AWS server.

My dev environment is my local, which I now made beta.payanycoin.com. I pointed my hosts file (yep I’m on windows) to 127.0.0.1 like I normally do. The site comes up, and seems to work perfectly fine.

Note that payanycoin.com & my local dev environment use the same aws database.

I tried to login to the administrator (cbadmin/security/login) on my local machine, and now when I click “login” with my username & password it redirects back to the login screen but does not give me any sort of error message. However, I can login just fine on payanycoin.com ( test server ).

I’m not sure what is going on or why it just out of the blue stopped allowing me to login. I do know for sure it’s not a password issue.

Any ideas?

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

yes

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

There is no error message at all. It literally just looks like it submits, then refreshes the security login page. No errors at all, not in CF administrator and not on screen.

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

Hrm… I’ll check that out. I just rebooted my machine to see if something flukey was going one. We’ll see.

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

No big surprise, rebooting did not work.

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

Marco, can you verify your credentials in ContentBox, make sure you have the ContentBox admin permissions.

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

It the same user as payanycoin.com

Example:

http://payanycoin.com ( database: aws) - user logs in fine. Site is located on AWS Webserver running ralio

http://beta.payanycoin.com (database: aws ) – user cannot login. Site is located on local CF 10 developer edition.

Same user, same credentials, same database, different result.

I’ve verified that the username & password are correct and the permissions are all correct. It’s literally the same user I’ve been using for 3 weeks now to develop and test.

This issue is blowing my brain. Trying to figure out LogBox and how to leverage that. BTW this was working perfectly fine yesterday, and today it’s not working. Only stopped working after I changed the domain I’m using to access my local site.

Thanks,

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

image001.jpg

It the same user as payanycoin.com

Example:

http://payanycoin.com ( database: aws) - user logs in fine. Site is located on AWS Webserver running ralio

http://beta.payanycoin.com (database: aws ) – user cannot login. Site is located on local CF 10 developer edition.

Same user, same credentials, same database, different result.

I’ve verified that the username & password are correct and the permissions are all correct. It’s literally the same user I’ve been using for 3 weeks now to develop and test.

This issue is blowing my brain. Trying to figure out LogBox and how to leverage that. BTW this was working perfectly fine yesterday, and today it’s not working. Only stopped working after I changed the domain I’m using to access my local site.

Thanks,

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

image001.jpg

The only thing that appears in the log file is

“INFO”,“MYCBLOG”,“02/28/2014”,“15:31:29”,“contentbox-admin.interceptors.CommentCleanup”,“Comment moderation executed for the last (30) days!”

This happens once per time I attempt to login.

Is there a resource where I can enable more verbose logging. This issue has now been escalated to “pain in my A$$” level. LOL

Thanks,

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

image001.jpg

Okay, I enabled verbose logging by setting the level of the Log to DEBUG. It outputs a lot of stuff, but it all looks normal.

I took it a step further and went into the security.cfc and inside the authenticate call.

// authenticate users

if( securityService.authenticate( rc.username, rc.password ) ){

I did a dump/abort … I get inside the if … so it is authenticating me. ( so freggin weird! )

So I’m assuming it is kicking me to the dashboard and the dashboard is kicking me out thinking that I am not authenticated?

Still working on it….

image001.jpg

Changed the domain back and problem still exists L I’m starting to think there is something wrong with my server/webserver configuration in general and nothing to do with my actual site. Not that I changed anything other than the binding in IIS… but I can’t see any other reason why it’s doing this.

image001.jpg

The reason is that you are using two websites on two different servers connecting to ContentBox, this has bitten me enough times in development.

To test if this is the case when you go to the machine that is not working, check that the SSL is not being redirected as you didn’t mention this then I assume there is no SSL on either of the domains. But to test on development, restart ColdFusion and browse to the dashboard and view the source before and after you have tried to login.

Then take a look at the baseref in the HTML and tell us if it has the production server domain name, my guess is that it does and this is why you are getting what you are getting. Your best option is to copy the DB or use a temporary DB locally and DON’t share the DB across domains it will not work.

image001.jpg

Interesting! I got this email a tad too late. I got fed up with CF10 and uninstalled it and installed Ralio and the site started working. However, I do feel that I could have uninstalled CF10 and Reinstalled CF10 and it might have worked.

I don’t believe that Re-Installing the Server was the correct solution after reading your blub below, although it did work ( so far ). I did not do a before / after on the source, but what you’ve said does make sense and I’m actually going to hold on creating separate DB’s until it happens again just so I can test your theory out. LOL I have to know if that was the RC for this issue. My guess, it is as it makes the most sense.

Thanks everyone on the list for your great input, great support!

Marco G. Williams

Information Technology Manager

Global Electronic Technology

949.380.0345 x209

image001.jpg

No I did not say re-install, I am saying use a backup of the DB locally. But to do the testing I suggested you maybe need to restart the ColdFusion services.

image001.jpg