Skip to content

Python cBot still hangs on Linux Docker before OnStart() #14

Description

@yuza1018

Title: Python cBot still hangs on Linux Docker before OnStart()

I can still reproduce the Linux Docker hang described in issue #12 in my environment.
Issue #12 is closed, but I am still seeing the same behavior with the current setup.

Environment:

  • cTrader Console Docker image: ghcr.io/spotware/ctrader-console:5.7.10
  • Host: Linux x86_64 on AWS EC2
  • cBot built from a Python project using pythonnet
  • cTrader.Automate 1.0.17

Expected:

  • The Python entrypoint is imported
  • on_start() is called
  • Logs from print() or api.Print() appear

Actual:

  • The container starts and prints Starting cBot...
  • The algohost logs show Python engine initialization
  • The session router is registered
  • But execution never reaches my Python entrypoint
  • I do not see PYTHON_ENTRYPOINT_IMPORTED
  • on_start() is never called

Relevant log excerpt:

Starting cBot...
0ms|...|PythonNetEngineInitService|Initializing Python Engine
0ms|...|PythonWarmupModulesService|End of Python modules warmed up.
0ms|...|Endpoint|IsInitialized: True
...|AutomateHubBase|Router for session ... registered

This seems to be the same failure mode as issue #12, but I am still seeing it on the current image/version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions