Ombi: Cannot Start Plex Requests on Mac

Created on 20 Oct 2016  Â·  49Comments  Â·  Source: tidusjar/Ombi

If this is a bug report please make sure you have filled the following in:
(If it's not a bug and a feature request then just remove the below)

Plex Requests.Net Version: 1.9.4

Operating System: OSX El Capitan

Mono Version: 4.6.1

Applicable Logs (from /logs/ directory or the Admin page):

Starting Up! Please wait, this can usually take a few seconds.
Version: 1.9.4
Location of the database: /Applications/PlexRequests/Release/PlexRequests.sqlite

Unhandled Exception:
Mono.Data.Sqlite.SqliteException (0x80004005): Attempt to write a read-only database
attempt to write a readonly database
  at Mono.Data.Sqlite.SQLite3.Reset (Mono.Data.Sqlite.SqliteStatement stmt) [0x00096] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at Mono.Data.Sqlite.SQLite3.Step (Mono.Data.Sqlite.SqliteStatement stmt) [0x00046] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at Mono.Data.Sqlite.SqliteDataReader.NextResult () [0x00129] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at Mono.Data.Sqlite.SqliteDataReader..ctor (Mono.Data.Sqlite.SqliteCommand cmd, System.Data.CommandBehavior behave) [0x00051] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteDataReader:.ctor (Mono.Data.Sqlite.SqliteCommand,System.Data.CommandBehavior)
  at Mono.Data.Sqlite.SqliteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00006] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at Mono.Data.Sqlite.SqliteCommand.ExecuteDbDataReader (System.Data.CommandBehavior behavior) [0x00000] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00000] in <9a741ae2620a404d9751c215875ae1f7>:0 
  at Dapper.SqlMapper+<QueryImpl>d__123`1[T].MoveNext () [0x000eb] in <66e14dd398ba43d6a00d12629a33213a>:0 
  at System.Collections.Generic.List`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) [0x0008b] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00011] in <63992662b765477a898ef49cdcc99ee2>:0 
  at Dapper.SqlMapper.Query[T](System.Data.IDbConnection cnn, System.String sql, System.Object param, System.Data.IDbTransaction transaction, System.Boolean buffered, System.Nullable`1[T] commandTimeout, System.Nullable`1[T] commandType) [0x0003c] in <66e14dd398ba43d6a00d12629a33213a>:0 
  at Dapper.SqlMapper.Query (System.Data.IDbConnection cnn, System.String sql, System.Object param, System.Data.IDbTransaction transaction, System.Boolean buffered, System.Nullable`1[T] commandTimeout, System.Nullable`1[T] commandType) [0x00000] in <66e14dd398ba43d6a00d12629a33213a>:0 
  at PlexRequests.Store.TableCreation.Vacuum (System.Data.IDbConnection con) [0x00008] in <6455d344bd294d1e943e0bc253b11050>:0 
  at PlexRequests.Core.Setup.SetupDb (System.String urlBase) [0x0003d] in <a5b50d71615a48f7913599941d77e43a>:0 
  at PlexRequests.UI.Program.Main (System.String[] args) [0x00102] in <0091411972d84502bffca9657b095427>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: Mono.Data.Sqlite.SqliteException (0x80004005): Attempt to write a read-only database
attempt to write a readonly database
  at Mono.Data.Sqlite.SQLite3.Reset (Mono.Data.Sqlite.SqliteStatement stmt) [0x00096] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at Mono.Data.Sqlite.SQLite3.Step (Mono.Data.Sqlite.SqliteStatement stmt) [0x00046] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at Mono.Data.Sqlite.SqliteDataReader.NextResult () [0x00129] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at Mono.Data.Sqlite.SqliteDataReader..ctor (Mono.Data.Sqlite.SqliteCommand cmd, System.Data.CommandBehavior behave) [0x00051] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at (wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteDataReader:.ctor (Mono.Data.Sqlite.SqliteCommand,System.Data.CommandBehavior)
  at Mono.Data.Sqlite.SqliteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00006] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at Mono.Data.Sqlite.SqliteCommand.ExecuteDbDataReader (System.Data.CommandBehavior behavior) [0x00000] in <9ff639bdf6294ddea5cf93a0f499a1d4>:0 
  at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00000] in <9a741ae2620a404d9751c215875ae1f7>:0 
  at Dapper.SqlMapper+<QueryImpl>d__123`1[T].MoveNext () [0x000eb] in <66e14dd398ba43d6a00d12629a33213a>:0 
  at System.Collections.Generic.List`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) [0x0008b] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00011] in <63992662b765477a898ef49cdcc99ee2>:0 
  at Dapper.SqlMapper.Query[T](System.Data.IDbConnection cnn, System.String sql, System.Object param, System.Data.IDbTransaction transaction, System.Boolean buffered, System.Nullable`1[T] commandTimeout, System.Nullable`1[T] commandType) [0x0003c] in <66e14dd398ba43d6a00d12629a33213a>:0 
  at Dapper.SqlMapper.Query (System.Data.IDbConnection cnn, System.String sql, System.Object param, System.Data.IDbTransaction transaction, System.Boolean buffered, System.Nullable`1[T] commandTimeout, System.Nullable`1[T] commandType) [0x00000] in <66e14dd398ba43d6a00d12629a33213a>:0 
  at PlexRequests.Store.TableCreation.Vacuum (System.Data.IDbConnection con) [0x00008] in <6455d344bd294d1e943e0bc253b11050>:0 
  at PlexRequests.Core.Setup.SetupDb (System.String urlBase) [0x0003d] in <a5b50d71615a48f7913599941d77e43a>:0 
  at PlexRequests.UI.Program.Main (System.String[] args) [0x00102] in <0091411972d84502bffca9657b095427>:0 

Reproduction Steps:

The only thing I can think of that could be causing this is I have 2 Hard drives on my Mac, 1 for OS and 1 for documents and Data.

Please include any steps to reproduce the issue, this the request that is causing the problem etc.

Needs investigation bug / issue

All 49 comments

sorry for the late reply, I though I already replied.

Looks to be a permissions issue, can you make sure Plex Requests has the correct permissions?

No problem! That was a quick reply in my book! Sorry if I'm being Naive but what permissions would I need to allow it access to? The Plex Databases should be read and write accessible. I also used Sudo to execute it.

I opened up my permissions a bit and now this is what I get.

Release Jon$ sudo /usr/local/bin/mono PlexRequests.exe
Starting Up! Please wait, this can usually take a few seconds.
Version: 1.9.4
Location of the database: /Applications/PlexRequests/Release/PlexRequests.sqlite
no configuration section <common/logging> found - suppressing logging output
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: The requested address is not valid in this context
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x0004c] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointListener..ctor (System.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure) [0x0004a] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.GetEPListener (System.String host, System.Int32 port, System.Net.HttpListener listener, System.Boolean secure) [0x000be] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00064] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00030] in <59be416de143456b88b9988284f43350>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder builder) [0x00100] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext context) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00065] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0002e] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x0004b] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00014] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start[TStartup] (Microsoft.Owin.Hosting.StartOptions options) [0x00023] in <f9c6a24237684643b127a582774aa6dc>:0 
  at PlexRequests.UI.Program.Main (System.String[] args) [0x00166] in <0091411972d84502bffca9657b095427>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: The requested address is not valid in this context
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x0004c] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointListener..ctor (System.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure) [0x0004a] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.GetEPListener (System.String host, System.Int32 port, System.Net.HttpListener listener, System.Boolean secure) [0x000be] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00064] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00030] in <59be416de143456b88b9988284f43350>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder builder) [0x00100] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext context) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00065] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0002e] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x0004b] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00014] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start[TStartup] (Microsoft.Owin.Hosting.StartOptions options) [0x00023] in <f9c6a24237684643b127a582774aa6dc>:0 
  at PlexRequests.UI.Program.Main (System.String[] args) [0x00166] in <0091411972d84502bffca9657b095427>:0

Can you try and run it over a different port?

e.g. mono PlexRequests.exe -p 8080

It's permission issues. Can you make sure that Plex requests can read and
write to the directory it's in

I moved it to my Documents folder and allowed "Everyone" to have read & write permissions. Also tried to run on a different port with the same error.

Could it be the permissions to access the Plex SQL database or something?

That's what it seems like. What's the permissions on the PlexRequests.sqlite file?

Shrunk the error down by allowing read & write permissions for admin to the PlexRequests.sqlite file, not sure why this isn't default. It seems every time a log file is written, it is written with admin "Read Only" access.

`Location of the database: /Volumes/Storage/Users/Jon/Documents/Scripts/PlexRequests/Release/PlexRequests.sqlite
no configuration section <common/logging> found - suppressing logging output
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path "/Volumes/Storage/Users/Jon/Documents/Scripts/PlexRequests/Release/logs/2016-10-26.log" is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0025f] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at NLog.Internal.FileAppenders.BaseFileAppender.TryCreateFileStream (System.Boolean allowFileSharedWriting) [0x0006e] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0 
  at NLog.Internal.FileAppenders.BaseFileAppender.CreateFileStream (System.Boolean allowFileSharedWriting) [0x0003b] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0 
  at NLog.Internal.FileAppenders.RetryingMultiProcessFileAppender.Write (System.Byte[] bytes) [0x00000] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0 
  at NLog.Targets.FileTarget.WriteToFile (System.String fileName, NLog.LogEventInfo logEvent, System.Byte[] bytes, System.Boolean justData) [0x00034] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0 
  at NLog.Targets.FileTarget.ProcessLogEvent (NLog.LogEventInfo logEvent, System.String fileName, System.Byte[] bytesToWrite) [0x00098] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0 
  at NLog.Targets.FileTarget.Write (NLog.LogEventInfo logEvent) [0x00015] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0 
  at NLog.Targets.Target.Write (NLog.Common.AsyncLogEventInfo logEvent) [0x00015] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0``

That's crazy. I've never seen this before.

Can you not set the permissions higher up? So we can read/write to the whole folder?

If not I can see about adding in a configuration that turns off the file logging.

I did add Read/Write permissions to the entire folder (the highest permissions) and that log file still spits out a read only. My Plex server is on a Mac mini that is a pretty vanilla OS, the only thing that may differ mine from others is that their are 2 HDD's but I'm not sure if that would effect it.

Can you confirm the only thing holding it up from executing is the permissions on the Log folder?

Strange.

Yes 100% it cannot write to it (we don't read from them)

What?!?! That's insane. I've never seen that before. Can you not set the
permissions at a higher level on the folder? If not I'll add an option to
turn off the log files writing
On Wed, 26 Oct 2016 at 7:23 pm, Mark7even [email protected] wrote:

Shrunk the error down by allowing read & write permissions for admin to
the PlexRequests.sqlite file, not sure why this isn't default. It seems
every time a log file is written, it is written with admin "Read Only"
access.

Location of the database:
/Volumes/Storage/Users/Jon/Documents/Scripts/PlexRequests/Release/PlexRequests.sqlite

no configuration section found - suppressing logging
output

[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException:
Access to the path
"/Volumes/Storage/Users/Jon/Documents/Scripts/PlexRequests/Release/logs/2016-10-26.log"
is denied.
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32
bufferSize, System.Boolean anonymous, System.IO.FileOptions options)
[0x0025f] in :0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32
bufferSize) [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
at NLog.Internal.FileAppenders.BaseFileAppender.TryCreateFileStream
(System.Boolean allowFileSharedWriting) [0x0006e] in
<3ba0cff67b4d49d79d53f79e839f8ad9>:0
at NLog.Internal.FileAppenders.BaseFileAppender.CreateFileStream
(System.Boolean allowFileSharedWriting) [0x0003b] in
<3ba0cff67b4d49d79d53f79e839f8ad9>:0
at NLog.Internal.FileAppenders.RetryingMultiProcessFileAppender.Write
(System.Byte[] bytes) [0x00000] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
at NLog.Targets.FileTarget.WriteToFile (System.String fileName,
NLog.LogEventInfo logEvent, System.Byte[] bytes, System.Boolean justData)
[0x00034] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0
at NLog.Targets.FileTarget.ProcessLogEvent (NLog.LogEventInfo logEvent,
System.String fileName, System.Byte[] bytesToWrite) [0x00098] in
<3ba0cff67b4d49d79d53f79e839f8ad9>:0
at NLog.Targets.FileTarget.Write (NLog.LogEventInfo logEvent) [0x00015] in
<3ba0cff67b4d49d79d53f79e839f8ad9>:0
at NLog.Targets.Target.Write (NLog.Common.AsyncLogEventInfo logEvent)
[0x00015] in <3ba0cff67b4d49d79d53f79e839f8ad9>:0`

—
You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/tidusjar/PlexRequests.Net/issues/604#issuecomment-256435179,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGVaLJJIhlgM-BAxPQOmheWHbfkk3xLLks5q35q0gaJpZM4KcmaA
.

Highest level is a Read & Write on a Mac I believe, which is set on the folder, but within a folder you could have specific files that have different permissions I believe, and it looks like every time a log file is made it is with read only permissions.

Any luck?

Is it running as the user that owns the home folder?

Yes it is, only one user, me, which is the admin.

Can you try it on your desktop for me please?

Try running the folder from the desktop?

Yes transfer PlexRequests.Net to your desktop and try running it from there.

Starting Up! Please wait, this can usually take a few seconds.
Version: 1.9.4
Location of the database: /Volumes/Storage/Users/Jon/Desktop/PlexRequests/Release/PlexRequests.sqlite
no configuration section <common/logging> found - suppressing logging output
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: The requested address is not valid in this context
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x0004c] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointListener..ctor (System.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure) [0x0004a] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.GetEPListener (System.String host, System.Int32 port, System.Net.HttpListener listener, System.Boolean secure) [0x000be] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00064] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00030] in <59be416de143456b88b9988284f43350>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder builder) [0x00100] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext context) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00065] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0002e] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x0004b] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00014] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start[TStartup] (Microsoft.Owin.Hosting.StartOptions options) [0x00023] in <f9c6a24237684643b127a582774aa6dc>:0 
  at PlexRequests.UI.Program.Main (System.String[] args) [0x00166] in <0091411972d84502bffca9657b095427>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: The requested address is not valid in this context
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x0004c] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointListener..ctor (System.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure) [0x0004a] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.GetEPListener (System.String host, System.Int32 port, System.Net.HttpListener listener, System.Boolean secure) [0x000be] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00064] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00030] in <59be416de143456b88b9988284f43350>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder builder) [0x00100] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext context) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00065] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0002e] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x0004b] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00014] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start[TStartup] (Microsoft.Owin.Hosting.StartOptions options) [0x00023] in <f9c6a24237684643b127a582774aa6dc>:0 
  at PlexRequests.UI.Program.Main (System.String[] args) [0x00166] in <0091411972d84502bffca9657b095427>:0 ``

I opened a terminal folder at Release, then: sudo mono PlexRequests.exe

That error is a bit different, can you make sure there is nothing else running on that port? (you can manually change the port by doing something like mono PlexRequests.exe -p 8081

Release Jon$ sudo mono PlexRequests.exe -p 3535
Starting Up! Please wait, this can usually take a few seconds.
Version: 1.9.4
Location of the database: /Volumes/Storage/Users/Jon/Desktop/PlexRequests/Release/PlexRequests.sqlite
no configuration section <common/logging> found - suppressing logging output
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: The requested address is not valid in this context
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x0004c] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointListener..ctor (System.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure) [0x0004a] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.GetEPListener (System.String host, System.Int32 port, System.Net.HttpListener listener, System.Boolean secure) [0x000be] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00064] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00030] in <59be416de143456b88b9988284f43350>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder builder) [0x00100] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext context) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00065] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0002e] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x0004b] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00014] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start[TStartup] (Microsoft.Owin.Hosting.StartOptions options) [0x00023] in <f9c6a24237684643b127a582774aa6dc>:0 
  at PlexRequests.UI.Program.Main (System.String[] args) [0x00166] in <0091411972d84502bffca9657b095427>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: The requested address is not valid in this context
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x0004c] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointListener..ctor (System.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure) [0x0004a] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.GetEPListener (System.String host, System.Int32 port, System.Net.HttpListener listener, System.Boolean secure) [0x000be] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00064] in <59be416de143456b88b9988284f43350>:0 
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00030] in <59be416de143456b88b9988284f43350>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder builder) [0x00100] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext context) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00065] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0002e] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x0004b] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00014] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start[TStartup] (Microsoft.Owin.Hosting.StartOptions options) [0x00023] in <f9c6a24237684643b127a582774aa6dc>:0 
  at PlexRequests.UI.Program.Main (System.String[] args) [0x00166] in <0091411972d84502bffca9657b095427>:0 

I'd try to find what version of System.Net.Sockets you're running, maybe try reinstalling it or updating? Maybe update PlexRequests?

It maybe down to Mono, I've seen something similar before and i'm pretty sure updating mono worked

He's running 4.6.1, the latest version I believe.

Yeah Check Mono tells me 4.6.1

What are system.net.sockets?

Like I would let someone remote into my computer if they could figure it out lol.

System.Net.Sockets is an assembly by Microsoft, it's installed with mono, what version of mono? mono-dev? mono-complete?

Mono JIT compiler version 4.6.1 (mono-4.6.0-branch-c8sr0/ef43c15 Mon Oct  3 14:35:32 EDT 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           normal
    SIGSEGV:       altstack
    Notification:  kqueue
    Architecture:  x86
    Disabled:      none
    Misc:          softdebug 
    LLVM:          yes(3.6.0svn-mono-master/8b1520c)
    GC:            sgen

Any updates?

No, I've not had much time to look into this, But I can confirm it works on a Mac (I do some development on my mac when I cannot get to my PC)

@Mark7even do you still have this problem?

Yes I am

I am having the same issue. Updated to mono 4.6.2 and ombi will still not run.

@flawlessdeadpixel what is the error you got?

@flawlessdeadpixel Can you use the instert code taggs pleas? i can't read it now ;)

`Arturos-Mac-Pro:~ Arturo$ sudo /Library/Frameworks/Mono.framework/Versions/4.6.2/bin/mono /Users/Arturo/Desktop/opt/Ombi/Ombi.exe
Starting Up! Please wait, this can usually take a few seconds.
Version: 2.1.1336
Location of the database: /Users/Arturo/Desktop/opt/Ombi/Ombi.sqlite
no configuration section <common/logging> found - suppressing logging output
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: The requested address is not valid in this context
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x0004c] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
  at System.Net.EndPointListener..ctor (System.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure) [0x0004a] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
  at System.Net.EndPointManager.GetEPListener (System.String host, System.Int32 port, System.Net.HttpListener listener, System.Boolean secure) [0x000be] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00064] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00030] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder builder) [0x00100] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext context) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00065] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0002e] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x0004b] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00014] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start[TStartup] (Microsoft.Owin.Hosting.StartOptions options) [0x00023] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Ombi.UI.Program.Main (System.String[] args) [0x001bb] in <367d18f7a34843c8a4234d9d0db03142>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: The requested address is not valid in this context
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x0004c] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
  at System.Net.EndPointListener..ctor (System.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure) [0x0004a] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
  at System.Net.EndPointManager.GetEPListener (System.String host, System.Int32 port, System.Net.HttpListener listener, System.Boolean secure) [0x000be] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00064] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00030] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder builder) [0x00100] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext context) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00065] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0000c] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x0002e] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x0004b] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00014] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Microsoft.Owin.Hosting.WebApp.Start[TStartup] (Microsoft.Owin.Hosting.StartOptions options) [0x00023] in <f9c6a24237684643b127a582774aa6dc>:0 
  at Ombi.UI.Program.Main (System.String[] args) [0x001bb] in <367d18f7a34843c8a4234d9d0db03142>:0`

In case you are wondering what version of Mono I have installed:

Arturos-Mac-Pro:~ Arturo$ /Library/Frameworks/Mono.framework/Versions/4.6.2/bin/mono --version Mono JIT compiler version 4.6.2 (mono-4.6.0-branch/ac9e222 Wed Dec 14 17:02:09 EST 2016) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: normal SIGSEGV: altstack Notification: kqueue Architecture: x86 Disabled: none Misc: softdebug LLVM: yes(3.6.0svn-mono-master/8b1520c) GC: sgen

@flawlessdeadpixel

that is not the same issue. Can you pleas open your own issue?

Absolutely. My mistake.

I think they are highly related. Both are in relation to System.Net.Sockets.SocketException that is what I have narrowed it down to.

Hello,

Any updates or resolutions on this issue? Ombi will still not launch on my Mac.

Regards,

Also, if you are changing file permissions, make sure you are applying the changes to enclosed items. macOS does not auto-cascade file permissions. Not sure if that will help at all, but I was having similar issues until I applied file permissions to the enclosed items.
screen shot 2017-06-30 at 11 22 06 am

Changing file permission settings is one of the first steps taken to troubleshoot the issue and does not resolve the sockets problem. A solution has not been found yet :(

I suggest checking out #1455 its why the issue was closed.

I am going to try changing the file permissions again, but I am pretty sure I used a recursive/all inclusive command line to open up the permissions.

Give me a week or so to test and report back, but in the mean time please keep the issue open because I am still having issues with it. Unless you just want me to wait for V3 and test then.

We closed the issue because we focussing on v3. We dont support v2 anymore so it Isn't usefull to open this issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

weirdcrap picture weirdcrap  Â·  5Comments

tidusjar picture tidusjar  Â·  5Comments

Thurman86 picture Thurman86  Â·  5Comments

ThePaulMichaels picture ThePaulMichaels  Â·  4Comments

theg1nger picture theg1nger  Â·  3Comments