Clearing channel error | GitHub 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
Clearing channel error
No permission to create posts
May 2, 2014
11:05 am
Avatar
gerald

Gold
Members
Forum Posts: 20
Member Since:
November 6, 2013
sp_UserOfflineSmall Offline

Hi Lee, all is running smooth, did a recent upgrade to Ubuntu and now it runs with thin client...hiccup. Anyways, there's a bug I noticed when I try to clear a channel that has data. I log in and go in to the channel settings and hit the clear channel button, it gives me a page with the following error, any help would be apprecicated!

Redis::CannotConnectError in ChannelsController#clear
Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED)
Extracted source (around line #339):

337 else
338 self.update_attribute(:clearing, true)
339 Resque.enqueue(ClearChannelJob, self.id)
340 end
341 end
342

Rails.root: /home/gerald/thingspeak
Application Trace | Framework Trace | Full Trace

app/models/channel.rb:339:in `delete_feeds'
app/controllers/channels_controller.rb:208:in `clear'

Request

Parameters:

{"authenticity_token"=>"ZKbxjMjQOVwzcyMMk/ANDMI7pq5yUBKH1Yo6IP/NOPs=",
"id"=>"2"}

Toggle session dump
Toggle env dump

May 2, 2014
1:08 pm
Avatar
lee

Admin
Forum Posts: 457
Member Since:
March 14, 2011
sp_UserOfflineSmall Offline

Hi,

I think you're running an older version of the ThingSpeak application, since this error has been fixed in recent versions. Please try upgrading via the following commands:

git pull origin master
bundle install
rake db:migrate

Please let me know if you have any trouble upgrading, and I'll try to help you out.

lee

May 2, 2014
1:43 pm
Avatar
gerald

Gold
Members
Forum Posts: 20
Member Since:
November 6, 2013
sp_UserOfflineSmall Offline

Thanks for the quick reply Lee, got stuck on first command with error:
Updating 4c98866..48daaf5
error: Your local changes to the following files would be overwritten by merge:
Gemfile
Gemfile.lock
Please, commit your changes or stash them before you can merge.
Aborting

Should should I commit or stash the changes?

Thanks

Gerald

May 2, 2014
1:57 pm
Avatar
gerald

Gold
Members
Forum Posts: 20
Member Since:
November 6, 2013
sp_UserOfflineSmall Offline

Your suggestion worked, with the added git stash first and the clear channel worked! As usual, big help Lee!

Gerald

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

swatiiot, kalyanigaware16@gmail.com, Romi, Drakan01, majidkhan7, atharvganla

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457