Plex request or similar

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
I tried to port forward and it kept connecting to plex regardless of port number used. So you're saying if I put "plexrequests" as base url I would then access "DDNSAddress.com/plexrequests"? I'm a little confused on how all of this works.
No, this would require a reverse proxy.
 

tstorm

Explorer
Joined
Jan 5, 2015
Messages
69
ok, I think I need my hand held a little here cuz a lot of this is new to me.
 

tstorm

Explorer
Joined
Jan 5, 2015
Messages
69
ok, I misread what you said at first. I'll give it another shot when I get home tonight.
 

tstorm

Explorer
Joined
Jan 5, 2015
Messages
69
got it working, just moved over to a pfsense router, had the nat set wrong for everything
 

DrMuffin

Dabbler
Joined
Feb 8, 2014
Messages
11
I can't seem to get PlexConnect.net to run at the start of the jail via cron. When I crontab -e I have this:
upload_2016-12-3_14-1-55.png


And when I enter the command:
Code:
/usr/local/bin/screen -S plex_requests /usr/local/bin/mono /var/db/plex_requests/PlexRequests.exe

it starts up just fine, I can CTRL+D or A and get out of it and it will continue running. It just doesn't run at the start of the jail.
 

Attachments

  • upload_2016-12-3_14-1-35.png
    upload_2016-12-3_14-1-35.png
    12.6 KB · Views: 310

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Your command that works and the command that is listed in cron are 2 different commands.
 

DrMuffin

Dabbler
Joined
Feb 8, 2014
Messages
11
Your command that works and the command that is listed in cron are 2 different commands.
Ah yes, sorry that was a different command. But the plex_requests script INCSlayer instructed to make:
Code:
#!/bin/sh
cd /var/db/plex_requests
/usr/local/bin/screen -d -m -S plex_requests /usr/local/bin/mono /var/db/plex_requests/PlexRequests.exe

works fine when I enter the two commands manually in the jail. It doesn't run if I restart the jail however
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Ah yes, sorry that was a different command. But the plex_requests script INCSlayer instructed to make:
Code:
#!/bin/sh
cd /var/db/plex_requests
/usr/local/bin/screen -d -m -S plex_requests /usr/local/bin/mono /var/db/plex_requests/PlexRequests.exe

works fine when I enter the two commands manually in the jail. It doesn't run if I restart the jail however
Is the script executable?

What happens when you run the script manually? It seems like you're bypassing one key step in troubleshooting.
 

DrMuffin

Dabbler
Joined
Feb 8, 2014
Messages
11
Is the script executable?

What happens when you run the script manually? It seems like you're bypassing one key step in troubleshooting.
well you're absolutely right, something is wonky with the script. It has 755 permissions but when I run it I get this:
Code:
root@plexrequests:/usr/local/bin # sh plex_requests
: No such file or directory
root@plexrequests:/usr/local/bin #


I downloaded the copy off the server to check it out, but it is correct. I can copy both lines and they work just fine :\
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
well you're absolutely right, something is wonky with the script. It has 755 permissions but when I run it I get this:
Code:
root@plexrequests:/usr/local/bin # sh plex_requests
: No such file or directory
root@plexrequests:/usr/local/bin #


I downloaded the copy off the server to check it out, but it is correct. I can copy both lines and they work just fine :\
I don't understand what command you tried to run here.

Where is the script actually located?

Have you tried to CD into the directory and just run ./nameofscript
 

DrMuffin

Dabbler
Joined
Feb 8, 2014
Messages
11
I don't understand what command you tried to run here.

Where is the script actually located?

Have you tried to CD into the directory and just run ./nameofscript
It's in /usr/local/bin, and it is just a file called plex_requests as per the instructions posted.
I did try that, it gives me:
Code:
root@plexrequests:/usr/local/bin # ./plex_requests
./plex_requests: Command not found.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Then your script is not right or it is not marked as executable

Chmod +x plex_requests
 

DrMuffin

Dabbler
Joined
Feb 8, 2014
Messages
11
Then your script is not right or it is not marked as executable

Chmod +x plex_requests
That's what I thought too
Code:
root@plexrequests:/usr/local/bin # chmod +x plex_requests
root@plexrequests:/usr/local/bin # ./plex_requests
./plex_requests: Command not found.

 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
I don't know how else I can say that your script is not correct. Have you edited the script? Is it missing the first line?
 

DrMuffin

Dabbler
Joined
Feb 8, 2014
Messages
11
I don't know how else I can say that your script is not correct. Have you edited the script? Is it missing the first line?
Welp, from what I could tell the content of the script was right but I decided to just remake it in nano and whatdya know now it works. I'm comparing the old and the new one I made in nano and they're exactly the same size and everything which is weird, but who cares it works now! Thanks
 

p30n

Cadet
Joined
Aug 1, 2018
Messages
6
*bump*

I am having similar issues starting ombi v 2.2.1 with mono 5.10.1.57
Since afaik no1 has gotten ombi v3 working in a freenas icoage jail as of yet?

any pointers what the cause might be or where to look for culprits?

error msg dump:

Code:
Starting Up! Please wait, this can usually take a few seconds.
Version: 2.2.1678
Location of the database: /usr/local/share/ombi/Ombi.sqlite
Your operating system's sysconf (3) function doesn't correctly report physical memory size!
[ERROR] FATAL UNHANDLED EXCEPTION: NLog.NLogConfigurationException: Error when setting property 'Format' on Layout Renderer: ${exception} ---> System.ArgumentException: Object of type 'System.ReadOnlySpan`1[System.Char]' cannot be converted to type 'System.String'.
  at System.RuntimeType.CheckValue (System.Object value, System.Reflection.Binder binder, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) [0x00071] in <0e06830de9a44394a7e366951eabca52>:0
  at System.Reflection.MonoMethod.ConvertValues (System.Reflection.Binder binder, System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) [0x00069] in <0e06830de9a44394a7e366951eabca52>:0
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00011] in <0e06830de9a44394a7e366951eabca52>:0
  at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x0005d] in <0e06830de9a44394a7e366951eabca52>:0
  at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) [0x00000] in <0e06830de9a44394a7e366951eabca52>:0
  at NLog.Internal.PropertyHelper.SetPropertyFromString (System.Object obj, System.String propertyName, System.String value, NLog.Config.ConfigurationItemFactory configurationItemFactory) [0x00108] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
   --- End of inner exception stack trace ---
  at NLog.Internal.PropertyHelper.SetPropertyFromString (System.Object obj, System.String propertyName, System.String value, NLog.Config.ConfigurationItemFactory configurationItemFactory) [0x001bc] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.LayoutParser.ParseLayoutRenderer (NLog.Config.ConfigurationItemFactory configurationItemFactory, NLog.Internal.SimpleStringReader sr) [0x001a3] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.LayoutParser.CompileLayout (NLog.Config.ConfigurationItemFactory configurationItemFactory, NLog.Internal.SimpleStringReader sr, System.Boolean isNested, System.String& text) [0x0009a] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.SimpleLayout.set_Text (System.String value) [0x00013] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.SimpleLayout..ctor (System.String txt, NLog.Config.ConfigurationItemFactory configurationItemFactory) [0x0000d] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.Layout.FromString (System.String layoutText, NLog.Config.ConfigurationItemFactory configurationItemFactory) [0x00000] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.Layout.FromString (System.String layoutText) [0x00006] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.Layout.op_Implicit (System.String text) [0x00000] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at Ombi.Helpers.LoggingHelper.ConfigureLogging (System.String connectionString) [0x000f1] in <dd625652ceaa4132973cc40b9d7e32b8>:0
  at Ombi.UI.Program.ConfigureTargets (System.String connectionString) [0x00000] in <d3edc51f5e544d5c9ddfe4ca6f7ce873>:0
  at Ombi.UI.Program.Main (System.String[] args) [0x00154] in <d3edc51f5e544d5c9ddfe4ca6f7ce873>:0

 

245123

Cadet
Joined
May 14, 2018
Messages
2
*bump*

I am having similar issues starting ombi v 2.2.1 with mono 5.10.1.57
Since afaik no1 has gotten ombi v3 working in a freenas icoage jail as of yet?

any pointers what the cause might be or where to look for culprits?

error msg dump:

Code:
Starting Up! Please wait, this can usually take a few seconds.
Version: 2.2.1678
Location of the database: /usr/local/share/ombi/Ombi.sqlite
Your operating system's sysconf (3) function doesn't correctly report physical memory size!
[ERROR] FATAL UNHANDLED EXCEPTION: NLog.NLogConfigurationException: Error when setting property 'Format' on Layout Renderer: ${exception} ---> System.ArgumentException: Object of type 'System.ReadOnlySpan`1[System.Char]' cannot be converted to type 'System.String'.
  at System.RuntimeType.CheckValue (System.Object value, System.Reflection.Binder binder, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) [0x00071] in <0e06830de9a44394a7e366951eabca52>:0
  at System.Reflection.MonoMethod.ConvertValues (System.Reflection.Binder binder, System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) [0x00069] in <0e06830de9a44394a7e366951eabca52>:0
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00011] in <0e06830de9a44394a7e366951eabca52>:0
  at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) [0x0005d] in <0e06830de9a44394a7e366951eabca52>:0
  at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) [0x00000] in <0e06830de9a44394a7e366951eabca52>:0
  at NLog.Internal.PropertyHelper.SetPropertyFromString (System.Object obj, System.String propertyName, System.String value, NLog.Config.ConfigurationItemFactory configurationItemFactory) [0x00108] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
   --- End of inner exception stack trace ---
  at NLog.Internal.PropertyHelper.SetPropertyFromString (System.Object obj, System.String propertyName, System.String value, NLog.Config.ConfigurationItemFactory configurationItemFactory) [0x001bc] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.LayoutParser.ParseLayoutRenderer (NLog.Config.ConfigurationItemFactory configurationItemFactory, NLog.Internal.SimpleStringReader sr) [0x001a3] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.LayoutParser.CompileLayout (NLog.Config.ConfigurationItemFactory configurationItemFactory, NLog.Internal.SimpleStringReader sr, System.Boolean isNested, System.String& text) [0x0009a] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.SimpleLayout.set_Text (System.String value) [0x00013] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.SimpleLayout..ctor (System.String txt, NLog.Config.ConfigurationItemFactory configurationItemFactory) [0x0000d] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.Layout.FromString (System.String layoutText, NLog.Config.ConfigurationItemFactory configurationItemFactory) [0x00000] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.Layout.FromString (System.String layoutText) [0x00006] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at NLog.Layouts.Layout.op_Implicit (System.String text) [0x00000] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
  at Ombi.Helpers.LoggingHelper.ConfigureLogging (System.String connectionString) [0x000f1] in <dd625652ceaa4132973cc40b9d7e32b8>:0
  at Ombi.UI.Program.ConfigureTargets (System.String connectionString) [0x00000] in <d3edc51f5e544d5c9ddfe4ca6f7ce873>:0
  at Ombi.UI.Program.Main (System.String[] args) [0x00154] in <d3edc51f5e544d5c9ddfe4ca6f7ce873>:0

You can try and copy an updated NLog.dll into the install-folder of Ombi:

https://www.nuget.org/packages/NLog/4.4.13

Just open the nuget-package as zip-file and extract the NLog.dll from the net45-folder.

NLog ver. 4.4.13 fixes the above error:

https://github.com/NLog/NLog/releases/tag/v4.4.13
 
Top