UNplugged icon indicating copy to clipboard operation
UNplugged copied to clipboard

Heaphones Version Issue

Open scarstens opened this issue 12 years ago • 13 comments

The Headphones plugin seems to be installing headphones in such a way that the version is either "out of date" or headphones can't read / find the version and always asks me to update. Clicking the update link doesn't do anything at all, then it inquires that I need to update again. Is anyone else experiencing this issue with Headphones?

BTW thanks for all that you do, the plugins you keep up to date are amazing. missing-headphones-version

scarstens avatar May 01 '13 19:05 scarstens

After stopping it and restarting my unraid box, headphones no longer even loads in the web interface.

scarstens avatar May 01 '13 23:05 scarstens

I'll look into this

Influencer avatar May 04 '13 20:05 Influencer

If there is anything I can do to help let me know. I still can't get headphones to load at all on my server now. I think I'm going to wipe all the headphones files and try again from scratch tonight... though I'm sure the version will still be an issue even if it loads. Look forward to the fix!

scarstens avatar May 06 '13 18:05 scarstens

Ok, I think I'm going to remove the updating function from the plug-in. You can update headphones from within the app itself so being able to do it twice is redundant. Also, if you update from the plug-in, the app will not update its versions file so then the app will think it is behind and ask for an update as well.

As for headphones not loading, check the permissions of the data and install directories. Also delete cookies, I know headphones sets cookies that causes an issue with the unraid gui, not sure if it could work in reverse.

Influencer avatar May 07 '13 22:05 Influencer

A good idea, on the whole updating issue. I still have the version issue as of now (obviously) but I did finally get Heaphones to load again.

I re-downloaded and re-installed headphones. Still no web gui. tried updating the port, no luck. Finally update the Port, Install AND Data directories all at the same time, that finally fixed my issue. I just added _2 and moved the port to 8081 which I read might be the default port. I think you may be right though, it was probably some permissions issue on one of the folders I had setup. So thanks for pointing me in the right direction.

scarstens avatar May 09 '13 00:05 scarstens

Do note that I tried to update Headphones from inside the web gui, and that update also failed... sigh. ;)

scarstens avatar May 09 '13 00:05 scarstens

Thats odd, I tested it yesterday and it worked fine. Might still be a permissions issue.

Try this; From telnet, go to your data directory and type

ls -l

Give me the output; Do the same for the install directory.

Influencer avatar May 09 '13 00:05 Influencer

Sure, here it is below. On a seperate note, have you considered any way to customize the userAgent...musicbrainz is being a PITA. (http://forum.xbmc.org/showthread.php?tid=103688&pid=964747#pid964747). Wish I knew more about PY, my php dev knowledge does me no good here!

Linux 3.4.36-unRAID. root@RnRUnraid:~# ls initconfig@ mdcmd* mkmbr* powerdown@ samba@ root@RnRUnraid:~# cd /mnt/user/appdata/headphones_2 root@RnRUnraid:/mnt/user/appdata/headphones_2# ls -l total 561 drwxr-xr-x 1 nobody users 72 2013-05-08 17:38 cache/ -rw------- 1 nobody users 3062 2013-05-08 17:38 config.ini -rw-r--r-- 1 nobody users 567296 2013-05-08 18:24 headphones.db drwxr-xr-x 1 nobody users 80 2013-05-08 17:29 logs/ root@RnRUnraid:/mnt/user/appdata/headphones_2# cd root@RnRUnraid:~# cd /usr/local/headphones_2 root@RnRUnraid:/usr/local/headphones_2# ls -l total 88 -rw-r--r-- 1 root root 4240 2013-05-08 17:29 API_REFERENCE -rw-r--r-- 1 root root 35147 2013-05-08 17:29 COPYING -rwxr-xr-x 1 root root 6681 2013-05-08 17:29 Headphones.py* -rw-r--r-- 1 root root 1492 2013-05-08 17:29 README.md -rw-r--r-- 1 root root 419 2013-05-08 17:29 TODO drwxr-xr-x 3 root root 0 2013-05-08 17:29 bs4/ drwxr-xr-x 6 root root 0 2013-05-08 17:29 cherrypy/ drwxr-xr-x 6 root root 0 2013-05-08 17:29 data/ drwxr-xr-x 2 root root 0 2013-05-08 17:29 headphones/ drwxr-xr-x 7 root root 0 2013-05-08 17:29 html5lib/ -rw-r--r-- 1 root root 2949 2013-05-08 17:29 init-alt.freebsd -rw-r--r-- 1 root root 2401 2013-05-08 17:29 init.fedora.centos.systemd -rwxr-xr-x 1 root root 2054 2013-05-08 17:29 init.freebsd* -rw-r--r-- 1 root root 525 2013-05-08 17:29 init.osx -rw-r--r-- 1 root root 1544 2013-05-08 17:29 init.solaris11 -rwxr-xr-x 1 root root 5927 2013-05-08 17:29 init.ubuntu* drwxr-xr-x 11 root root 0 2013-05-08 17:29 lib/ drwxr-xr-x 3 root root 0 2013-05-08 17:29 mako/ root@RnRUnraid:/usr/local/headphones_2#

scarstens avatar May 09 '13 01:05 scarstens

Thats the issue, for some reason the install directory is owned by root, headphones can't access it. I'd bet that if you ran headphones as root it would update fine (but you'd have issues with accessing anything downloaded by headphones then).

Run this on the install dir: chown -R nobody:users /usr/local/headphones/

Out of interest, give me the output of ls -l on your previous data and install directories.

Influencer avatar May 09 '13 01:05 Influencer

Here are the old folders. I'm guessing when I clicked "update plugin" that somehow root took over? No idea. It was working, I clicked update, it "restarted" or claimed to and then no web gui. I didn't create any of the folders myself before setting them in the settings... just assumed if I set a folder that didn't exist, that it would be created.

Oh, and I assume you meant to chown the new headphones_2 directory I have it installed in, doing that now.

root@RnRUnraid:/usr/local/headphones# ls -l total 88 -rw-r--r-- 1 root root 4240 2013-05-08 17:10 API_REFERENCE -rw-r--r-- 1 root root 35147 2013-05-08 17:10 COPYING -rwxr-xr-x 1 root root 6681 2013-05-08 17:10 Headphones.py* -rw-r--r-- 1 root root 1492 2013-05-08 17:10 README.md -rw-r--r-- 1 root root 419 2013-05-08 17:10 TODO drwxr-xr-x 3 root root 0 2013-05-08 17:10 bs4/ drwxr-xr-x 6 root root 0 2013-05-08 17:10 cherrypy/ drwxr-xr-x 6 root root 0 2013-05-08 17:10 data/ drwxr-xr-x 2 root root 0 2013-05-08 17:10 headphones/ drwxr-xr-x 7 root root 0 2013-05-08 17:10 html5lib/ -rw-r--r-- 1 root root 2949 2013-05-08 17:10 init-alt.freebsd -rw-r--r-- 1 root root 2401 2013-05-08 17:10 init.fedora.centos.systemd -rwxr-xr-x 1 root root 2054 2013-05-08 17:10 init.freebsd* -rw-r--r-- 1 root root 525 2013-05-08 17:10 init.osx -rw-r--r-- 1 root root 1544 2013-05-08 17:10 init.solaris11 -rwxr-xr-x 1 root root 5927 2013-05-08 17:10 init.ubuntu* drwxr-xr-x 11 root root 0 2013-05-08 17:10 lib/ drwxr-xr-x 3 root root 0 2013-05-08 17:10 mako/ root@RnRUnraid:/usr/local/headphones# ^C root@RnRUnraid:/usr/local/headphones# cd /mnt/user/appdata/headphones root@RnRUnraid:/mnt/user/appdata/headphones# ls -l total 160 drwxr-xr-x 1 root users 72 2013-05-01 12:21 cache/ -rw------- 1 root users 3062 2013-05-08 17:29 config.ini -rw-r--r-- 1 root users 156672 2013-05-08 13:10 headphones.db drwxr-xr-x 1 root users 80 2013-04-21 18:21 logs/ root@RnRUnraid:/mnt/user/appdata/headphones#

scarstens avatar May 09 '13 04:05 scarstens

I want to say it worked, I wasn't watching the screen when it took over a minute to update, I came back and this is the version now: Version: ebbe9083594ae86ce98a6e4e4ff3d3a6040a86d0, the settings screen says Update available to version: ebbe9083594ae86ce98a6e4e4ff3d3a6040a86d0, so I'm guessing the headphones web gui update worked. Now you just need turn the versioning off in the settings screen right? Also... this is a weird version number, is that really what they use for versions?

scarstens avatar May 09 '13 04:05 scarstens

Yes, the version number is actually the commit hash for github. It's the same as what couchpotato and Sickbeard use for versioning.

If both have the same string then it worked. I'll remove the update code from the plugin. On May 9, 2013 12:17 AM, "Seth Carstens" [email protected] wrote:

I want to say it worked, I wasn't watching the screen when it took over a minute to update, I came back and this is the version now: Version: ebbe908https://github.com/Influencer/UNplugged/commit/ebbe9083594ae86ce98a6e4e4ff3d3a6040a86d0, the settings screen says Update available to version: ebbe908https://github.com/Influencer/UNplugged/commit/ebbe9083594ae86ce98a6e4e4ff3d3a6040a86d0, so I'm guessing the headphones web gui update worked. Now you just need turn the versioning off in the settings screen right? Also... this is a weird version number, is that really what they use for versions?

— Reply to this email directly or view it on GitHubhttps://github.com/Influencer/UNplugged/issues/21#issuecomment-17648587 .

Influencer avatar May 09 '13 10:05 Influencer

Hi Guys,

I'm getting this same error, but it isn't fixed with the instructions laid out above. I too am at a loss...

Thanks, Austin

Install Dir

root@Tower:/usr/local/headphones# ls -l
total 88
-rw-r--r--  1 nobody users  4240 2013-06-21 17:07 API_REFERENCE
-rw-r--r--  1 nobody users 35147 2013-06-21 17:07 COPYING
-rwxr-xr-x  1 nobody users  6681 2013-06-21 17:07 Headphones.py*
-rw-r--r--  1 nobody users  1492 2013-06-21 17:07 README.md
-rw-r--r--  1 nobody users   419 2013-06-21 17:07 TODO
drwxr-xr-x  3 nobody users     0 2013-06-22 09:34 bs4/
drwxr-xr-x  6 nobody users     0 2013-06-22 09:34 cherrypy/
drwxr-xr-x  6 nobody users     0 2013-06-21 17:07 data/
drwxr-xr-x  2 nobody users     0 2013-06-22 09:34 headphones/
drwxr-xr-x  7 nobody users     0 2013-06-22 09:34 html5lib/
-rw-r--r--  1 nobody users  2949 2013-06-21 17:07 init-alt.freebsd
-rw-r--r--  1 nobody users  2401 2013-06-21 17:07 init.fedora.centos.systemd
-rwxr-xr-x  1 nobody users  2054 2013-06-21 17:07 init.freebsd*
-rw-r--r--  1 nobody users   525 2013-06-21 17:07 init.osx
-rw-r--r--  1 nobody users  1544 2013-06-21 17:07 init.solaris11
-rwxr-xr-x  1 nobody users  5927 2013-06-21 17:07 init.ubuntu*
drwxr-xr-x 11 nobody users     0 2013-06-22 09:34 lib/
drwxr-xr-x  3 nobody users     0 2013-06-22 09:34 mako/

Data Dir

drwxr-xr-x 1 nobody users       72 2013-04-28 20:35 cache/
-rw------- 1 nobody users     3151 2013-06-22 09:43 config.ini
-rw-r--r-- 1 nobody users 55538688 2013-06-21 14:24 headphones.db
drwxr-xr-x 1 nobody users      240 2013-06-10 19:11 logs/

ausey00 avatar Jun 22 '13 08:06 ausey00