[PhAzE] Plugins for Unraid 5/6


Recommended Posts

Hi Phaze

awesome work you been doing i been installing a few things and they work perfectly

tho i ran into a little problem with sonarr

when i want to shut down arrays i cant do that before i manually go in to sonarr and "shutdown" it from there

 

do you have any idea what to do to fix that

 

It should be working properly, and does on my system.  I would suggest removing the plugin (from the "remove plugin" button in the settings page for Sonarr) and then reinstall it.

Link to comment

In case anyone wants to run something in the plugin's environment, all of my plugins have a shortcut built in to access that environment.

 

Example with Filebot:

Filebot-env <command>

 

and that command will be run with the filebot environment variables set.

 

Another example:

Sonarr-env <command> and that will run whatever command is under the Sonarr-env environment.

Link to comment

Could it be that these plugins are somehow incompatible with unRAID 6.2 (beta21)? Whatever I try, I keep getting 'Install failed: install file missing' for the CouchPotato plugin, and 'MediaInfo Version:NOT WORKING' for Sonarr. I've removed the '/mnt/cache/.PhAzE-Common/', rebooted, uninstalled the plugin, all multiple times. NZBGet is working though...

It's possible, I have only tested these on versions up to 6.1.9.

Alright, thanks! I found that I had to manually install all the packages from your dependencies archive. After this Couchpotato would install nicely, but Sonarr also required two files for Mediainfo to be copied and symlinked into /usr/lib64

Link to comment

Strange, they are included in my dependency package and installed there already.

Yes, everything is included. But I think the plugin script does not run correctly on 6.2 beta, so the packages are not installed and the files don't get copied.

Link to comment

Noticed something weird with Plex today.

 

I had 4 strange files under my / directory today. sign_in sign_in.1 sign_in.2 sign_in.3 all contained the same information, and all seemed to be some sort of HTML file related to Plex (numerous Plex references)

 

Did Plex make a recent change that has config files going to different places?

Link to comment

So my CouchPotato stopped working the other day, I think it may have to do with my upgrading to unRaid 6.1.9? I start the plugin and it says it's running, but when I go to the WebGUI it doesn't connect, and when I refresh the status page it says STOPPED. Originally I was getting the "No PID created error," but I uninstalled everything and deleted the common files as was suggested earlier... Everything came back but CouchPotato...

 

Here is the unRaid log from when I start it:

Apr 17 19:16:40 MediaServer emhttp: cmd: /usr/local/emhttp/plugins/Couchpotato/scripts/rc.Couchpotato buttonstart

Apr 17 19:16:41 MediaServer sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/bash -c . /mnt/cache/.PhAzE-Common/Couchpotato/startcfg.sh; python /mnt/user/Plugins/CouchPotato/CouchPotato.py --data_dir /mnt/user/Plugins/CouchPotato/config --daemon --pid_file /var/run/Couchpotato/Couchpotato.pid &

Apr 17 19:16:46 MediaServer sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=root ; COMMAND=/bin/bash -c . /mnt/cache/.PhAzE-Common/Couchpotato/startcfg.sh; git --git-dir=/mnt/user/Plugins/CouchPotato/.git rev-parse HEAD

Apr 17 19:16:47 MediaServer sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /mnt/cache/.PhAzE-Common/Couchpotato/startcfg.sh; python --version 2>&1

Apr 17 19:16:47 MediaServer sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /mnt/cache/.PhAzE-Common/Couchpotato/startcfg.sh; sqlite3 --version 2>&1

Apr 17 19:16:47 MediaServer sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /mnt/cache/.PhAzE-Common/Couchpotato/startcfg.sh; git --version 2>&1

Apr 17 19:16:47 MediaServer sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /mnt/cache/.PhAzE-Common/Couchpotato/startcfg.sh; curl --version 2>&1

 

And here is the error log I think...

 

19:16:57 CRITICAL [                __main__] Traceback (most recent call last):

  File "/mnt/user/Plugins/CouchPotato/CouchPotato.py", line 133, in <module>

    l.run()

  File "/mnt/user/Plugins/CouchPotato/CouchPotato.py", line 89, in run

    runCouchPotato(self.options, base_path, sys.argv[1:], data_dir = self.data_dir, log_dir = self.log_dir, Env = Env)

  File "/mnt/user/Plugins/CouchPotato/couchpotato/runner.py", line 140, in runCouchPotato

    db.open()

  File "/mnt/user/Plugins/CouchPotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner

    res = f(*args, **kwargs)

  File "/mnt/user/Plugins/CouchPotato/libs/CodernityDB/database_super_thread_safe.py", line 93, in open

    res = super(SuperThreadSafeDatabase, self).open(*args, **kwargs)

  File "/mnt/user/Plugins/CouchPotato/libs/CodernityDB/database.py", line 571, in open

    index.open_index()

  File "/mnt/user/Plugins/CouchPotato/libs/CodernityDB/tree_index.py", line 156, in open_index

    raise IndexException("Doesn't exists")

IndexException: Doesn't exists

Traceback (most recent call last):

  File "/mnt/user/Plugins/CouchPotato/CouchPotato.py", line 133, in <module>

    l.run()

  File "/mnt/user/Plugins/CouchPotato/CouchPotato.py", line 89, in run

    runCouchPotato(self.options, base_path, sys.argv[1:], data_dir = self.data_dir, log_dir = self.log_dir, Env = Env)

  File "/mnt/user/Plugins/CouchPotato/couchpotato/runner.py", line 140, in runCouchPotato

    db.open()

  File "/mnt/user/Plugins/CouchPotato/libs/CodernityDB/database_super_thread_safe.py", line 43, in _inner

    res = f(*args, **kwargs)

  File "/mnt/user/Plugins/CouchPotato/libs/CodernityDB/database_super_thread_safe.py", line 93, in open

    res = super(SuperThreadSafeDatabase, self).open(*args, **kwargs)

  File "/mnt/user/Plugins/CouchPotato/libs/CodernityDB/database.py", line 571, in open

    index.open_index()

  File "/mnt/user/Plugins/CouchPotato/libs/CodernityDB/tree_index.py", line 156, in open_index

    raise IndexException("Doesn't exists")

IndexException: Doesn't exists

 

Thanks!

couchpotato_unraid_status.jpg.4b6d1db09edc2d12d47d6902fdf47c24.jpg

Link to comment

There's a new update for sabnzbd, but I'm getting this while updating:

2016-04-18 14:04:07 [iNFO] *** Update Initiated ***

2016-04-18 14:04:07 [iNFO] Stopping SABnzbd...

2016-04-18 14:04:07 [iNFO] Stop OK: Already stopped

2016-04-18 14:04:08 [iNFO] Installing SABnzbd...

2016-04-18 14:04:09 [iNFO] Updating dependencies

2016-04-18 14:04:09 [iNFO] Dependency install file has correct MD5

2016-04-18 14:04:09 [iNFO] Using /mnt/cache/.PhAzE-Common for dependency directory

2016-04-18 14:04:10 [iNFO] Dependencies updated successfully

2016-04-18 14:04:10 [iNFO] Updating export file

2016-04-18 14:04:10 [iNFO] Updating shorcut file

2016-04-18 14:04:10 [iNFO] Latest version found: 1.0.1RC1 - Checking USB for same install file

2016-04-18 14:04:10 [iNFO] No copy found on USB - Downloading install file and checking for MD5 file

2016-04-18 14:04:12 [iNFO] No MD5 file located - Attempting decompression integrity test

2016-04-18 14:04:12 [ERROR] Install failed: Failed integrity test

 

any idea why?

Link to comment

This is a crosspost, as I'm not sure if it's an Unassigned Devices issue, or a plugin issue (of which all of my plugins are Phaze plugins), so here goes:

 

http://lime-technology.com/forum/index.php?topic=45807.msg465130#msg465130

 

My setup is basically that I have 1 "unassigned device" SSD, and on that disk, I install my various plugins (sabnzbd et al.)

 

But I'm having this issue where every single time I restart the server/array, the plugins all run their annoying "wizards" as they are failing to read the config folder held on my SSD. I can see in my logs that the SSD (sdd1) is not mounting until after the plugins have tried to install.

 

So basically, does anyone have a suggestion on how to force phaze plugins to wait until the SSD is ready before trying to start up?  Is there a way of putting a forced delay in? (I'm not even sure if this'll work, given it could delay UD too).

 

Thanks!

Link to comment

So that user share was a cache only anyway, but I redirected it to /mnt/cache/Plugins/CouchPotato/config which was the same place it was before, and the app loaded and ran, but it was in wizard mode to start over. I tried several times to restart and redirect the config but every time it would do the same thing from before where it would run for a second and then show as STOPPED. I think maybe the database got corrupted somehow?

Link to comment

Yes if you can get it running on a fresh config directory, it's very possible the db is corrupt. I've had it happen on my install before as well unfortunately.

 

Make a backup of your config directory and see if you can remove the db only, keeping the rest of the config files. Set it back to your /mnt/user directory and see if it runs.

Link to comment

Okay, I took my config backup from before I started fiddling, put it back in there and deleted the database folder. I started the plugin and I guess it must have restored from the db_backup folder or something because it's back to where I started I think, thanks so much!

Link to comment

There's a new update for sabnzbd, but I'm getting this while updating:

2016-04-18 14:04:07 [iNFO] *** Update Initiated ***

2016-04-18 14:04:07 [iNFO] Stopping SABnzbd...

2016-04-18 14:04:07 [iNFO] Stop OK: Already stopped

2016-04-18 14:04:08 [iNFO] Installing SABnzbd...

2016-04-18 14:04:09 [iNFO] Updating dependencies

2016-04-18 14:04:09 [iNFO] Dependency install file has correct MD5

2016-04-18 14:04:09 [iNFO] Using /mnt/cache/.PhAzE-Common for dependency directory

2016-04-18 14:04:10 [iNFO] Dependencies updated successfully

2016-04-18 14:04:10 [iNFO] Updating export file

2016-04-18 14:04:10 [iNFO] Updating shorcut file

2016-04-18 14:04:10 [iNFO] Latest version found: 1.0.1RC1 - Checking USB for same install file

2016-04-18 14:04:10 [iNFO] No copy found on USB - Downloading install file and checking for MD5 file

2016-04-18 14:04:12 [iNFO] No MD5 file located - Attempting decompression integrity test

2016-04-18 14:04:12 [ERROR] Install failed: Failed integrity test

 

any idea why?

 

Am I the only one having this problem?

Link to comment

2016-04-19 06:17:20 [iNFO]	Using /mnt/cache/.PhAzE-Common for dependency directory
2016-04-19 06:17:21 [iNFO]	Dependencies updated successfully
2016-04-19 06:17:21 [iNFO]	Updating export file
2016-04-19 06:17:21 [iNFO]	Updating shorcut file
2016-04-19 06:17:21 [iNFO]	Updating PIP
2016-04-19 06:17:21 [iNFO]	PIP install file has correct MD5
2016-04-19 06:17:21 [iNFO]	Using /mnt/cache/.PhAzE-Common for PIP directory
2016-04-19 06:17:22 [iNFO]	PIP updated successfully
2016-04-19 06:17:22 [iNFO]	Updating application config file
2016-04-19 06:17:22 [ERROR]	Config update failed: Directory missing 
2016-04-19 06:17:43 [iNFO]	*** Apply - Disable Initiated ***
2016-04-19 06:17:43 [iNFO]	Stopping FlexGet...
2016-04-19 06:17:43 [iNFO]	Stop OK: Not installed 
2016-04-19 06:17:44 [iNFO]	Updating settings
2016-04-19 06:17:44 [iNFO]	Updating plugin config file
2016-04-19 06:17:44 [iNFO]	Updating dependencies
2016-04-19 06:17:44 [iNFO]	Dependency install file has correct MD5
2016-04-19 06:17:44 [iNFO]	Using /mnt/cache/.PhAzE-Common for dependency directory
2016-04-19 06:17:45 [iNFO]	Dependencies updated successfully
2016-04-19 06:17:45 [iNFO]	Updating export file
2016-04-19 06:17:45 [iNFO]	Updating shorcut file
2016-04-19 06:17:45 [iNFO]	Updating PIP
2016-04-19 06:17:45 [iNFO]	PIP install file has correct MD5
2016-04-19 06:17:45 [iNFO]	Using /mnt/cache/.PhAzE-Common for PIP directory
2016-04-19 06:17:46 [iNFO]	PIP updated successfully
2016-04-19 06:17:46 [iNFO]	Updating application config file
2016-04-19 06:17:46 [ERROR]	Config update failed: Directory missing 
2016-04-19 06:17:54 [iNFO]	*** Install Initiated ***
2016-04-19 06:17:54 [iNFO]	Installing FlexGet...
2016-04-19 06:17:55 [iNFO]	Updating dependencies
2016-04-19 06:17:55 [iNFO]	Dependency install file has correct MD5
2016-04-19 06:17:55 [iNFO]	Using /mnt/cache/.PhAzE-Common for dependency directory
2016-04-19 06:17:56 [iNFO]	Dependencies updated successfully
2016-04-19 06:17:56 [iNFO]	Updating export file
2016-04-19 06:17:56 [iNFO]	Updating shorcut file
2016-04-19 06:17:56 [iNFO]	Updating PIP
2016-04-19 06:17:56 [iNFO]	PIP install file has correct MD5
2016-04-19 06:17:56 [iNFO]	Using /mnt/cache/.PhAzE-Common for PIP directory
2016-04-19 06:17:56 [iNFO]	PIP updated successfully
2016-04-19 06:17:57 [iNFO]	Latest version found: 1.2.515 - Checking USB for same install file
2016-04-19 06:17:57 [iNFO]	No copy found on USB - Downloading install file and checking for MD5 file
2016-04-19 06:18:10 [ERROR]	Install failed: Install file missing 

 

Flexget will not install

 

SAQWbDV.png

Link to comment

There's a new update for sabnzbd, but I'm getting this while updating:

2016-04-18 14:04:07 [iNFO] *** Update Initiated ***

2016-04-18 14:04:07 [iNFO] Stopping SABnzbd...

2016-04-18 14:04:07 [iNFO] Stop OK: Already stopped

2016-04-18 14:04:08 [iNFO] Installing SABnzbd...

2016-04-18 14:04:09 [iNFO] Updating dependencies

2016-04-18 14:04:09 [iNFO] Dependency install file has correct MD5

2016-04-18 14:04:09 [iNFO] Using /mnt/cache/.PhAzE-Common for dependency directory

2016-04-18 14:04:10 [iNFO] Dependencies updated successfully

2016-04-18 14:04:10 [iNFO] Updating export file

2016-04-18 14:04:10 [iNFO] Updating shorcut file

2016-04-18 14:04:10 [iNFO] Latest version found: 1.0.1RC1 - Checking USB for same install file

2016-04-18 14:04:10 [iNFO] No copy found on USB - Downloading install file and checking for MD5 file

2016-04-18 14:04:12 [iNFO] No MD5 file located - Attempting decompression integrity test

2016-04-18 14:04:12 [ERROR] Install failed: Failed integrity test

 

any idea why?

 

Am I the only one having this problem?

 

Same here.  I remember when SABnzbd first went RC on v1, we had same issue.  May have been a cert issue with the DL site or something ..

Link to comment

First of all: thank you for the great work!

I do have a question though.. I just installed Sabnzb plugin, but i just can't connect to it!

The port I use is 8089 (because of umenu), the wizard works fine. But after the restart, when you get the 3 link options, it just doesn't work: "connection refused!"

Any ideas?

Link to comment

Hi Phaze,

 

First of all, thanks for all your hard work, definitely going to be donating.

 

Second,

 

I'm having an issue with sonarr not installing the dependencies correctly under 6.2b21, currently have this under the plugin settings. MediaInfo Version:NOT WORKING

 

Any work around for this right now?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.