AWS Thinkbox Discussion Forums

Python Fatal Error

Hi! I’m using Deadline on Debian 11 to be my remote connection server. When I start the launcher I get this logs

WARNING: Ignoring HOME environment because effective user is root.
daemon was not added to the CommandLineParser.
daemon was not added to the CommandLineParser.
ERROR: UpdateClient.MaybeSendRequestNow caught an exception: POST http://127.0.0.1:2107/rcs/v1/update returned "One or more errors occurred. (Connection refused (127.0.0.1:2107))" (Deadline.Net.Clients.Http.DeadlineHttpRequestException)
ERROR: DataController threw a configuration exception during initialization: Failed to establish connection to 127.0.0.1:2107 due to a communication error. (Deadline.Configuration.DeadlineConfigException)
Error encountered when connecting to repository 127.0.0.1:2107: Object reference not set to an instance of an object. (System.NullReferenceException)
   at Deadline.Launcher.Launcher.ChangeRepository(RepositoryConnectionSettings updatedSettings)
   at Deadline.Launcher.Launcher.CheckForConnectionUpdate(Boolean verbose)
WARNING: PythonSync (Python 3) upgrade failed with the following error:
Object reference not set to an instance of an object.
WARNING: PythonSync (Python 2) upgrade failed with the following error:
Object reference not set to an instance of an object.
Launcher Thread - Launcher thread initializing...
Launcher Thread - opening remote TCP listening port 17000
Launcher Thread - creating local listening TCP socket on an available port...
Launcher Thread - local TCP port bound to: 127.0.0.1:45037
Launcher Thread -  updating local listening port in launcher file: 45037
Launcher Thread - Launcher thread listening on port 17000
upgraded was not added to the CommandLineParser.
upgradefailed was not added to the CommandLineParser.
service was not added to the CommandLineParser.
daemon was not added to the CommandLineParser.
Launching Worker: 
Launching Remote Connection Server
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007ff986b1b740 (most recent call first):
Aborted
root@vmi886164:/opt/Thinkbox/DeadlineRepository10/bin/Linux# Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f5065ec8740 (most recent call first):
Feature UpdateAPI: DataControllerUpdateServer starting up with updateInterval=30 seconds
Deadline Remote Connection Server 10.2 [v10.2.1.1 Release (094cbe890)]
Connected to "/opt/Thinkbox/DeadlineRepository10"
Turning off Kestrel logging
DEBUG: The RCS is capable of sending responses compressed with :br
Using ASP.Net Core server.
Listening for http requests on 0.0.0.0 port 2107 loopbackOnly False...
Counters: http-process-calls-current=0 http-process-calls-count=0 http-process-slow-calls-count=0 http-process-last-slow=none http-process-histo: ApxMean=NaN P99=NaN BoundsMs=0 Counts=0 assign-tasks-calls-current=0 assign-tasks-calls-count=0
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

I’m trying to find the modulo encodings of Python, but I can’t find it anywhere. The Deadline works fine till I submit a job, then, it INSTANTLY crashes and shutdown.

I would like to mention that I tested in Debian 10 too, I got the same issue.

Hello!

Looks like the launcher is connecting to the RCS running localhost and the port also looks different from the default. By default, RCS listens to port 4433 or 8080 depending on running with or without TLS. Can you check on the RCS machine if it is running fine and what port it is listening on?

You can check the client configuration file (deadline.ini) file, the value of the HttpListenPort or TlsListenPort will be the port RCS is listening on. You would need RCS to connect to the Repository Directly to bridge connection from the client to the Database.

1 Like

Even with the default port I’m getting the same thing.

If I start only the RCS, it runs normally, but when I submit a job, the RCS gives the log:

WARNING: Ignoring HOME environment because effective user is root.
Feature UpdateAPI: DataControllerUpdateServer starting up with updateInterval=30 seconds
Deadline Remote Connection Server 10.2 [v10.2.1.1 Release (094cbe890)]
Connected to "/opt/Thinkbox/DeadlineRepository10"
Turning off Kestrel logging
DEBUG: The RCS is capable of sending responses compressed with :br
Using ASP.Net Core server.
Listening for http requests on 0.0.0.0 port 8080 loopbackOnly False...
Counters: http-process-calls-current=0 http-process-calls-count=0 http-process-slow-calls-count=0 http-process-last-slow=none http-process-histo: ApxMean=NaN P99=NaN BoundsMs=0 Counts=0 assign-tasks-calls-current=0 assign-tasks-calls-count=0
WARNING: Limit '64b3013daa5a078e7b560b6c' with holder named 'neves-station' could not be found.
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f8bc27fc700 (most recent call first):
Aborted

Are you running 10.2.1.1 for both the Repository and this RCS?

How are you submitting a job?

Privacy | Site terms | Cookie preferences