installing redmine error - ruby-on-rails

I'm installing redmine and following instructions in their installation page.
when I run the command : bundle install --without development test
I receive this error : Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/usr/lib64/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /home1/twogupne (Errno::EACCES)
I'm on a bluehost server and I have noted that myhome directory is twohupne not twogupne (as written in the error )
any one can help ?

Perhaps you can try to modify your home's environment variable:
$ export HOME=/home1/twohupne
$ bundle install --without development test
If it doesn't work, have a look at bundle-config and bundle-install

Related

running Rails 5.1 console in production

I installed a Rails 5.1 app on a Ubuntu 14.04 server.
I have to run a rails console
so I changed directory to cd /opt/www/myapp/current
and entered the command:
rails c production
but then I get this error message:
The program 'rails' can be found in the following packages:
* ruby-railties-3.2
* ruby-railties-4.0
Try: sudo apt-get install
I tried to run the command with bundle:
bundle exec rails c production
but then I get this error message:
Undefined local variable or method `git_source' for Gemfile
from /opt/www/myapp/releases/20171017091250/Gemfile:3
I'm not sure what's going on.
Can someone help me run rails console on my production server?
Thanks a lot,
Anthony
Undefined local variable or method `git_source' for Gemfile
Or to save you visiting the link, try:
gem update bundler
git_source was added in bundler 1.6
found the issue, I needed to run the command
bundle exec rails c production
as the 'deploy' user

Issues updating Heroku to a newer version on Cloud9 IDE

I've been having trouble trying to update to the latest version of Heroku on Cloud9 as you can see here:
~/workspace/hello_app (master): $ heroku version
heroku-toolbelt/3.31.3 (x86_64-linux) ruby/2.1.5
You have no installed plugins.
WARNING: Toolbelt v3.37.6 update available.
But when I try to update it, this is what I got:
~/workspace/hello_app (master):$ heroku update
! To update this version of the Heroku client please use
! `apt-get install heroku-toolbelt`
Then I tried typing in 'apt-get install heroku-toolbelt' into my terminal and this was the result:
~/workspace/hello_app (master): $ apt-get install heroku-toolbelt
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
I have also tried to install Heroku Toolbelt using https://toolbelt.heroku.com/ , but I still seem to get the same warning that you see with the first code above telling me that I need to update it to v 3.37.6 . I'm sorry for this newbie mistake, but is there anyone out there that can help me resolve this little issue, please? Thanks.
You should use
sudo apt-get install heroku-toolbelt
In the new version of Cloud9 we don't have support for deployment from the UI yet unfortunately.
You can manually install various command-line tools into your workspace and deploy using the command line. It should go without saying that this is for developers that aren't afraid of the command line.
https://docs.c9.io/v1.0/docs/deploying-via-cli
I got the same problem and it got resolved by this..
$ heroku login
$ heroku version
heroku-toolbelt/3.37.6 (x86_64-linux) ruby/2.2.1
You have no installed plugins.
$ heroku plugins:update
$ heroku plugins:install
Installing Heroku Toolbelt v4... done
Setting up node-v4.1.2... done
Installing core plugins heroku-cli-addons, heroku-apps, heroku-fork, heroku-git, heroku-local, heroku-run, heroku-status... done
▸ Missing argument: NAME
$ heroku version
heroku-toolbelt/3.37.6 (x86_64-linux) ruby/2.2.1
heroku-cli/4.25.2-beb750a (amd64-linux) go1.5.1
=== Installed Plugins
heroku-apps#0.3.0
heroku-cli-addons#0.0.2
heroku-fork#4.0.0
heroku-git#2.4.1
heroku-local#4.1.4
heroku-run#2.7.1
heroku-status#1.2.2

rake snorby:setup error - "cannot load such file — dm-rails/railtie"

Having some trouble getting Snorby running for the first time. I installed Snorby and all prerequisites according to the instructions at snorby.org, but when I run the command
RAILS_ENV=production bundle exec rake snorby:setup
I get the following error:
rake aborted!
cannot load such file -- dm-rails/railtie
I ran gem list --local to verify that dm-rails is installed on my system.
Version issue maybe??
Not quite sure how to troubleshoot...
My system details: a Raspberry Pi running Raspbian.
Thanks in advance!
See here for the details of the fix: https://github.com/Snorby/snorby/issues/355
Long story short it appears that bundler needs to be installed with a specific version to work with the other gems required by Snorby (2.6.2) as defined in the Gemfile.
Install dm-rails and bundler in v1.2.1 and it should work.

"gem install rails" fails on Windows

I am trying to manually install rails, but have encountered the following error:
c:\Ruby193\bin>gem install rails
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: A connection attempt failed because the connected party
did not properly respond after a period of time, or established connection failed
because connected host has failed to respond. - connect(2) (http://rubygems.org/
latest_specs.4.8.gz)
How can this be solved?
The steps I followed so far:
I installed Ruby from here: http://rubyinstaller.org/downloads/,
running the Ruby 1.9.3-p545 from the RubyInstaller section. (into
C:\Ruby193)
I installed also (for use with Ruby 1.8.7 and 1.9.3): the
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe into C:\RubyDevKit.
I went to RubyDevKit in cmd and typed:
dir dk.rb
ruby dk.rb init
ruby dk.rb install
I launched irb (typed irb in C:\RubyDevKit) to confirm ruby
works and it does.
I am right now faced with this problem
Reset DNS cache solved that problem for me
(Run "ipconfig /flushdns" from cmd shell)

Rails - Errno::EACCES: Permission denied

When I run rails s I get a permissions error
Ryans-MacBook-Air-2:fitbet ryankuhel$ rails s
/Users/ryankuhel/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.0/lib/rails/app_rails_loader.rb:37: warning: Insecure world writable dir /Users/ryankuhel/.rvm/gems/ruby-2.0.0-p353/bin in PATH, mode 040777
then I got an error that I needed to run bundle install
Could not find debugger-1.6.1 in any of the sources
Run `bundle install` to install missing gems.
Ryans-MacBook-Air-2:fitbet ryankuhel$ bundle install
Errno::EACCES: Permission denied - /Users/ryankuhel/documents/interactive/fitbet/.bundle/install.log
/Users/ryankuhel/.rvm/gems/ruby-2.0.0-p353#global/gems/bundler- 1.5.1/lib/bundler/vendor/thor/shell/basic.rb:345: warning: Insecure world writable dir /Users/ryankuhel/.rvm/gems/ruby-2.0.0-p353/bin in PATH, mode 040777
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/Users/ryankuhel/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/open-uri.rb:29:in `initialize': Permission denied - /Users/ryankuhel/documents/interactive/fitbet/.bundle/install.log (Errno::EACCES)
I am running Max 10.9.1. Any ideas on how to fix this?
If you are running as user ubuntu, you can do sudo chown ubuntu . -R at the application root. This did the trick for me.

Resources