Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Troubleshooting  >  Thread
   
 
reset password
 
dotti
Posted: 26 May 2009 10:50 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  3
Joined  2009-05-26

I’ve got Tracks 1.6 running on Ubuntu 9.04 which I installed Tracks using Bitnami. I’ve forgotten my password. I’ve already tried resetting it as described in this Thread: http://getontracks.org/forums/viewthread/83/. I’ve got 2 Problems: Firstly I’m not even too sure as of what my login name is, Secondly the message: “NameError: uninitialized constant User” doesn’t seem to be right. I also got some Errors when starting the console that I don’t understand. Does anyone know if these errors may be related to my Problem? If yes, is there a way of fixing it? Does anyone know another way of resetting the password?

Regards Dotti

dotti@sone:~/tracks-1.6-2$ sudo apps/tracks/script/console
Loading development environment 
(Rails 2.0.2)
/
home/dotti/tracks-1.6-2/apps/tracks/config/../vendor/rails/railties/lib/initializer.rb:159:in `require_frameworks':RuntimeError: no such file to load -- rubygems
/home/dotti/tracks-1.6-2/apps/tracks/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:88:NoMethodError: undefined method 
`cattr_accessor' for ActionController::Dispatcher:Class
/home/dotti/tracks-1.6-2/apps/tracks/app/controllers/application.rb:4:NoMethodError: undefined method `require_dependency' 
for main:Object
>> user=User.find_by_login('dotti')
NameError: uninitialized constant User
    from 
(irb):1
>> user=User.find_by_login('admin')
NameError: uninitialized constant User
    from 
(irb):2 
Profile
 
Reinier Balt
Posted: 27 May 2009 07:49 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  577
Joined  2006-10-05

the error states you are missing the rubygems gem. try

sudo gem install rubygems

There is also a rake task for resetting the password

rake reset_password USER=dotti

Profile
 
Reinier Balt
Posted: 27 May 2009 07:52 AM   [ Ignore ]   [ # 2 ]  
Sr. Member
RankRankRankRank
Total Posts:  577
Joined  2006-10-05

hmm, that should be

rake tracks:password USER=dotti

Profile
 
dotti
Posted: 27 May 2009 09:09 AM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  3
Joined  2009-05-26

Thanks for your efforts.


I installed rubygems but I am somahow not able to connect to the database, hence the following error message comes up when starting script/console:

/home/dotti/tracks-1.6-2/apps/tracks/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:523:in `read':Mysql::Error: #42000Access denied for user 'bitnami'@'localhost' to database 'tracks_development' 

I also tried solving this with rake, which unluckely doesn’t worker either:

dotti@sone:~/tracks-1.6-2$ rake
rake aborted
!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/
usr/lib/ruby/1.8/rake.rb:2143:in `raw_load_rakefile'
(See full trace by running task with --trace)
dotti@sone:~/tracks-1.6-2$ 
Profile
 
Reinier Balt
Posted: 27 May 2009 09:13 AM   [ Ignore ]   [ # 4 ]  
Sr. Member
RankRankRankRank
Total Posts:  577
Joined  2006-10-05

you need to do this from the tracks dir. I gather from your first trace that it should be called from

~/tracks-1.6-2/apps/tracks

Profile
 
dotti
Posted: 27 May 2009 09:15 AM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  3
Joined  2009-05-26

Ok i’ve now figured out that there actually are like 30 or 40 Rakefiles in the various subdirectories of tracks.
Within the apps/tracks folder I tried the same command again, this is the result:

dotti@sone:~/tracks-1.6-2/apps/tracks$ sudo rake tracks:password USER=dotti
(in /home/dotti/tracks-1.6-2/apps/tracks)
rake aborted!
no such file to load -- highline/import 
Profile
 
Reinier Balt
Posted: 27 May 2009 09:47 AM   [ Ignore ]   [ # 6 ]  
Sr. Member
RankRankRankRank
Total Posts:  577
Joined  2006-10-05

it is a missing gem

gem install highline

will do the trick

Profile
 
rocketraman
Posted: 17 December 2009 09:13 PM   [ Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  3
Joined  2009-11-09

While the procedure given in the thread referred to by the OP works, I just want to note that the command given in this thread no longer seems to work on tracks 1.7-dev. I get the following error:

$ rake --trace tracks:password USER=raman
(in /opt/tracks-1.7-dev)
** 
Invoke tracks:password (first_time)
** 
Invoke environment (first_time)
** 
Execute environment
** Execute tracks:password
rake aborted
!
uninitialized constant Dependencies
/opt/tracks-1.7-dev/vendor/rails/activesupport/lib/active_support/dependencies.rb:445:in `load_missing_constant'
/opt/tracks-1.7-dev/vendor/rails/activesupport/lib/active_support/dependencies.rb:77:in 
`const_missing'
/opt/tracks-1.7-dev/vendor/rails/activesupport/lib/active_support/dependencies.rb:89:in `const_missing'
/opt/tracks-1.7-dev/lib/tasks/reset_password.rake:5
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in 
`execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in 
`invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in 
`invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in 
`each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in 
`top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in 
`run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19 

Cheers,
Raman

Profile
 
   
 
 
‹‹ Outlook Integration -- 404 Unauthorized Error      IE 8 Problems ››

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

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1958 seconds

Atom Feed
RSS 2.0