Need help? Just ask! (Also see Contact Us page)
Hi, New to both wagn and rails. Trying to get set up on Leopard without much success. Any other install instructions then what's avail on your website. I got rails 2.3.2 running against mysql, the database create successfully, bring up http://localhost:3000 and just get what I believe to be a rails page. Don't know how to get specifically to wagn.
--Ross (Not signed in).....Fri May 01 10:13:07 -0700 2009
I don't think things are working in Rails 2.3.2 yet. We'll try to get better clarity about versions by 1.0.
Did you run ./script/server from the root wagn directory?
--Ethan McCutchen.....Fri May 01 10:44:53 -0700 2009
How to turn off all the debug/sql/etc and speed this guy up?
--Ross J. McCarthy.....Fri May 01 16:45:32 -0700 2009
sounds like you're running rails in development mode, and you want to run in production. try ./script/server -e production
--Lewis Hoffman.....Sun May 03 21:05:01 -0700 2009
Getting this error:
DevUbuntu ~/public_html/wikis/wagn: rake RAILS_ENV=production asset:packager:build_all
(in /home/jeff/public_html/wikis/wagn)
rake aborted!
Don't know how to build task 'asset:packager:build_all'
(See full trace by running task with --trace)
DevUbuntu ~/public_html/wikis/wagn: rake -T asset
(in /home/jeff/public_html/wikis/wagn)
rake doc:plugins:asset_packager # Generate documentation for the asset_packager plugin
DevUbuntu ~/public_html/wikis/wagn: rake RAILS_ENV=production wagn:create
(in /home/jeff/public_html/wikis/wagn)
rake aborted!
Error loading cardtypes/file.rb: uninitialized constant Card::File::CardFile
(See full trace by running task with --trace)
--Jeff Schoolcraft (Not signed in).....Sun May 17 04:11:21 -0700 2009
I get a bunch of errors running the rake create but I am familiar with PostgreSQL and did:
createdb wagn_development
but I still have problems when I run:
rake wagn:create
I get:
(in /home/rails/wagn-0.13.0)
Couldn't drop wagn_development : #
wagn_development already exists
-- create_table("card_files", {:force=>true})
rake aborted!
undefined method `quote_ident' for PGconn:Class
Has anyone had WagN working with PostgreSQL?
Thanks,
Phil.
--Anonymous (Not signed in).....Tue May 26 03:21:48 -0700 2009
Getting this error on a Windows box (I know, but it's a work box):
RuntimeError (Error loading cardtypes/file.rb: undefined method `has_attachment' for # ):
/app/models/card.rb:46
/app/models/card.rb:41:in `each'
/app/models/card.rb:41
...
--Noah Stern (Not signed in).....Thu Jun 11 08:20:27 -0700 2009
If anyone else runs into the issues Jeff Schoolcraft did, make sure you've done the git submodule update on your server.
--Mike Gunderloy (Not signed in).....Thu Jun 11 15:19:18 -0700 2009
Same as Noah, but on an Ubuntu box:
RuntimeError (Error loading cardtypes/file.rb: undefined method `has_attachment' for # ):
/app/models/card.rb:46
/app/models/card.rb:41:in `each'
The attachment_fu plugin directory is empty. This should do the trick:
./script/plugin install --force http://svn.techno-weenie.net/projects/plugins/attachment_fu/
But then another error occurs. Upon closer inspection, all plugin dirs appear to be empty!
--Onno (Not signed in).....Sun Jun 14 04:10:27 -0700 2009
Okay, upon even closer inspection, only asset_packager and attachment_fu are empty. Reinstall both (using --force) and you're good to go!
--Onno (Not signed in).....Sun Jun 14 04:15:41 -0700 2009
Any clarification on when Wagn will run on newer versions of Rails? I'm hoping to run in a hosted environment, but I can't just install a different version of rails, since it isn't my server. I'd love to get in on it, but have to wait until we can use at least Rails 2.3.2.
--Sam (Not signed in).....Thu Jul 02 15:01:58 -0700 2009
We're expecting it to run on rails 2.3.x by the next release. Traditionally we've lagged a little behind on updating to the latest rails versions, but we're getting quicker :)
--Ethan McCutchen.....Fri Jul 03 08:41:34 -0700 2009
@Sam In the latest packages on rubyforge we include rails 2.2 in /vendor, you could check if that will work on your shared host, which wouldn't require you to install rails 2.2 on the system.
--Lewis Hoffman.....Fri Jul 03 12:28:14 -0700 2009
I recently did a local install via git and had to install the rspec gem as rake bombed without it. Other than this small issue I got Wagn to install on kubuntu which doesn't have the best ruby/rails setup
--bserviss.....Mon Jul 06 16:39:04 -0700 2009
I'm trying to run wagn on brightbox.net - I got it running on port 3000 ok when I start it up with script/server - but I want to run with virtualhosts on apache. so I have a mongrel cluster running on 2 ports and I have configured the virtualhosts. When it fires up I would expect it to be visible on my wagn.apacheurl and even when I change the url in wag.rb to my apache url (with or without specifying port 80) I still get a page not found. I think this is something to do with how the url works in wagn.rb - also the ports my mongrel cluster runs on are not accessible from the front of the server - they are closed for security so only apache on port 80 is open. Any ideas where I'm going wrong?
--Kingsley (Not signed in).....Sat Jul 11 03:01:20 -0700 2009
Ah I got it working - I had to add a socket line into database.yml for the mysqld.sock and also I had a typo in the base url in wagn.rb
--Kingsley (Not signed in).....Sat Jul 11 03:19:03 -0700 2009
It might be useful for others to note that they way to install the asset_packager plugin is to:
./script/plugin install --force git://github.com/sbecker/asset_packager.git
--Dylan McNamee.....Wed Jul 29 15:21:00 -0700 2009
To get wagn running on a different port, I found that I had to edit the wagn.rb file's port, as well as pass the port on the command line:
./script/server -p 8000
This, along with using many of the hints above, let me get wagn running on the vanilla "Ruby on Rails" JumpBox.
--Dylan McNamee.....Wed Jul 29 15:26:32 -0700 2009
installation instructions don't work or are missing a file
after git clone && cd wagn
rake gems:install
no such file to load -- spec/rake/spectask
rake wagn:create
no such file to load -- spec/rake/spectask
don't know what is going on
--Anonymous (Not signed in).....Mon Jul 27 22:29:32 -0700 2009
Regarding the 'spec/rake/spectask' errors, install the 'rspec' and 'rspec-rails' gems and it should go away.
--Shane (Not signed in).....Thu Jul 30 12:04:02 -0700 2009
For some reason, I can't get the image and file uploads to work correctly in either my development or my production instance. I've gone back through everything above, but it still doesn't want to work. It fails silently in the interface, and I get the following sorts of errors in my log file:
ActionController::UnknownAction (No action responded to 0000. Actions: after, auto_link, before, build_object, card, card_path, card_title_span, card_url, cards, collection_url_prefix, concat, connect_icon, connected_icon, connector_function, context, create, current_cycle, current_model, current_model_name, current_object, current_objects, cycle, destroy, discard_locations_for, edit, edit_object_path, edit_object_url, ensure_parent_exists, exception_status, excerpt, flexlink, highlight, index, instance_variable_name, link_to_connector_update, link_to_page, load_location, load_object, load_objects, load_parent_object, location_history, name_in_context, namespaces, nested_object_path, nested_object_url, new, new_object_path, new_object_url, notice, notice=, object_parameters, object_path, object_url, objects_path, objects_url, page_icon, parent?, parent_class_name, parent_model, parent_name, parent_names, parent_object, parent_path, parent_url, pieces_icon, plural?, plural_action?, pluralize, polymorphic_parent?, polymorphic_parent_name, previous_location, render_404, render_500, render_card_errors, render_exception, render_fast_404, requesting_ajax?, requesting_javascript?, rescue_action, reset_cycle, response_for, sanitize, sanitize_css, save_failed!, save_location, save_succeeded!, save_succeeded?, scope, set_default_flash, set_default_redirect, show, simple_format, singular?, singular_action?, slot, slot=, strip_links, strip_tags, truncate, update, url_for_card, url_for_page, url_helper_prefix, and word_wrap):
After this it stack traces through the filters and into the app server code. I get similar errors in both development and production and using both mongrel and passenger. Any ideas? Thanks,
--Anonymous (Not signed in).....Mon Aug 03 12:14:49 -0700 2009
Getting this error:
RuntimeError (Error loading cardtypes/file.rb: undefined method `has_attachment' for # ):
app/models/card.rb:48
app/models/card.rb:43:in `each'
app/models/card.rb:43
app/controllers/application_controller.rb:56:in `per_request_setup'
Processing ApplicationController#index (for 192.168.1.101 at 2009-08-16 23:37:55) [GET]
LoadError (Expected E:/ror_project/wagn/app/models/card/base.rb to define Card::Base):
app/models/card.rb:31
lib/exception_system.rb:46:in `exception_status'
lib/exception_system.rb:5:in `rescue_action'
/!\ FAILSAFE /!\ Sun Aug 16 23:37:55 +0800 2009
Status: 500 Internal Server Error
Expected E:/ror_project/wagn/app/models/card/base.rb to define Card::Base
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:426:in `load_missing_constant'
...
--liang (Not signed in).....Sun Aug 16 08:43:14 -0700 2009
@all the rspec dependency should be fixed in the latest release.
@liang are you sure the submodule step worked correctly?
git submodule update --init
check to see that vendor/plugins/attachment_fu holds the plugin files.
@Anonymous file/image error: check permissions. the ruby process needs write access to the directory where the files go-- requests for missing images could cause the error you're seeing.
--Lewis Hoffman.....Mon Aug 17 16:10:44 -0700 2009
It worked for me, thanks!
--liang (Not signed in).....Wed Aug 19 05:24:48 -0700 2009
Lewis, thanks for the suggestion. After digging further, it looks like I may be missing something or doing something wrong. The images, which aren't showing up in the site, are being stored in the public/card_images folder. However, the html that displays from the view adds an _medium to the filename. For example, if I upload foo.jpg, then the view tries to display foo_medium.jpg. My guess is that wagn is using something like ImageMagik to generate thumbnails, but I have ImageMagik/Rmagik installed, and I didn't see any specific requirements in the installation notes for anything different. Do you have any idea as to what I'm missing?
--Anonymous (Not signed in).....Wed Aug 19 09:31:57 -0700 2009
@Anonymous - sounds like you're on the right track- Wagn does depend on image thumbnailing, we use ImageScience on our servers but it should work with any of the three listed here: http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu
--Lewis Hoffman.....Thu Aug 20 17:31:12 -0700 2009
I figured it out, and it turns out that there is a weird library issue with RMagick/ImageMagick on RHEL 5. Once I fixed that, image upload worked like a charm.
--Anonymous (Not signed in).....Tue Aug 25 13:07:23 -0700 2009
C:\wagn>ruby script/plugin install --force http://svn.techno-weenie.net/projects/plugins/attachment_fu
Plugin not found: ["http://svn.techno-weenie.net/projects/plugins/attachment_fu"]
But the url is good
--cw (Not signed in).....Thu Aug 27 22:07:16 -0700 2009
deleted the existing vendor/plugins/attachment_fu empty file and the install was successful....
--cw (Not signed in).....Fri Aug 28 07:12:27 -0700 2009
For those getting stuck while trying to install it on OS X, with the message "Can't connect to local MySQL server through socket '/tmp/mysql.sock'", try to replace "localhost" by "127.0.0.1" in database.yml : it did the trick for me :-)
--dieudo.....Mon Sep 07 14:00:11 -0700 2009
How does someone turn on Ruby and/or Script cards? (see Missing Internal Type Card Behavior)
--John Abbe.....Sun Sep 27 11:24:38 -0700 2009
Shouldn't we maybe have a separate page for more in-depth coverage of running wagn servers? I'm wanting to know what is the best practice for production servers, and going through stuff and not knowing the where the baseline is for this.
For example, comments in .htaccess indicate I should have a full path to dispatcher, and it isn't clear whether this is a support script, or something I have to make. dispatch.cgi is linked in with a rel path, but other comments suggest I want fcgi.
I found some docs with google, and saw I might want:
FastCgiServer /var/web/typo/public/dispatch.fcgi -idle-timeout 120 \
-initial-env RAILS_ENV=production -processes 2
In my apache config.
--Gerry Gleason.....Mon Sep 28 06:53:40 -0700 2009
Yes, that sounds right to me. We may not have much time for building out that page this week, but if you'd like to start framing it out, posing some key questions, etc, that would be awesome.
--Ethan McCutchen.....Mon Sep 28 08:18:03 -0700 2009
I´m trying to install this on postgres in Ubuntu but I´m unfamiliar with postgres.
rake wagn:create yields:
Couldn't drop wagn_development : #/<Mysql::Error: Acess denied for user ´user´@´localhost´ (using password: YES)/>
--Brandon Quinn.....Wed Oct 21 21:34:01 -0700 2009
Hey Brandon. Have a look at config/database.yml. Does the login information look right for your database?
--Ethan McCutchen.....Wed Oct 21 21:50:29 -0700 2009
Even after spending forever in database.yml I didn't realize my mistake until your response. My adapter was set to mysql instead of postgresql. After installing a couple more prereq's I got my Wagn running.
Thanks!
--Brandon Quinn.....Thu Oct 22 16:27:38 -0700 2009
I can't get the ./script/server -d switch to work. It says it's starting, but my browser cannot find the page. If I don't use the -d switch everything works great. Any suggestions?
--ross (Not signed in).....Mon Oct 26 09:36:53 -0700 2009
I just checked out wagn today. When I run rake db:migrate, I got error below, please advise what I should do to work around this.
no such file to load -- lib/schema_version_jump_hack
Thank you.
--gcao.....Wed Nov 25 12:49:09 -0800 2009
Never mind. I should have run 'rake wagn:create' instead.
--gcao.....Wed Nov 25 12:53:24 -0800 2009
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-12-02 08:01:40] INFO WEBrick 1.3.1
[2009-12-02 08:01:40] INFO ruby 1.8.7 (2009-06-12) [i686-linux]
[2009-12-02 08:01:45] INFO WEBrick::HTTPServer#start: pid=2371 port=3000
how to change the 0.0.0. to 127.0.0.1?
i already changed the wagn.rb base url to 127.0.0.1:3000
--neonlinux (Not signed in).....Tue Dec 01 16:04:24 -0800 2009
this is the error msg ...
Application error
Oh, Man. You found a hitch in the Wagn
now i already noticed above that this Rails 2.3.5 might be too new...
is this correct?
--neonlinux (Not signed in).....Tue Dec 01 16:11:10 -0800 2009
What does the prototype.js package do? I had to move in below jquery for captcha to work on one of my servers. It was throwing a security error.
--Gerry Gleason.....Sun Dec 06 13:56:38 -0800 2009
I just checked out wagn today. When I run rake db:migrate, I got error below, please advise what I should do to work around this.
http://otimizacao-de-websites.com
http://desentupidorasanehidro.com.br
http://www.graficavendahoje.com.br
no such file to load -- lib/schema_version_jump_hack
http://asacompanhantessp.com.br
Thank you.
--Danilo (Not signed in).....Thu Dec 17 05:09:13 -0800 2009
@Danilo, I think this means your schema didn't get initialized properly. try running
rake wagn:create again and watch closely for errors there.
--Lewis Hoffman.....Thu Dec 17 09:25:22 -0800 2009
er, it's my first time trying out ruby on rails on my ubuntu machine
but i think i did fine with the install of everything
but now after i run srcipt/server and it seems to be starting, when i point my browser to /wagn/public I get this message:
Application error
Rails application failed to start properly
help please?
--Lucy Perry.....Mon Dec 21 12:15:11 -0800 2009
Lucy can you tell us any more about the error message? does it show up in the console where you started the server? does it show up in the error log /log/development.log ? are you pointing to localhost:3000?
--Lewis Hoffman.....Mon Dec 21 12:41:44 -0800 2009
Hi Lewis, thanks, the last thing in development.log is
SHOW FIELDS FROM 'cards'
as for pointing to localhost:3000, my machine is apparently not set up so that 3000 does anything in this case, but i do have wagn installed under my localhost web directory with all my other (php-based) web apps. Sorry if I've misunderstood something basic here
My apache log says:
[Mon Dec 21 21:39:32 2009] [error] [client 127.0.0.1] /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in `method_missing': undefined method `env_table' for nil:NilClass (NoMethodError)
[Mon Dec 21 21:39:32 2009] [error] [client 127.0.0.1] \tfrom /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/cgi_process.rb:22:in `__send__'
[Mon Dec 21 21:39:32 2009] [error] [client 127.0.0.1] \tfrom /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi'
[Mon Dec 21 21:39:32 2009] [error] [client 127.0.0.1] \tfrom /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi'
[Mon Dec 21 21:39:32 2009] [error] [client 127.0.0.1] \tfrom /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:27:in `dispatch'
[Mon Dec 21 21:39:32 2009] [error] [client 127.0.0.1] \tfrom /var/www/public_html/wagn/public/dispatch.cgi:10
[Mon Dec 21 21:39:32 2009] [error] [client 127.0.0.1] Premature end of script headers: dispatch.cgi
I appreciate any guidance, and if I'm making some basic error in my setup maybe you can point me to the proper ruby on rails docs
Thanks
--Lucy Perry.....Mon Dec 21 12:54:18 -0800 2009
ok, now working on why localhost:3000 does not do anything, since when i start wagn server it definitely says it's
starting on http://0.0.0.0:3000
--Lucy Perry.....Mon Dec 21 13:26:47 -0800 2009
but i still think there is another problem as noted in the apache log above, and i've not been able to make any headway on that one at all
--Lucy Perry.....Mon Dec 21 13:27:53 -0800 2009
hello admin, I found your blog from yahoo and read a few of your other posts.They are awesome. Please keep it up!!
(copy xbox 360 games | wow gold guide | xbox 360 repair guide )
--Jeff888 (Not signed in).....Fri Dec 25 22:17:19 -0800 2009
Hi again, well my ruby-on-rails install is behaving better now and localhost:3000 does indeed bring up wagn app but now I have error messages in my browser, beginning with:
NoMethodError in Admin#setup
Showing app/views/builtin/_head.rhtml where line #20 raised:
undefined method `stylesheet_link_merged' for #
Any clues? Is this a wagn problem or a problem with my ROR setup? I can give you contents of dev log if you want. Last line is: Rendering rescues/layout (internal_server_error)
Thanks if you can help at all.
--Lucy Perry.....Tue Dec 29 02:50:16 -0800 2009
sorry for all the messages but I tried running
git submodule update --init
but all I get is a "usage" response from git:
Usage: /usr/bin/git-submodule [--quiet] [--cached] [add [-b branch]|status|init|update] [--] [ ...]
--Lucy Perry.....Tue Dec 29 03:10:46 -0800 2009
ok got it working now, had to manually install the plugins
--Lucy Perry.....Tue Dec 29 05:08:52 -0800 2009
@Lucy maybe try git submodule init ; git submodule update (ie. separately). Sorry I couldn't help more with those initial errors-- Glad you got it working!
--Lewis Hoffman.....Tue Dec 29 10:39:47 -0800 2009
can someone help me set this up on my Dreamhost account?
--bhhenry (Not signed in).....Wed Feb 24 18:42:51 -0800 2010
using the Bitnami Ruby stack on Mac OS 10.4 PPC:
http://bitnami.org/stack/rubystack
When I get to the step "rake gems:install" it says "running without hoptoad" then "gem install uuid", then stops with the message:
/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:232: warning: getc is obsolete; use STDIN.getc instead
It doesn't even toss me back to writing another command, it just stops blank, so I ctrl-c to abort it.
What's up? What can I do?
TIA ~ Patrick
--Patrick Gibbs.....Wed Mar 10 22:09:31 -0800 2010
When I do "gem install hoptoad_notifier" it replies "ERROR: While executing gem ... (RuntimeError) Marshal.load reentered at marshal_load"
I get the same errors whether I download from RubyForge or use Git. Perhaps this is a Bitnami error? Though I encountered similar difficulty with a TonidoPlug running Ubuntu back in August.
--Patrick Gibbs.....Wed Mar 10 22:18:34 -0800 2010
so, 1) it should be possible to run without hoptoad. at the moment you can have gems:install skip that one if you set the env variable RUN_CODE_RUN. you'll get the "running without hoptoad" message but that's fine. 2) is the error getc error coming from the UUID gem install? is that the thing that's hanging? I'd suggest install the uuid and json gems by hand and see if that goes ok. if so you may be able to just continue on to the next step in the install.
--Lewis Hoffman.....Thu Mar 11 18:36:42 -0800 2010
The same error comes when I do gem install uuid. I didn't try the set env thing.
I think it's a Bitnami error so I posted on their forum:
http://216.235.167.25/forums/forums/rubystack-jrubystack/topics/getc-is-obsolete-use-stdin-getc-instead
The error comes at line 232 in spec_fetcher.rb. Here are lines 231-238 of that file:
specs = begin
Marshal.load spec_dump
rescue ArgumentError
spec_dump = @fetcher.fetch_path spec_path
loaded = true
Marshal.load spec_dump
end
--Patrick Gibbs.....Thu Mar 11 18:54:08 -0800 2010
huh, that does seem like a problem with uuid gem on that platform. If it's a big pain to get that fixed, I think there is another library UUIDTools, you could try installing that and replace UUID.new.generate in the Wagn code with whatever the UUIDTools equivalent is. And if that works well we'd be happy to take a patch-- I have the sense UUIDTools maybe be slightly more commonly used-- so I'd be open to switching libraries, just not likely to get to that soon left to my own devices.
--Lewis Hoffman.....Fri Mar 12 09:53:09 -0800 2010

