Start Thingspeak server on booting OS Ubuntu 14 LTS | Installation | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Start Thingspeak server on booting OS Ubuntu 14 LTS
No permission to create posts
July 3, 2018
10:50 pm
Avatar
ardiono
New Member
Members
Forum Posts: 1
Member Since:
July 3, 2018
sp_UserOfflineSmall Offline

Hi there,

I just installed Thingspeak server on my Ubuntu 14 LTS server and successfully running using these console commands from root:

cd thingspeak
rails server --binding=xxx.xxx.xxx.xxx --port=80

But when I try to add to rc.local those command, i got this error :

/usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'railties' (>= 0) among 12 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/usr/local/rvm/gems/ruby-2.1.0:/usr/local/rvm/gems/ruby-2.1.0@global', execute `gem env` for more information
from /usr/local/lib/ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'
from /usr/local/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
from /usr/local/bin/rails:22:in `'

Someone can help me or give an advice?

July 4, 2018
9:02 am
Avatar
rw950431

Top
Members
Forum Posts: 271
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Most likely is something missing/different in the environment variables when running from rc.local

try running
env >> /tmp/env.txt

from rc.local and compare it to the output of env in your terminal

If that doesnt help try the same thing with "gem env"

There is also this link https://askubuntu.com/questions/660523/run-a-ruby-program-on-startup

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

AlienAboth, KeslarAboth, EnigmBioge, debbiepe18, MatthewmUb, cathrynww1

Administrators: Hans: 387, lee: 457