Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Mac OS X  >  Thread
   
1 of 2
1
2
Next
Auth type not a valid authentication type
 
arima
Posted: 08 March 2007 10:54 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  9
Joined  2007-03-08

Getting this error when I try to sign up on a new Tracks installation, trunk/SVN today, on 10.4.8.

Any ideas?

Profile
 
bsag
Posted: 09 March 2007 08:30 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  195
Joined  2006-03-05

Check your config/environment.rb file. Do you have a line:


AUTHENTICATION_SCHEMES = [‘database’]

If you’re trying to use the usual database method of authentication (i.e. not OpenID or ldap), that’s what you need there.

Profile
 
arima
Posted: 09 March 2007 03:52 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  9
Joined  2007-03-08

Yes, I have that line and it is not commented out.

Profile
 
bsag
Posted: 10 March 2007 07:42 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  195
Joined  2006-03-05

I’m not sure what the problem is then. What database are you trying to use? It’s not an error that I’ve come across before.

Profile
 
lukemelia
Posted: 10 March 2007 10:10 PM   [ Ignore ]   [ # 4 ]  
Member
Avatar
RankRankRank
Total Posts:  62
Joined  2006-07-18

The error happens when the user is being validated and checks that the auth_type field matches one of the schemes specified in your environment.rb. In the signup process, it looks like we don’t explicitly set the auth_type, which suggests that the default value in the schema is supplying it.

Looking at this code, it certainly seems likely there are bugs to be found here. However, I can’t replicate the issue you’re describing. I think bsags question is a good one: what database are you using?

Signature 

Luke Melia - Tracks committer - New York, NY - http://www.lukemelia.com/

Profile
 
arima
Posted: 11 March 2007 08:22 AM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  9
Joined  2007-03-08
lukemelia - 10 March 2007 10:10 PM

The error happens when the user is being validated and checks that the auth_type field matches one of the schemes specified in your environment.rb. In the signup process, it looks like we don’t explicitly set the auth_type, which suggests that the default value in the schema is supplying it.

Looking at this code, it certainly seems likely there are bugs to be found here. However, I can’t replicate the issue you’re describing. I think bsags question is a good one: what database are you using?

sqlite3.

Profile
 
arima
Posted: 12 March 2007 02:35 AM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  9
Joined  2007-03-08

Turns out this works on Linux (Ubuntu) but doesn’t work on Mac OS X.  There must be something i’m missing but I can’t find it.  The configurations are identical.

Profile
 
lukemelia
Posted: 12 March 2007 02:39 AM   [ Ignore ]   [ # 7 ]  
Member
Avatar
RankRankRank
Total Posts:  62
Joined  2006-07-18

Strange. I cannot replicate this with sqlite3 on my mac.

Signature 

Luke Melia - Tracks committer - New York, NY - http://www.lukemelia.com/

Profile
 
arima
Posted: 12 March 2007 02:56 AM   [ Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  9
Joined  2007-03-08

I’ve ashed my Tracks install and grabbed a fresh copy from SVN.  The problem still occurs.  I don’t think I have any inconsistencies on my install on RoR.  How can I help you get more information to solve the problem?

Profile
 
lukemelia
Posted: 12 March 2007 03:09 AM   [ Ignore ]   [ # 9 ]  
Member
Avatar
RankRankRank
Total Posts:  62
Joined  2006-07-18

Let me try harder to replicate it:

Please post:

* the version of sqlite3 you have (type “sqlite3 -version”)
* the version of the sqlite3-ruby gem (type “gem list sqlite3-ruby”)
* a list of the exact steps you take after exporting from SVN

Cheers,
Luke

Signature 

Luke Melia - Tracks committer - New York, NY - http://www.lukemelia.com/

Profile
 
arima
Posted: 12 March 2007 04:54 AM   [ Ignore ]   [ # 10 ]  
Newbie
Rank
Total Posts:  9
Joined  2007-03-08

vertice:~ tim$ sqlite3 -version
3.3.13
vertice:~ tim$ gem list sqlite3-ruby

*** LOCAL GEMS ***

sqlite3-ruby (1.2.1, 1.2.0, 1.1.0)
  SQLite3/Ruby is a module to allow Ruby scripts to interface with a
  SQLite3 database.
vertice:~ tim$

svn co—username=guest http://dev.rousette.org.uk/svn/tracks-repos/trunk .

[output snipped]

cd tracks
mv log.tmpl log
cd config
mate environment.rb.tmpl
[save with a changed SALT]
mate database.rb.tmpl
[save with a correct db statement:

development:
  adapter: sqlite3
  database: tracks

test:
  adapter: sqlite3
  database: “:memory:“

production:
  adapter: sqlite3
  database: tracks
]

mv the tmpl files to the correct files
cd ..
script/server -e production

Profile
 
lukemelia
Posted: 12 March 2007 05:01 AM   [ Ignore ]   [ # 11 ]  
Member
Avatar
RankRankRank
Total Posts:  62
Joined  2006-07-18

Did you do a rake db:migrate somewhere in there?

Signature 

Luke Melia - Tracks committer - New York, NY - http://www.lukemelia.com/

Profile
 
arima
Posted: 12 March 2007 05:55 AM   [ Ignore ]   [ # 12 ]  
Newbie
Rank
Total Posts:  9
Joined  2007-03-08

yup, sorry, right before script/server -e production, rake db:migrate occurs.

Profile
 
lukemelia
Posted: 13 March 2007 03:30 AM   [ Ignore ]   [ # 13 ]  
Member
Avatar
RankRankRank
Total Posts:  62
Joined  2006-07-18

Unfortunately, I’ll be on the road the rest of the week away from my mac. I’ll pick this up when I return next week.

Signature 

Luke Melia - Tracks committer - New York, NY - http://www.lukemelia.com/

Profile
 
arima
Posted: 25 March 2007 04:28 AM   [ Ignore ]   [ # 14 ]  
Newbie
Rank
Total Posts:  9
Joined  2007-03-08

Any news?

Profile
 
arima
Posted: 04 April 2007 12:43 PM   [ Ignore ]   [ # 15 ]  
Newbie
Rank
Total Posts:  9
Joined  2007-03-08

well?

Profile
 
   
1 of 2
1
2
Next
 
‹‹ Experiences in getting Tracks to run locally on 10.4.8      Updated Tracks 1.043 for installation with Locomotive ››

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

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

Atom Feed
RSS 2.0