New-Project-Final-Final-WIP / HeadlessTweaks

A ResoniteModLoader mod for Resonite. Adds some nice to have features to headless clients
MIT License
14 stars 3 forks source link

[Bug?] /startworld not working correctly #2

Closed Lyokanthrope closed 2 years ago

Lyokanthrope commented 2 years ago

Hello!

Just started using this (holy crap thank you guys for this by the way this is already fantastic) but ran into some issues with the world roster/world management. While using /startworldUrl works fine, trying to start worlds from the world roster seems to not work correctly - it appears to error out Looking at the log file, it seems to be failing to grab the world from the given world URL for some reason. I've attached a log snippet below that seems to show the failure.

2:48:23 PM.217  [INFO] [NeosModLoader/HeadlessTweaks] Executing command: startworld
2:48:26 PM.355  Resolving SessionID: 
2:48:26 PM.355  Requesting gather for: http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3
2:48:26 PM.361  Starting GatherJob for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3, AttemptsLeft: 5
2:48:26 PM.856  GatherJob Web Download for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3 attempt failed! Reason: System.Net.WebException: Specified argument was out of the range of valid values.
Parameter name: port ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: port
  at System.Net.IPEndPoint..ctor (System.Net.IPAddress address, System.Int32 port) [0x0001c] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000b4] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.MyGetResponseAsync (System.Threading.CancellationToken cancellationToken) [0x0019f] in <33b19a7ad5234d94abf4fd9b47566616>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00020] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request, System.IAsyncResult result) [0x00000] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponseTaskAsync (System.Net.WebRequest request) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.DownloadBitsAsync (System.Net.WebRequest request, System.IO.Stream writeStream, System.ComponentModel.AsyncOperation asyncOp, System.Action`3[T1,T2,T3] completionDelegate) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
Trying again. Attempts remaining: 4
2:48:29 PM.850  Starting GatherJob for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3, AttemptsLeft: 4
2:48:29 PM.972  GatherJob Web Download for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3 attempt failed! Reason: System.Net.WebException: Specified argument was out of the range of valid values.
Parameter name: port ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: port
  at System.Net.IPEndPoint..ctor (System.Net.IPAddress address, System.Int32 port) [0x0001c] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000b4] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.MyGetResponseAsync (System.Threading.CancellationToken cancellationToken) [0x0019f] in <33b19a7ad5234d94abf4fd9b47566616>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00020] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request, System.IAsyncResult result) [0x00000] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponseTaskAsync (System.Net.WebRequest request) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.DownloadBitsAsync (System.Net.WebRequest request, System.IO.Stream writeStream, System.ComponentModel.AsyncOperation asyncOp, System.Action`3[T1,T2,T3] completionDelegate) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
Trying again. Attempts remaining: 3
2:48:34 PM.416  [INFO] [NeosModLoader/HeadlessTweaks] Executing command: worlds
2:48:35 PM.983  Starting GatherJob for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3, AttemptsLeft: 3
2:48:36 PM.109  GatherJob Web Download for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3 attempt failed! Reason: System.Net.WebException: Specified argument was out of the range of valid values.
Parameter name: port ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: port
  at System.Net.IPEndPoint..ctor (System.Net.IPAddress address, System.Int32 port) [0x0001c] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000b4] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.MyGetResponseAsync (System.Threading.CancellationToken cancellationToken) [0x0019f] in <33b19a7ad5234d94abf4fd9b47566616>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00020] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request, System.IAsyncResult result) [0x00000] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponseTaskAsync (System.Net.WebRequest request) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.DownloadBitsAsync (System.Net.WebRequest request, System.IO.Stream writeStream, System.ComponentModel.AsyncOperation asyncOp, System.Action`3[T1,T2,T3] completionDelegate) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
Trying again. Attempts remaining: 2
2:48:45 PM.100  Starting GatherJob for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3, AttemptsLeft: 2
2:48:45 PM.205  GatherJob Web Download for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3 attempt failed! Reason: System.Net.WebException: Specified argument was out of the range of valid values.
Parameter name: port ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: port
  at System.Net.IPEndPoint..ctor (System.Net.IPAddress address, System.Int32 port) [0x0001c] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000b4] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.MyGetResponseAsync (System.Threading.CancellationToken cancellationToken) [0x0019f] in <33b19a7ad5234d94abf4fd9b47566616>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00020] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request, System.IAsyncResult result) [0x00000] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponseTaskAsync (System.Net.WebRequest request) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.DownloadBitsAsync (System.Net.WebRequest request, System.IO.Stream writeStream, System.ComponentModel.AsyncOperation asyncOp, System.Action`3[T1,T2,T3] completionDelegate) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
Trying again. Attempts remaining: 1
2:48:49 PM.901  [INFO] [NeosModLoader/HeadlessTweaks] Executing command: worlds
2:48:52 PM.085  [INFO] [NeosModLoader/HeadlessTweaks] Executing command: listworlds
2:48:57 PM.200  Starting GatherJob for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3, AttemptsLeft: 1
2:48:57 PM.306  GatherJob for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3 FAILED! Reason: System.Net.WebException: Specified argument was out of the range of valid values.
Parameter name: port ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: port
  at System.Net.IPEndPoint..ctor (System.Net.IPAddress address, System.Int32 port) [0x0001c] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.Connect (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000b4] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebConnection.InitConnection (System.Net.WebOperation operation, System.Threading.CancellationToken cancellationToken) [0x000cc] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebOperation.Run () [0x0009a] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebCompletionSource`1[T].WaitForCompletion () [0x00094] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.MyGetResponseAsync (System.Threading.CancellationToken cancellationToken) [0x0019f] in <33b19a7ad5234d94abf4fd9b47566616>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task`1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00020] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request, System.IAsyncResult result) [0x00000] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.GetWebResponseTaskAsync (System.Net.WebRequest request) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
  at System.Net.WebClient.DownloadBitsAsync (System.Net.WebRequest request, System.IO.Stream writeStream, System.ComponentModel.AsyncOperation asyncOp, System.Action`3[T1,T2,T3] completionDelegate) [0x0008d] in <33b19a7ad5234d94abf4fd9b47566616>:0 
2:48:57 PM.307  Failed the retrieve file for http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3, returned path: null
2:49:00 PM.340  [INFO] [NeosModLoader/HeadlessTweaks] Executing command: removeworld

I'm running this on a headless on an Ubuntu 20.04 Linux bare metal server, not Docker-ized or anything. Any help would be much appreciated!

badhaloninja commented 2 years ago

This appears to be an issue of using copy world url link (http://cloudx.azurewebsites.net/open/world/G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3) instead of the copy record url link (neosrec:///G-New-Project-Final-Fi/R-807f2e51-06d4-4ca2-a879-17a9eb1060a3)

For me using /startworldUrl also does not work with the world url

For now you can change the http://cloudx.azurewebsites.net/open/world/ with neosrec:/// and copy record url instead

Lyokanthrope commented 2 years ago

...Hm. That's weird. It gave me errors when using the record URL earlier today, but this time it worked fine with the same examples.

Apologies for the mistaken bug report, then.