Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Troubleshooting  >  Thread
   
 
Unable to login to tracks under windows
 
fyre
Posted: 26 November 2006 07:08 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  3
Joined  2006-11-26

Versions:
Tracks: 1.0.43
Ruby: 1.8.5
MySQL: 5.0.17 (mysqld-nt.exe)
production.log pasted after message text.

I am unable to login to tracks under windows.  I have explicitly defined the shebang to my ruby.exe (#g:/ruby/bin/ruby.exe), and I am NOT using any sort of generic, “easy install” of ruby/mysql/etc… (I actually wrote a tutorial on installing tracks to windows, back when I first discovered it.)

I started having this problem in the version I originally used (I can’t remember the number), so I upgraded to 1.0.43.  Then, I wiped the MySQL database (drop database tracks), and re-created it, and re-rean ‘rake migrate’.  I’ve since tried to both create a new account, and I’ve tried with the example data (re-dropping tables, re-running migrate, and load_fixtures).  I’ve verified the existance of data in the database.

This issue appears to be occuring with all Ruby programs.  I’m hoping some of the ruby gurus here can help, or - since this is not neccisarily a tracks problem - direct me to the appropriate place to pose my question.

NOTE: for tracks, in console, assigned pass = “password”, and then ran hash routine Digest::SHA1.hexdigest(“#{SALT}—#{pass}—“) and verified hash output by script is exact match for hash in database.  Apparently the issue is between the time the password is input into the browser, and the time the script processes it.  It is not a browser issue (verified problem exists in FF, Opera, and IE).

The production.log paste is a clean database (only rake migrate).  I first went to /signup, filled in info, and upon hitting button, page went to /login.  I attempted to login, and it refreshed back to login page, displaying no error. (Attempts to login with a non-existant username result in standard error message.)  Just for comparison, I went back to 127.0.0.1:3000 in a fresh tab, and tried to log in with a non-existant user (and received login unsuccessful error).

Thanks!
-Eric
production.log (using code tags to preserve line wrap):

Processing LoginController#signup (for 127.0.0.1 at 2006-11-26 02:01:19) [GET]
  
Session ID: 26dd91681ced721249ba9db5071c5e10
  Parameters
: {"action"=>"signup", "controller"=>"login"}
Rendering  within layouts
/login
Rendering login
/signup
Completed in 0.05100 
(19 reqs/sec) | Rendering: 0.03100 (60%) | DB: 0.01000 (19%) | 200 OK [http://127.0.0.1/signup]


Processing LoginController#create (for 127.0.0.1 at 2006-11-26 02:01:31) [POST]
  
Session ID: e6eddba31824253dabd7b93f7b637e7b
  Parameters
: {"user"=>{"password_confirmation"=>"password", "login"=>"eric", "password"=>"password"}, "action"=>"create", "controller"=>"login"}
Redirected to http
://127.0.0.1:3000/
Completed in 0.08100 (12 reqs/sec) | DB: 0.06000 (74%) | 302 Found [http://127.0.0.1/login/create]


Processing TodoController#list (for 127.0.0.1 at 2006-11-26 02:01:31) [GET]
  
Session ID: c5c7acfd7932005731326595550a3a59
  Parameters
: {"action"=>"list", "controller"=>"todo"}
Redirected to http
://127.0.0.1:3000/login
Filter chain halted as [login_required] returned false
Completed in 0.00010 
(10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://127.0.0.1/]


Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:01:31) [GET]
  
Session ID: 4a46376d951e4424edaaee353acc64f4
  Parameters
: {"action"=>"login", "controller"=>"login"}
Rendering  within layouts
/login
Rendering login
/login
Completed in 0.02000 
(50 reqs/sec) | Rendering: 0.02000 (100%) | DB: 0.00000 (0%) | 200 OK [http://127.0.0.1/login]


Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:01:39) [POST]
  
Session ID: 7cb860c1b208b2fb698374b6f9fceaee
  Parameters
: {"user_login"=>"eric", "action"=>"login", "controller"=>"login", "user_noexpiry"=>"on", "user_password"=>"password", "login"=>"Login \302\273"}
Redirected to http
://127.0.0.1:3000/
Completed in 0.00010 (10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://127.0.0.1/login]


Processing TodoController#list (for 127.0.0.1 at 2006-11-26 02:01:39) [GET]
  
Session ID: 14641058a5f3084223cd045c4fbd2fa6
  Parameters
: {"action"=>"list", "controller"=>"todo"}
Redirected to http
://127.0.0.1:3000/login
Filter chain halted as [login_required] returned false
Completed in 0.00010 
(10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://127.0.0.1/]


Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:01:39) [GET]
  
Session ID: 7b08e9597e344b67b20a411293c80667
  Parameters
: {"action"=>"login", "controller"=>"login"}
Rendering  within layouts
/login
Rendering login
/login
Completed in 0.01000 
(100 reqs/sec) | Rendering: 0.01000 (100%) | DB: 0.00000 (0%) | 200 OK [http://127.0.0.1/login]


Processing TodoController#list (for 127.0.0.1 at 2006-11-26 02:06:22) [GET]
  
Session ID: 69b00ea7e379e7a4b231b321e6cdc6ee
  Parameters
: {"action"=>"list", "controller"=>"todo"}
Redirected to http
://127.0.0.1:3000/login
Filter chain halted as [login_required] returned false
Completed in 0.00010 
(10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://127.0.0.1/]


Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:06:23) [GET]
  
Session ID: e6e6f4e94909fd6593b3b04c73e2574f
  Parameters
: {"action"=>"login", "controller"=>"login"}
Rendering  within layouts
/login
Rendering login
/login
Completed in 0.02000 
(50 reqs/sec) | Rendering: 0.02000 (100%) | DB: 0.00000 (0%) | 200 OK [http://127.0.0.1/login]


Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:06:35) [POST]
  
Session ID: 164d4f23ba3ce7269be4e6decd2bf4a8
  Parameters
: {"user_login"=>"snerf", "action"=>"login", "controller"=>"login", "user_password"=>"snerf", "login"=>"Login \302\273"}
Rendering  within layouts
/login
Rendering login
/login
Completed in 0.01000 
(100 reqs/sec) | Rendering: 0.00000 (0%) | DB: 0.01000 (100%) | 200 OK [http://127.0.0.1/login] 

Profile
 
bsag
Posted: 26 November 2006 10:38 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  217
Joined  2006-03-05
fyre - 26 November 2006 07:08 AM

Processing LoginController#create (for 127.0.0.1 at 2006-11-26 02:01:31) [POST]
  
Session ID: e6eddba31824253dabd7b93f7b637e7b
  Parameters
: {"user"=>{"password_confirmation"=>"password", "login"=>"eric", "password"=>"password"}, "action"=>"create", "controller"=>"login"}
Redirected to http
://127.0.0.1:3000/
Completed in 0.08100 (12 reqs/sec) | DB: 0.06000 (74%) | 302 Found [http://127.0.0.1/login/create] 

Did you notice that the password confirmation and password are different in this signup attempt? You should have received a validation error, but at any rate, the record would not be saved. Did you check that this record existed in your db?

I’m not sure what else to suggest. I don’t have MySQL 5.x or Ruby 1.8.5, so it’s possible it’s an issue with these versions on Windows thta I don’t know about. You could try running the tests:

rake test:units
rake test
:functionals 

and see if those work, because they have to access the db (check that you’ve filled in valid database details in the test: stanza of config/database.yml).

Profile
 
bsag
Posted: 26 November 2006 10:43 AM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  217
Joined  2006-03-05

Might this discussion help?

Profile
 
fyre
Posted: 26 November 2006 12:12 PM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  3
Joined  2006-11-26

bsag…
Whoops.. the password mismatch is because I was changing the password in the output to a generic, instead of the password I was using.  I’ve since editted.  Could you edit your response, please (and I’ll be changing passwords in a couple of places).

Okay… output for rake test:units was:

G:\TRACKS>rake test:units
(in G:/TRACKS)
rake aborted!
./
db/schema.rb:18: parse error, unexpected tCONSTANT, expecting kDO or '{' or '(
'
    
t.column "created_at", :datetime, :default => Sat Jan 01 00:00:00 -0500 2000

                                                         
^
./
db/schema.rb:18: parse error, unexpected tINTEGER, expecting kEND
./db/schema.rb:19: parse error, unexpected tCONSTANT, expecting kDO or '{' or '(
'
    
t.column "updated_at", :datetime, :default => Sat Jan 01 00:00:00 -0500 2000

                                                         
^
./
db/schema.rb:19: parse error, unexpected tINTEGER, expecting kEND

(See full trace by running task with --trace) 

Output for rake test:functionals was the same thing.

Strange, because I know the script can access it in production mode, as it inserts the admin account created at /signup without a problem.


MySQL is not the issue.  I’ve duplicated the problem using sqlite3.  It’s in the code, somewhere.

-Eric

Profile
 
fyre
Posted: 26 November 2006 12:18 PM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  3
Joined  2006-11-26

by “in the code”, I mean somewhere in either Ruby, or Windows.  Since this is occuring in multiple programs.  Tracks is the just only one I’ve tried that has a decent support community.

Hmm…  wait a second, I think I might have figured something out.

Okay, got it.
All of this?  ez-firewall by Compuer Associates.

No joke.

It dawned on me a minute ago, that the firewall loops each and every web page through its “privacy” feature.  Thereby running every single page, etc.. through a specific port on localhost, and doing god knows what to it.  Apparently, ruby didn’t like that.

What’s weird is that I could log in to ruby apps on remote systems, with the firewall running.

I think I need to explicitly define a few things and I should be good to go. =)
Implicit trust of 127.0.0.1 might be a start.

Thanks!
-Eric

Profile
 
bsag
Posted: 26 November 2006 12:25 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  217
Joined  2006-03-05

Yay! Glad you’ve worked it out (previous reply edited to remove your secrets wink )

Profile
 
   
 
 
‹‹ How do you re-order actions?      Problems with the login page not showing ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.1 (20081028)
Script Executed in 0.1470 seconds

Atom Feed
RSS 2.0