Problem starting Panda

2 views
Skip to first unread message

Alastair

unread,
Apr 2, 2009, 7:10:19 AM4/2/09
to Panda
Hello

I'm setting up Pandastream on a Centos VPS. I'm sure that all
dependencies are installed but I am getting an error when I start
merb:
[" ~ Parent pid: 22382\n"]/usr/lib/ruby/gems/1.9.1/gems/merb-
core-1.0.11/lib/merb-core/controller/merb_controller.rb:479:in
`method_added': You tried to define form on Videos but it was already
defined on Merb::Controller. If you meant to override a core method,
use override! (Merb::ReservedError)

Do you have any pointers on what I may have done wrong. I assume there
is a problem with some part of the process where is install Ruby /
Gems / Ruby dependencies?


Full output from the run:

[root@video panda]# merb -i
/usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-core/dispatch/
router/behavior.rb:18: warning: undefining `object_id' may cause
serious problem
/usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-core/dispatch/
router/behavior.rb:18: warning: undefining `__send__' may cause
serious problem
Loading init file from /usr/local/www/panda/config/init.rb
Loading /usr/local/www/panda/config/environments/development.rb
[" ~ Parent pid: 22382\n"]/usr/lib/ruby/gems/1.9.1/gems/merb-
core-1.0.11/lib/merb-core/controller/merb_controller.rb:479:in
`method_added': You tried to define form on Videos but it was already
defined on Merb::Controller. If you meant to override a core method,
use override! (Merb::ReservedError)
from /usr/local/www/panda/app/controllers/videos.rb:70:in
`<class:Videos>'
from /usr/local/www/panda/app/controllers/videos.rb:1:in `<top
(required)>'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `block in require'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/bootloader.rb:865:in `load_file'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/bootloader.rb:899:in `block (2 levels) in load_classes'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/bootloader.rb:897:in `each'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/bootloader.rb:897:in `block in load_classes'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/bootloader.rb:896:in `each'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/bootloader.rb:896:in `load_classes'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/bootloader.rb:643:in `block in run'
from /usr/lib/ruby/gems/1.9.1/gems/extlib-0.9.11/lib/extlib/
dictionary.rb:268:in `block in each'
from /usr/lib/ruby/gems/1.9.1/gems/extlib-0.9.11/lib/extlib/
dictionary.rb:268:in `each'
from /usr/lib/ruby/gems/1.9.1/gems/extlib-0.9.11/lib/extlib/
dictionary.rb:268:in `each'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/bootloader.rb:641:in `run'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/bootloader.rb:99:in `run'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/server.rb:172:in `bootup'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core/server.rb:42:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/lib/merb-
core.rb:170:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.0.11/bin/merb:
11:in `<top (required)>'
from /usr/bin/merb:19:in `load'
from /usr/bin/merb:19:in `<main>'

Thankyou
Alastair

Nicolás Orellana F.

unread,
Apr 2, 2009, 10:27:02 AM4/2/09
to panda...@googlegroups.com
Are you using the panda AMI?

2009/4/2 Alastair <a...@aj8.org>



--
Nico Orellana
Orelworks Ltda, orelworks.com (mi empresa)
Webprendedor.com, (mi blog)
norellana.com (personal, rails y otras cosas)
skype: norellanaf (no me conecto mucho, avisame)
+569-78451454 (funciona bien con urgencias)

Alastair Battrick

unread,
Apr 2, 2009, 10:38:47 AM4/2/09
to panda...@googlegroups.com
Nicolás Orellana F. wrote:
> Are you using the panda AMI?

I am not. I have a Centos based VPS as we don't want to go with Amazon
AWS at the moment
--
Alastair Battrick
http://www.aj8.org

Damien Tanner

unread,
Apr 2, 2009, 11:09:12 AM4/2/09
to panda...@googlegroups.com
Alastair,

It'd be good to see a copy of your merb_controller.rb file. As far as
I see there is no form method defined in Merb 1.0.11. However, I
haven't tested Panda on ruby 1.9...

Kind Regards,
Damien Tanner
Co-Founder and Director, New Bamboo

Creating fresh, flexible and fast-growing web applications is our passion.

+44 (0)78 6312 7999
+44 (0)20 7099 7486
http://www.new-bamboo.co.uk

Alastair Battrick

unread,
Apr 2, 2009, 3:10:57 PM4/2/09
to panda...@googlegroups.com
Hello Damien

I have posted that here
http://pastebin.com/m719cd94c

I had installed Ruby 1.8 to start with, but I was getting the same
error, which I thought may be solved with upgrading Ruby.

Cheers
Al

Damien Tanner

unread,
Apr 2, 2009, 4:32:56 PM4/2/09
to panda...@googlegroups.com
hrm okay, can you also post your `gem list`?

Kind Regards,
Damien Tanner
Co-Founder and Director, New Bamboo

Creating fresh, flexible and fast-growing web applications is our passion.

+44 (0)78 6312 7999
+44 (0)20 7099 7486
http://www.new-bamboo.co.uk



Alastair Battrick

unread,
Apr 2, 2009, 4:36:02 PM4/2/09
to panda...@googlegroups.com
Here you go:

[root@video ~]# gem list

*** LOCAL GEMS ***

abstract (1.0.0)
activesupport (2.3.2)
addressable (2.0.2)
amazon_sdb (0.6.7)
aws-s3 (0.5.1)
blah (1.0.0)
builder (2.1.2)
columnize (0.3.0)
data_objects (0.9.11)
diff-lcs (1.1.2)
dm-aggregates (0.9.11)
dm-core (0.9.11)
dm-migrations (0.9.11)
dm-serializer (0.9.11)
dm-sweatshop (0.9.11)
dm-timestamps (0.9.11)
dm-types (0.9.11)
dm-validations (0.9.11)
do_sqlite3 (0.9.11)
echoe (3.1.1)
erubis (2.6.4)
extlib (0.9.11)
flvtool2 (1.0.6)
god (0.7.12)
haml (2.0.9)
highline (1.5.0)
hoe (1.12.1)
hpricot (0.8)
json_pure (1.1.3)
macaddr (1.0.0)
mailfactory (1.4.0)
merb (1.0.11)
merb-action-args (1.0.11)
merb-assets (1.0.11)
merb-auth (1.0.11)
merb-auth-core (1.0.11)
merb-auth-more (1.0.11)
merb-auth-slice-password (1.0.11)
merb-cache (1.0.11)
merb-core (1.0.11)
merb-exceptions (1.0.11)
merb-gen (1.0.11)
merb-haml (1.0.11)
merb-helpers (1.0.11)
merb-mailer (1.0.11)
merb-more (1.0.11)
merb-param-protection (1.0.11)
merb-slices (1.0.11)
merb_datamapper (1.0.11)
merb_helpers (0.9.7)
mime-types (1.16)
ParseTree (3.0.3)
rack (0.9.1)
rake (0.8.4)
randexp (0.1.4)
rspec (1.2.2)
ruby2ruby (1.2.2)
rubyforge (1.0.3)
RubyInline (3.8.1)
rvideo (0.9.6)
sexp_processor (3.0.1)
templater (0.5.0)
thor (0.9.9)
uuid (2.0.1)
xml-simple (1.0.12)
ZenTest (4.0.0)

Albert Llop

unread,
Apr 2, 2009, 5:14:33 PM4/2/09
to panda...@googlegroups.com
I have had problems running panda locally for test purposes because of merb version. My knowledge of Merb is very reduced, si I didn't know how to use a specific version, therefore I went the easy way, uninstalled every merb gem and installed exactly the same versions as in the AMI (0.9.7 stuff if i remember correctly). Maybe that helps. It was something like sudo gem install merb --version 0.9.7 but maybe I'm wrong with the syntax.

Good luck
 


2009/4/2 Alastair Battrick <a...@aj8.org>

Alastair Battrick

unread,
Apr 3, 2009, 6:52:04 AM4/3/09
to panda...@googlegroups.com
Albert Llop wrote:
> I have had problems running panda locally for test purposes because of
> merb version. My knowledge of Merb is very reduced, si I didn't know how
> to use a specific version, therefore I went the easy way, uninstalled
> every merb gem and installed exactly the same versions as in the AMI
> (0.9.7 stuff if i remember correctly). Maybe that helps. It was
> something like sudo gem install merb --version 0.9.7 but maybe I'm wrong
> with the syntax.

If that is correct, Damien can you tell me if the version on the AMI are
likely to be updated in the near future?

Alastair Battrick

unread,
Apr 6, 2009, 10:56:34 AM4/6/09
to panda...@googlegroups.com
Albert Llop wrote:
> I have had problems running panda locally for test purposes because of
> merb version. My knowledge of Merb is very reduced, si I didn't know how
> to use a specific version, therefore I went the easy way, uninstalled
> every merb gem and installed exactly the same versions as in the AMI
> (0.9.7 stuff if i remember correctly). Maybe that helps. It was
> something like sudo gem install merb --version 0.9.7 but maybe I'm wrong
> with the syntax.

Hello Albert. Thankyou for that. Downgrading my Ruby to 1.8 and merb to
0.9.7 has sorted that problem out.


Unfortunately, I am now up against another issue, if any of you are able
to assist? Is this because there is a problem with simpledb-dev ?

[root@video panda]# merb -i

~ Loaded DEVELOPMENT Environment...
~ loading gem 'merb-assets' ...
~ loading gem 'merb-mailer' ...
~ loading gem 'merb_helpers' ...
~ loading gem 'uuid' ...
~ loading gem 'amazon_sdb' ...
~ loading gem 'activesupport' ...
~ loading gem 'rvideo' ...
~ Compiling routes...
./config/aws.rb:1: warning: already initialized constant BASE_PATH
127.0.0.1:57534 - - [06/Apr/2009 15:38:54] "HTTP/1.1 GET /" - 400 Bad
Request
~ PANDA WARNING: Profile simple db domain does not exist. Please check
that you have created all the required domains (see the getting started
guide).
~ Starting Merb server listening at 0.0.0.0:4000
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- readline (MissingSourceFile)
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
`require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
`require'
from /usr/lib/ruby/1.8/irb/completion.rb:10
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
`require'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
`require'
from
/usr/lib/ruby/gems/1.8/gems/merb-core-0.9.7/lib/merb-core/rack/adapter/irb.rb:102:in
`start'
from
/usr/lib/ruby/gems/1.8/gems/merb-core-0.9.7/lib/merb-core/server.rb:54:in
`start'
from
/usr/lib/ruby/gems/1.8/gems/merb-core-0.9.7/lib/merb-core.rb:108:in `start'
from /usr/lib/ruby/gems/1.8/gems/merb-core-0.9.7/bin/merb:11


from /usr/bin/merb:19:in `load'
from /usr/bin/merb:19

Damien Tanner

unread,
Apr 6, 2009, 11:13:33 AM4/6/09
to panda...@googlegroups.com
I would suggest giving the Panda 1.3 (db branch) a go. We're been
working on a new AMI to go with it. You can find out all about it
here: http://gist.github.com/78639

If you're interested in the setup of the server (Alastair), I've
documented to setup here: http://gist.github.com/90791

There is also an updated local install guide: http://gist.github.com/90792

Kind Regards,
Damien Tanner
Co-Founder and Director, New Bamboo

Creating fresh, flexible and fast-growing web applications is our passion.

+44 (0)78 6312 7999
+44 (0)20 7099 7486
http://www.new-bamboo.co.uk



Alastair Battrick

unread,
Apr 7, 2009, 4:27:00 AM4/7/09
to panda...@googlegroups.com
Hello Damien

I assume you mean the dm branch? I have proceeded with that, but I'm
still getting errors. Do you have the SQL file to setup the MySQL
databases please, so that that part is working right at least

Cheers
Al

Damien Tanner wrote:

Damien Tanner

unread,
Apr 20, 2009, 12:45:23 PM4/20/09
to panda...@googlegroups.com
Alastair,

Have you checked the versions of apps and gems against those used in
my server setup guide?

Kind Regards,
Damien Tanner
Co-Founder and Director, New Bamboo

Creating fresh, flexible and fast-growing web applications is our passion.

+44 (0)78 6312 7999
+44 (0)20 7099 7486
http://www.new-bamboo.co.uk



Reply all
Reply to author
Forward
0 new messages