Page 1 of 2
Twitter on Pi stopped after update
Posted: Mon 27 Jul 2015 2:01 am
by DaveStLou
I updated to build 3026 today on my RPi and now my hourly tweet has stopped working. Is there a log some place that I can see what stopped working. Any suggestions on what to check?
Thanks!
Re: Twitter on Pi stopped after update
Posted: Mon 27 Jul 2015 6:25 am
by steve
Turn on debug logging (in the station settings) and Twitter updates will be logged to the MXdiags file.
Re: Twitter on Pi stopped after update
Posted: Tue 28 Jul 2015 11:37 am
by DaveStLou
I turned on debug logging and reviewed the file and let it run for 24 hours. I see no reference to Twitter in the log.
I double checked that Twitter is enabled (set for every 60 minutes), re-entered the password and checked my twitter.txt still exists. I even ran the process to download the trusted root certificates which didn't seem likely but no tweets.
What am I missing?
Re: Twitter on Pi stopped after update
Posted: Tue 28 Jul 2015 12:02 pm
by steve
If you zip up the latest MXdiags file and attach it, I'll see if I can see anything. Have you tried just restarting MX?
Re: Twitter on Pi stopped after update
Posted: Wed 29 Jul 2015 12:44 am
by DaveStLou
Here you go. Thanks for taking a look.
Re: Twitter on Pi stopped after update
Posted: Wed 29 Jul 2015 7:18 am
by steve
It seems to be doing the CWOP updates OK, and the Twitter update would be the next thing it would do (on the hour only), but as you say, there's no sign of it attempting that. If you definitely have the settings correct, I think I will need to see your Twitter settings section from Cumulus.ini - this does mean I would be able to see your password, of course. If you're happy with this, copy the [Twitter] section from Cumulus.ini and send it to me in a private message. While you're doing that, check that there is only one [Twitter] section in the file.
Re: Twitter on Pi stopped after update
Posted: Thu 30 Jul 2015 8:24 am
by steve
I've used your settings, and posted two test updates. I don't know why the same settings don't work for you. The Twitter code didn't change in build 3026, so I don't think it's anything to do with that. All I can think of is that something is happening in the system code when it tries to do the update which is causing the thread to crash silently. You could try rebooting the Pi, and if that doesn't help, try removing/renaming your twitter.txt file temporarily, to see if the built-in tweet works.
Re: Twitter on Pi stopped after update
Posted: Fri 31 Jul 2015 2:07 am
by DaveStLou
I've tried both of your suggestions - still no tweets. I tried unchecking the Twitter box, saving and then rechecking and saving. I tried unchecking send location but no tweets. Nothing is showing up in the logs either.
Any other ideas?
Re: Twitter on Pi stopped after update
Posted: Fri 31 Jul 2015 8:53 am
by steve
You could try turning off your CWOP update temporarily, as that's the last thing that it does before updating Twitter. Unfortunately I can't tell whether it's not attempting to do the update for some reason, or it's failing silently before it gets to the point where Cumulus logs a debug message. I'll add more debug messages to the next build.
Something else you could look at is the wxnow.txt file which Cumulus updates once a minute - it has the date and time on the first line, so that should always be current. Check that it's updating, particularly after a CWOP update, and on the hour when a Twitter update should have taken place.
Re: Twitter on Pi stopped after update
Posted: Fri 31 Jul 2015 11:29 am
by DaveStLou
I'll try the CWOP idea and confirm wxnow.txt is current on the hour over the weekend.
Re: Twitter on Pi stopped after update
Posted: Sat 01 Aug 2015 8:26 pm
by DaveStLou
I'm seeing this error logged in over SSH:
Could not load signature of LinqToTwitter.AuthorizerBase:GetAuthorizationString due to: Could not load file or assembly or one of its dependencies.
Could not load signature of LinqToTwitter.IAuthorizer:GetAuthorizationString due to: Could not load file or assembly or one of its dependencies.
Also wxnow.txt stopped updating about 30 minutes after I turned off CWOP updating.
Re: Twitter on Pi stopped after update
Posted: Sun 02 Aug 2015 8:46 am
by steve
How did you do the update to version 3026 - did you unzip into an existing installation, or did you unzip to a new directory and then copy your data etc over? What version were you using previously?
When do you see those errors that you've mentioned, when Cumulus starts, on the hour when it attempts to update Twitter...?
Re: Twitter on Pi stopped after update
Posted: Sun 02 Aug 2015 9:50 am
by steve
Did you try removing/renaming your twitter.txt file, to see if the built-in tweet works?
Re: Twitter on Pi stopped after update
Posted: Sun 02 Aug 2015 10:01 am
by DaveStLou
I updated from 3025 by unzipping over an existing installation. It appears when it is scheduled to update Twitter. I reproduced the error by increasing Twitter update frequency to 5 minutes.
When it occurs, wxnow.txt misses updating for that minute. It resumes updating the next minute.
I forgot to report that I tried renaming the file but it didn't tweet.
Re: Twitter on Pi stopped after update
Posted: Sun 02 Aug 2015 10:10 am
by steve
Could you please show me the output from this command:
gacutil -l | grep Http
Do you have a System.Net.Http.dll in your MX directory?