+2
New discussion
Answer
Hi!
Trying to install parlement-0.9 on a perfectly working Ruby on Rail environment with:
postgres (PostgreSQL) 8.0.8
ruby 1.8.4 (2005-12-24) [i686-linux]
Rails 1.1.6
rake, version 0.7.1
gem 0.8.11
I get the following error:
The site reload itself with no interruption (http://localhost:3000), and with no results, until when the browser catch the problem and avoid reloading the page again.
The code seems clean and the DB shows no problems.
What could it be?
Thanks,
Dario-Shanghai
+1
New discussion
Answer
After a pause of one week I’ve found the problem:
One some systems (like my gentoo) is required to reinstall rake through gem via the following command:
gem install —remote rake
This eliminate every error. Now the local copy of parlement works perfectly ;)
+1
New discussion
Answer
+1
Felicitations!!!
You are the first. Want to setup a P2P network between our systems? ;)
In subversion there is a small evolution, which requires a new gem:
gem install term-ansicolorIt will allow for some colors in the logs, much nicer on the eyes :-D
+1
New discussion
Answer
I think that the database is empty or not connected!
It thus tries to go to element with id “parlement”, doesn’t find it and tries to find it again.
Did you run “ruby lib/data_import.rb”?
Otherwise you can try to fidget with the class EltController, method show (do you know ruby?).
I will gladly help you in any way I can. Don’t hesitate to ask!
+1
New discussion
Answer
I created another fresh install, just to be sure, and I’ve tried the sequence as you suggest.
shanghai@localhost:~/Desktop/Download/parlement-0.9$ psql -q template1
-f db/schema.sql psql:db/schema.sql:9: ERROR: il database
“parlement_development” non esiste psql:db/schema.sql:27: NOTICE:
CREATE TABLE / PRIMARY KEY will create implicit index “people_pkey” for
table “people” psql:db/schema.sql:27: NOTICE: CREATE TABLE / UNIQUE
will create implicit index “people_name_key” for table “people”
psql:db/schema.sql:47: NOTICE: CREATE TABLE will create implicit
sequence “usersold_id_seq” for serial column “usersold.id”
psql:db/schema.sql:47: NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index “usersold_pkey” for table “usersold”
psql:db/schema.sql:47: NOTICE: CREATE TABLE / UNIQUE will create
implicit index “usersold_person_id_key” for table “usersold”
psql:db/schema.sql:64: NOTICE: CREATE TABLE will create implicit
sequence “users_id_seq” for serial column “users.id”
psql:db/schema.sql:64: NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index “users_pkey” for table “users” psql:db/schema.sql:79:
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
“elts_pkey” for table “elts” psql:db/schema.sql:89: NOTICE: CREATE
TABLE / PRIMARY KEY will create implicit index “mails_pkey” for table
“mails” psql:db/schema.sql:97: NOTICE: CREATE TABLE / PRIMARY KEY will
create implicit index “attachments_pkey” for table “attachments”
psql:db/schema.sql:114: NOTICE: CREATE TABLE will create implicit
sequence “choices_id_seq” for serial column “choices.id”
psql:db/schema.sql:114: NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index “choices_pkey” for table “choices”
psql:db/schema.sql:123: NOTICE: CREATE TABLE will create implicit
sequence “delegations_id_seq” for serial column “delegations.id”
psql:db/schema.sql:123: NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index “delegations_pkey” for table “delegations”
shanghai@localhost:~/Desktop/Download/parlement-0.9$ rake migrate
-trace (in _home_shanghai/Desktop/Download/parlement-0.9)
usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/activerecord/validations.rb:334:
warning: `’ interpreted as argument
meta_project usr_lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require_’ usr_lib/ruby/site_ruby/1.8/rubygems/customrequire.rb:21:in
`require’ usr_lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/activesupport/dependencies.rb:147:in
`require’ _home_shanghai/Desktop/Download/parlement-0.9/Rakefile:14 usr_lib/ruby/site_ruby/1.8/rake.rb:1828:in
`loadrakefile’ usr_lib/ruby/siteruby/1.8/rake.rb:1900:in
`run’ _usr_bin/rake:8
prefix usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/activerecord/validations.rb:363:
warning: `’ interpreted as argument
prefix usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:224:
warning: instance variable @ignore_newmethods not
initialized usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:224:
warning: instance variable @ignore_newmethods not
initialized usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:
warning: method redefined; discarding old
allowconcurrency= usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:456:
warning: method redefined; discarding old
removecolumn usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/oracleadapter.rb:119:
warning: (…) interpreted as grouped
expression usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/request.rb:171:
warning: method redefined; discarding old
relative_urlroot _usr_lib/ruby/1.8/cgi/session/pstore.rb:17: warning:
method redefined; discarding old
[]= usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_datafix.rb:57:
warning: ambiguous first argument; put parentheses or even
spaces usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_data_fix.rb:8:
warning: method redefined; discarding old
initializequery usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session/active_recordstore.rb:129:
warning: private
attribute? usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session/active_recordstore.rb:179:
warning: method redefined; discarding old
connection usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototype_helper.rb:641:
warning: ambiguous first argument; put parentheses or even
spaces/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototypehelper.rb:874:
warning: `*’ interpreted as argument
prefix usr_lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_mailer/vendor/tmail/facade.rb:486:
warning: method redefined; discarding old
createreply usr_lib/ruby/gems/1.8/gems/actionwebservice-1.1.6/lib/action_web_service/protocol/xmlrpcprotocol.rb:6:
warning: discarding old
message _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:581:
warning: method redefined; discarding old
[]= _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:590:
warning: method redefined; discarding old
[] _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:595:
warning: method redefined; discarding old
keys usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:600:
warning: method redefined; discarding old
findpair _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:607:
warning: method redefined; discarding old
[]= _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:611:
warning: method redefined; discarding old
[] usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:615:
warning: method redefined; discarding old methodmissing Rails Error:
Unable to access log file. Please ensure
that _home_shanghai/Desktop/Download/parlement-0.9/config/../log/development.log
exists and is chmod 0666. The log level has been raised to WARN and the
output directed to STDERR until the problem is
fixed. usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:483:
warning: instance variable @after_initializeblock not initialized
Warning: $KCODE is NONE. rake aborted! no such file to load -
shanghai@localhost:~/Desktop/Download/parlement-0.9$ ruby
lib/data_import.rb Rails Error: Unable to access log file. Please
ensure that config/../log/development.log exists and is chmod 0666. The
log level has been raised to WARN and the output directed to STDERR
until the problem is fixed. Loading: parleR Time subject: parleR
(created_on: Sun Oct 30 23:10:48 CET
2005) usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log’: PGError: ERROR: la colonna “elts_count” non esiste
(ActiveRecord::StatementInvalid) : UPDATE elts SET elts_count =
eltscount + 1 WHERE (id = ‘ROOT’)
from usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/postgresqladapter.rb:148:in
`execute’
from usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/postgresqladapter.rb:152:in
`update’
from usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:454:in
`updateall’
from usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:486:in
`incrementcounter’
from usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/activerecord/callbacks.rb:346:in
`callback’
from usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/activerecord/callbacks.rb:346:in
`callback’
from usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/activerecord/callbacks.rb:341:in
`callback’
from usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:266:in
`create_without_timestamps’ … 11 levels… from
lib/data_import.rb:44:in `inputFile’ from lib/data_import.rb:13:in
`inputDir’ from lib/data_import.rb:11:in `inputDir’ from
lib/dataimport.rb:49
shanghai@localhost:~/Desktop/Download/parlement-0.9$
ruby ./script/server => Booting WEBrick…
Rails Error: Unable to access log file. Please ensure that
script/../config/../log/development.log exists and is chmod 0666. The
log level has been raised to WARN and the output directed to STDERR
until the problem is fixed. => Rails application started on
http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with —help for
options [2006-10-26 01:29:41] INFO WEBrick 1.3.1 [2006-10-26 01:29:41]
INFO ruby 1.8.4 (2005-12-24) [i686-linux] [2006-10-26 01:29:41] INFO
WEBrick::HTTPServer#start: pid=4907 port=3000 127.0.0.1 – -
[26/Oct/2006:01:29:51 CEST] “GET _ HTTP_1.1” 301 99
Apparently nothing changes, same error :|
Unfortunately I can’t give you remote access soon because I am behind a
proprietary firewall with NAT (this is still a local install)
impossible to reconfigure at the moment, but I’ll come to chat with you
as soon as possible, much probably I’ll try friday afternoon.
I hope the full logfile can help you to improve the code by adding
missing log/development.log for example or by fixing the warnings if
you can understand them (I still can’t =] ).
In my spare time I’ll continue studying ruby, hoping to be more
helpful in the next future.
See you soon!
Dario-Shanghai
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
+1
New discussion
Answer
OK, I think I know why. The 0.9 release was not really well packaged.
Do you have subversion on your machine? If you have you can get the current code and try it. I have tried myself on a fresh machine, and it works! ;)
Here is the line which will create a “parlement” directory: svn checkout svn://rubyforge.org/var/svn/parlement
What is your OS?
Sincerely!
echarp
http://rubyforge.org/cgi-bin/viewvc.cgi/trunk/README?root=parlement&view=markup
+1
New discussion
Answer
+1
-1