Open v1ct0r-LH opened 10 years ago
That should be a quick fix " /usr/share/dict/words" is a dictionary file that's typically present on unix systems. Are you running Linux? OS X?
On my current ubuntu system I see this:
brighton36@desktop /tmp> ls -la /usr/share/dict/words
lrwxrwxrwx 1 root root 30 Jun 27 2013 /usr/share/dict/words -> /etc/dictionaries-common/words
brighton36@desktop /tmp> dpkg -S /usr/share/dict/words
diversion by dictionaries-common from: /usr/share/dict/words
diversion by dictionaries-common to: /usr/share/dict/words.pre-dictionaries-common
dictionaries-common, wamerican: /usr/share/dict/words
Thanks for your help. I am running Debian and curiously i have no usr/share/dict/words file in my system, so i have copy this file from a clean install of ubuntu. but now i have a new error :
rake db:seed --trace
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
Creating Category "Fashion"
Creating Category "Motors"
Creating Category "Computers & Gaming"
Creating Category "Electronics"
Creating Category "Collectibles & Art"
Creating Category "Home & Decor"
Creating Category "Entertainment"
Creating Category "Miscellaneous"
Creating Category "Services"
Creating Users
Creating Shipping Policies
Creating Return Policies...
Creating 200 expired items...........................................................................................................rake aborted!
Validation failed: Title contains invalid characters
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/validations.rb:56:in `save!'
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/transactions.rb:264:in `block in save!'
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/transactions.rb:208:in `transaction'
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/transactions.rb:264:in `save!'
/root/CoinPost/spec/factories/item.rb:134:in `block in create_seed_items'
/root/CoinPost/spec/factories/item.rb:101:in `upto'
/root/CoinPost/spec/factories/item.rb:101:in `create_seed_items'
/root/CoinPost/db/seeds.rb:45:in `block in <top (required)>'
/var/lib/gems/1.9.1/gems/delorean-2.1.0/lib/flux_capacitor.rb:7:in `time_travel_to'
/root/CoinPost/db/seeds.rb:43:in `<top (required)>'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `load'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `block in load'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `load'
/var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:525:in `load_seed'
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => db:seed
I'm pretty sure you just have a bad character (or more) in your dictionary. The seed was assuming a us-english dictionary, perhaps you're using a non-us dictionary? What does "sudo dpkg -l | grep dict" show?
dpkg -l | grep "dict" returns nothing normal since I added the dictionary manually
Indeed, I use a british-us dictionary and curiously it contains non-English characters such as "é" or "â" so I delete the dictionary and have pasted 10 words containing no special character, I still have an error:
rake db:seed --trace
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
rake aborted!
/root/CoinPost/db/seeds.rb:2: syntax error, unexpected ',', expecting $end
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `load'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `block in load'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
/var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:245:in `load'
/var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:525:in `load_seed'
/var/lib/gems/1.9.1/gems/activerecord-3.2.14/lib/active_record/railties/databases.rake:347:in `block (2 levels) in <top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => db:seed
My dictionary contain only :
A
a
cdcd
vdfgdg
wgwd
azertyuoimjwdg
xcwldkm
mdlskjfsdjfksjm
uzyuy
bgtyiposkff
Indeed you are getting an error, but this one is different than the last! What does line 2 of the '/root/CoinPost/db/seeds.rb' file look like? (BTW - you probably shouldn't be running as root....)
Yes it is not the same error the line 2 of /root/CoinPost/db/seeds.rb look like :
['Fashion', %w(Hats Shirts Pants Shoes Dresses Winter\ Apparrel Sports\ Apparrel Accessories) ],
The line 1 is a blank line
I know it is better to not running as root but it is just a quick and dirty deploying virtual machine for testing ;)
What version of ruby are you running? (ruby -v should tell you...)
I am running ruby 1.9.3p194 and rails 4.0.0 maybe my version of rails is too recent.
Same problem here
That version of rails is definately suspect, as the project is on the 3.2.x codebase. I've got a big rollout of code coming up here soon (which uses coinbase for the exchange instead of gox) let's see if this new release fixes the issue?
coininstant.net has a repository version of coin post with an auction and escrow. We are a work in progress, Check out source at:https://github.com/coininstant/bitcoin-bazaar We also use coinbase instead of Mt.Gox.
Can we instead use google's reCaptcha?
If you want to code it - I'm fine with that!
I am new at ruby code so I did some googling. https://gurudathbn.wordpress.com/2015/01/22/google-recaptcha-with-ruby-on-rails-integration/
In the registration form, i have a blank screen in place of the captcha
the db:seed command fail :