Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headphones not Updating #685

Closed
willuk2010 opened this issue Jun 12, 2012 · 24 comments
Closed

Headphones not Updating #685

willuk2010 opened this issue Jun 12, 2012 · 24 comments

Comments

@willuk2010
Copy link

Hi,

Headphones doesn't seem to be updating... I'm running it on a Synology DS1511+ NAS.

12-Jun-2012 23:12:21 - INFO :: MainThread : Headphones is updating...
12-Jun-2012 23:12:21 - INFO :: MainThread : Downloading update from: http://github.com/rembo10/headphones/tarball/master
12-Jun-2012 23:12:25 - INFO :: MainThread : Extracing file/usr/local/headphones/share/Headphones/master
12-Jun-2012 23:12:29 - INFO :: MainThread : Deleting file/usr/local/headphones/share/Headphones/master
12-Jun-2012 23:12:30 - WARNING :: MainThread : Headphones failed to update: expected a character buffer object. Restarting.
12-Jun-2012 23:12:30 - INFO :: MainThread : Removing pidfile /usr/local/headphones/var/headphones.pid
12-Jun-2012 23:12:30 - INFO :: MainThread : Headphones is restarting...

@metawops
Copy link

Having a similar problem here, too. Clicking on "Check for new version" just results in a "Error checking for update" box that disappears after 2 seconds or so. Can't give any debug output, though, because althoug I started headphones with the -v (verbose) option the log file / console output contains no information on what the problem might be. :-(

@kiteboy
Copy link

kiteboy commented Jun 14, 2012

Same issue here after a brand new install on ubuntu server 12.04

14-Jun-2012 05:17:44 - INFO :: MainThread : Starting Headphones on port: 5005
14-Jun-2012 05:22:15 - INFO :: MainThread : Checking to see if the database has all tables....
14-Jun-2012 05:22:16 - INFO :: MainThread : Starting Headphones on port: 5005
14-Jun-2012 05:23:46 - INFO :: MainThread : Received signal: update
14-Jun-2012 05:23:51 - INFO :: MainThread : Headphones is updating...
14-Jun-2012 05:23:51 - INFO :: MainThread : Downloading update from: http://github.com/rembo10/headphones/tarball/master
14-Jun-2012 05:24:05 - INFO :: MainThread : Extracing file/home/griffithsl/.headphones/master
14-Jun-2012 05:24:06 - INFO :: MainThread : Deleting file/home/griffithsl/.headphones/master
14-Jun-2012 05:24:06 - WARNING :: MainThread : Headphones failed to update: expected a character buffer object. Restarting.
14-Jun-2012 05:24:06 - INFO :: MainThread : Headphones is restarting...

@kiteboy
Copy link

kiteboy commented Jun 14, 2012

Check for new version also failing to check

@N3MIS15
Copy link
Contributor

N3MIS15 commented Jun 14, 2012

github api that headphones uses has been depreciated as of the 12th

@zmurk zmurk mentioned this issue Jun 14, 2012
@rembo10
Copy link
Owner

rembo10 commented Jun 18, 2012

Updating the libs now (with a few other changes). Update in a few hours.....

@rembo10
Copy link
Owner

rembo10 commented Jun 18, 2012

N3MIS15 - did you update the github library in your branch? i was just about to do it but it's easier just to merge yours in :-) let me know - i'll hold off for a bit

@N3MIS15
Copy link
Contributor

N3MIS15 commented Jun 18, 2012

nah, i started but got side tracked with maraschino. feel free to pinch the code from maraschino and adapt it to headphones

i just used urllib with the new api

@N3MIS15
Copy link
Contributor

N3MIS15 commented Jun 18, 2012

anything in that headphones branch is untested...

@rembo10
Copy link
Owner

rembo10 commented Jun 18, 2012

yeah i just looked through it :-)

the error when force checking for an update seems to be on the web UI side - since it will check for a newer version (git) on startup

but downloading the zip is throwing a problem - so that'll get fixed up asap anyways

anyways, thanks for the help. i'll take a look at maraschino's code

@rembo10
Copy link
Owner

rembo10 commented Jun 18, 2012

Ah, nevermind. It's an api problem. the checkGithub function is throwing back a 404 not found error :-/

@rembo10
Copy link
Owner

rembo10 commented Jun 18, 2012

Alright - it's working again. Depending on your install, you'll have to either run a "git pull" to get up to the latest version or redownload the tarball/zip (you can copy over your headphones.db and config.ini)

@rembo10 rembo10 closed this as completed Jun 18, 2012
@willuk2010
Copy link
Author

wicked, thanks rembo,

because im on a Synology, using the SynoCommunity package, i just stopped headphones, replaced the lib, and headphones directory, started headphones, and then did an update. Its now picked up the version from GIT ok.

Cheers!

@evtk
Copy link

evtk commented Jun 19, 2012

Hey willuk, can you give me a more detailed description of how to manually update on the synology? I know how to work with ssh. What to download, what exactly to replace? Many thanks!

@willuk2010
Copy link
Author

Hey mate,

Give me 10 mins, just in a meeting and I'll write up a few steps for you :)

Sent from my iPhone

On 19 Jun 2012, at 09:30, evantklooster
reply@reply.github.com
wrote:

Hey willuk, can you give me a more detailed description of how to manually update on the synology? I know how to work with ssh. What to download, what exactly to replace? Many thanks!


Reply to this email directly or view it on GitHub:
#685 (comment)

@willuk2010
Copy link
Author

evantklooster,

let me know if this is enough info!

I SSH'd onto my Synology as root,

Download the github master using wget, into a temporary location

Unziped the download (unzip rembo10-headphones-89c2a8c.zip

Stop Headphones in the DSM

Then i copied, the contents of the "headpones" and "lib" folders from the unzipped archive into,

lib = /volume1/@appstore/headphones/share/Headphones/lib
headphones /volume1/@appstore/headphones/share/Headphones/headphones

start headphones back up again in DSM, and ask it to update when it asks!

This obviously assumes you have a volume1, replace with whatever volume your apps are installed too!

@evtk
Copy link

evtk commented Jun 20, 2012

Ah, many thanks for this excellent step by step guide. I think I can manage this, I'll try 2n8. Maybe the only thing is what github command you execute: wget ..... ?

Thanks!

@BaukeZwart
Copy link

I would also like to know what github command you execute: wget ..... ?

@rembo10
Copy link
Owner

rembo10 commented Jun 20, 2012

I think he just means download the zip with wget, so:

wget https://github.com/rembo10/headphones/zipball/master

@willuk2010
Copy link
Author

That's it sorry yeh, used wget as rembo described above! :)

Sent from my iPhone

On 20 Jun 2012, at 16:42, rembo10
reply@reply.github.com
wrote:

I think he just means download the zip with wget, so:

wget https://github.com/rembo10/headphones/zipball/master


Reply to this email directly or view it on GitHub:
#685 (comment)

@evtk
Copy link

evtk commented Jun 20, 2012

hmm not getting any results after copying the files. I had 2 create the folders lib and headphones because they didn't exist..

Can it be my headphones is installed in another place? I use superzebulon as package repository.

@evtk
Copy link

evtk commented Jun 20, 2012

never mind, found out that the directory for files is at /usr/local/var

probably has something to do with superzebulon packages. Updating went okay... thanks for all the help.

@BaukeZwart
Copy link

It's working for me also, path was as described by willuk2010 . I'm using the SynoCommunity packages.
Thanks for all the help.

@willuk2010
Copy link
Author

ahh... thats why, im using the new SynoCommunity repos!

you could try and use find to locate the Headphones.py, the directory this python script is located in, should contain the headphones, and lib directories you need to replace with the ones you downloaded from the master zip.

find / -name Headphones.py

mine comes back with,

/volume1/@appstore/headphones/share/Headphones/Headphones.py

yours should comeback with a different location..

@willuk2010
Copy link
Author

wicked ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants