Author Topic: Daemonized server on ubuntu/linux?  (Read 1553 times)

jjeffers

  • Newbie
  • *
  • Posts: 7
    • View Profile
Daemonized server on ubuntu/linux?
« on: April 16, 2015, 05:52:05 am »
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.UnauthorizedAccessExce ption: 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.ReadInte rnal (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.ReadBu ffer () [0x00000] in <filename unknown>:0
  at System.IO.StreamReader.ReadLi ne () [0x00000] in <filename unknown>:0
  at System.IO.UnexceptionalStream Reader.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

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Re: Daemonized server on ubuntu/linux?
« Reply #1 on: April 16, 2015, 05:57:02 am »
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

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Daemonized server on ubuntu/linux?
« Reply #2 on: April 16, 2015, 06:21:23 am »
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

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Re: Daemonized server on ubuntu/linux?
« Reply #3 on: April 16, 2015, 07:06:17 am »
As a workaround you can open a screen and run the server in a screen. That's what I do

jjeffers

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Daemonized server on ubuntu/linux?
« Reply #4 on: April 20, 2015, 11:20:38 am »
That's what I ended up doing. Not ideal but works for now. Thanks!