• Welcome to AtomicTorch Studio Forums.
 

Daemonized server on ubuntu/linux?

Started by jjeffers, April 16, 2015, 05:52:05 AM

jjeffers

I'm noticing that starting the server via "nohup" will fail like this:

ubuntu@ip-172-31-48-101:~/VoidExpanse_v1.2.7_Linux/Server_Mono$ nohup bash -c 'mono VoidExpanse.ServerMono.exe --dedicated --load'
nohup: ignoring input and appending output to ΓÇÿnohup.outΓÇÖ
ubuntu@ip-172-31-48-101:~/VoidExpanse_v1.2.7_Linux/Server_Mono$ cat nohup.out
16.4.15 12:14:53.1246 [INF] VoidExpanse game server runtime v1.2.7
AtomicTorch Studio (c) 2013-2015
All rights reserved.
16.4.15 12:14:53.1251 [IMP] The server is now launched as a dedicated server. All server data will be loaded and processed in the current server folder.
16.4.15 12:14:53.1252 [IMP] Data folders locations:
   * Static data root path:  /home/ubuntu/VoidExpanse_v1.2.7_Linux
   * Dynamic data root path: /home/ubuntu/VoidExpanse_v1.2.7_Linux/Server_Mono/
16.4.15 12:14:53.1423 [IMP] Operations timed using the system's high-resolution performance counter.
  Timer is accurate within 100 nanoseconds
  Timer frequency in ticks per second = 10000000
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path "/home/ubuntu/VoidExpanse_v1.2.7_Linux/Server_Mono/[Unknown]" is denied.
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
  at System.IO.StreamReader.ReadBuffer () [0x00000] in <filename unknown>:0
  at System.IO.StreamReader.ReadLine () [0x00000] in <filename unknown>:0
  at System.IO.UnexceptionalStreamReader.ReadLine () [0x00000] in <filename unknown>:0
  at System.IO.SynchronizedReader.ReadLine () [0x00000] in <filename unknown>:0
  at System.Console.ReadLine () [0x00000] in <filename unknown>:0

Have other folks come across this?

Thanks!

kyokei

I'm not using this, but maybe you can give it a try with the bundled launcher?
use ./VoidExpanse.ServerMono.Bootstrapper.Bundle.Linux64 --dedicated -load 0



jjeffers

Same result as before. It looks like it's trying to read from the console, perhaps there is a STDIN that's triggering that read? I'm not sure. It's not critical, but if I can't run the server in the background after I logout, it is inconvenient.

Thanks!

kyokei

As a workaround you can open a screen and run the server in a screen. That's what I do

jjeffers

That's what I ended up doing. Not ideal but works for now. Thanks!