Release 315

10 replies [Last post]
brett
Offline
Providence, United States
Joined: 9 Jan 2010

xap-twitter was not deleting tweets after processing them.

thanks to Gary for pointing out this bug.

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
oops! Xively function not working

Hi Brett

Just getting back into the swing of things - its been an arduous year family wise - so I just updated my livebox to 315 from 309 and did the changes I could see to get stuff working again - however for some reason Xively heartbeats for 2 mins from boot then dies!  I've switched off all calls to xiively from the plugboard luas but to no avail - xFx messanger shows Xively alive at re-boot but no further heartbeats...any idea where I should look?

Hope things are going well ....

Elliot

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Sounds like the xap-xively process is crashing out

Elliot,

Sounds like the xap-xively process is crashing out - I can't imagine why.
Check what you see in /var/log/xap-xively.log it might give a clue.

If you don't find anything useful in there.
Can you start it from the command line with some debug switches enabled.

# xap-xively -d 7

Post up the contents of the log file and what you get from the debug run.

Do note that in 312 I moved from a single /etc/xap-livebox.ini file to separate files in /etc/xap.d the upgrade process should have been transparent but its alwasy possible something went wrong.
Check your /etc/xap.d/xap-xively.ini file and make sure its has the content you expect from xap-livebox.ini moved over.

Brett

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Xively

Hi Brett...

Saw the 312 changes and have a clean .ini file (I removed all references to Pachybe)...

Re-instated the lua and re-started the xively function - attached debug messages....

hope this helps...

Elliot

AttachmentSize
debug.txt 9.99 KB
garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Hi Elliot, nice to see you

Hi Elliot, nice to see you back. 

 

Im no expert but it does look like an issue with your Ini file. The section and key values look wrong. 

Do you have a separate xively.ini file and what does it look like?

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Xively

Hi Garry...thanks, good to be back..took a while, but looking forward to getting the HAH back up and running!

Attached is the xively.ini file...as a further note, when xively process fails with no fault event in the log file - its completely blank!

Thanks for taking a look...

Elliot

 

EDIT: OK, its definitely the plugboard lua post to Xively that's causing the Xively feed to crash...I removed ALL (including the one I'd missed from before) the post to Xively from the luas and the inbuilt Xively function works as normal...so here's the bit of code that causes the function to fail..

 

--      postToXively1(1,"MainsW", tostring(MainsW))

 

-- Posting to Xively1

function postToXively1(id, tag, value)

   xap.sendShort( string.format([[

xap-header

{

class=Xively.update

target=%s.Xively

}

datastream

{

id=%d

tag=%s

Value=%s

}]], cTbl.HAHprefix, id, tag, value) )

end

 

I've even tried forcing MainsW to a string, but to no avail...anyway can you see a fix/workarround?

Hopefully...

Elliot

 

FURTHER EDIT:  NO ITS NOT.... the built in Xively feed failed after 5 heartbeats..!!...bugger!!

FURTHER FURTHER EDIT: YES IT IS....been merrily hearbeating for 30 mins now with no failure...?

AttachmentSize
xap-xively.ini_.txt 1.63 KB
allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
I'm no expert either, the

I'm no expert either, the only thing which I can see that might cause a problem is maybe the "cTbl.HAHprefix" is corrupt and sending bad info which is causing it to crash.

 

Sorry I can't be more help.

Good to see you back.

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Ok I've had a very quick

Ok I've had a very quick scan. Your ini looks ok to me and you seem to be confirming xively ok without directed messages via lua.

 

i agree maybe it's cTbl.HAHprefix? Not sure what this is. Can you try just putting the xively target address in manually. I guess it's dbzoo.PELICAN.xively for you?

also the xively in the class is not capitalised in the wiki example, maybe try this too.

I do not update xively via lua anymore so cannot check this, I have all my info as xap messages and update via the service and the ini file settings.

ill keep thinking?!

Garry

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Xively

Thanks for the pointers....will have a go in a bit...out gigging tonight!!!!

Elliot

brett
Offline
Providence, United States
Joined: 9 Jan 2010
ElliotThat really odd - I

Elliot

That really odd - I can't immediately see a reason for the SEGV but that is definately a xap-xively problem and not lua.   The entire debug log from START to the point of crash would be useful.

Brett

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
Xively

Hi Brett - the Xively poster from the lua causes the SEGV - if I rem out the bit that uses the post to Xively then the in-built posting all works fine!  I've attached a log...hope it shows the fault!

Elliot

AttachmentSize
xivelyout.log_.txt 72 KB
Hardware Info