BitTorrent.bundle icon indicating copy to clipboard operation
BitTorrent.bundle copied to clipboard

Scrapmagnet: ERROR

Open eseelke opened this issue 9 years ago • 7 comments

I installed this via the Unsupported Appstore. I couldn't get it to work, so I stopped Plex, deleted the BitTorrent.bundle folder, downloaded the master.zip from your thread, unzipped, renamed and started Plex again. Still isn't working.

OS: Debian Wheezy Plex: 0.9.11.17 Ver: 0.8.8

I am getting an error "Scrapmagnet is not running".

Here are the logs you asked for. http://pastebin.com/BKXrce0P - com.plexapp.plugins.bittorrent http://pastebin.com/XajeAjwi - com.plexapp.system

eseelke avatar Apr 24 '15 14:04 eseelke

Seems like you got a permission issue as shown by

2015-04-24 08:52:55,172 (7f1f7b9e9700) :  CRITICAL (sandbox:303) - Exception when calling function 'Start' (most recent call last):
  File "/media/b23824f8-b89e-4069-8e23-1116b171f79f/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 294, in call_named_function
    result = f(*args, **kwargs)
  File "/media/b23824f8-b89e-4069-8e23-1116b171f79f/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/BitTorrent.bundle/Contents/Code/__init__.py", line 46, in Start
    SharedCodeService.scrapmagnet.start()
  File "/media/b23824f8-b89e-4069-8e23-1116b171f79f/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/BitTorrent.bundle/Contents/Services/Shared Code/scrapmagnet.pys", line 41, in start
    os.chmod(get_exec_path(), stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH)
OSError: [Errno 1] Operation not permitted: '/media/b23824f8-b89e-4069-8e23-1116b171f79f/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/BitTorrent.bundle/Contents/Bin/linux_amd64/scrapmagnet'

Maybe this could help you?

sharkone avatar Apr 25 '15 04:04 sharkone

When you unzip the bundle, it is owned by the user that you are logged in to your system with...

I believe Python has some restrictions where certain commands can't be executed if the script is not owned by the same user that the script is running under. In brief, you must chown your bundle directory to the Plex user:

chown -R plexuser:plexgroup BitTorrent.bundle

You can find the correct values of plexuser:plexgroup by runnint 'ls -l' in the Plug-ins directory to see which user:group the other plugins are set to.

mrsvan avatar Apr 25 '15 12:04 mrsvan

Any news @eseelke ?

sharkone avatar Apr 27 '15 23:04 sharkone

Hi I have a similar problem and mrsvan's solution didn't work for me

com.plexapp.plugins.bittorrent.txt

This line sounds problematic... My Plex display name is called raspberrypi 2015-11-26 13:46:32,583 (716ff460) : DEBUG (networking:166) - Requesting 'http://raspberrypi:8042/'

Ok, maybe add a scrapmagnet arm build?

tobiasfiechter avatar Nov 26 '15 13:11 tobiasfiechter

The issue is with the code in the file

/BitTorrent.bundle/Contents/Services/Shared Code/utils.pys

Change:

def get_local_host():
    host = Network.Hostname
    if not host:
        host = socket.gethostname()
    if not host:
        host = 'localhost'
    return host

To

def get_local_host():
    return 'localhost'

and it fixes the issue for me

ewanwalk avatar Apr 24 '16 03:04 ewanwalk

Hi I faced the same issue, steps I roughly followed to resolve it: sudo chown -R youruser:youruser on the Plug-ins folder sudo chown -R youruser:youruser on the Plug-in Support folder sudo chmod -R 770 on the Plug-ins folder sudo chmod -R 770 on the Plug-in Support folder

then I noticed it still didn't work, someone pointed out that the drive/mount where plex is running from might be mounted with "noexec" flag which prevents execution.

So I opened /etc/fstab file with nano and removed the noexec flag on the corresponding drive/mount lines. I rebooted and it worked. I hope this resolves your issue.

joseph84arturo avatar Mar 19 '17 22:03 joseph84arturo

Sorry guys, how can i fixed it scrapmagnet error in win'10, please? Someone can help me. Thanks in advance.

kakas80 avatar Mar 25 '17 17:03 kakas80