Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Running with a docker image - not seeing any logs

Discussion in 'Game Server Hosting' started by gogogotchi, May 9, 2023.

  1. gogogotchi

    gogogotchi

    Joined:
    Mar 21, 2023
    Posts:
    9
    Hi there!

    Relatively new to multiplay here.. I've noticed that when I run a direct upload build, I see logs in the server log tab fine, but when I run the same with a docker image, I don't see any logs. Is there something special in my build configuration arguments I need to specify (or my docker entrypoint.sh) to redirect logs appropriately so i can see them in the "logs" tab in my "server" in multiplay?

    Thanks!
     
  2. eth0net-unity

    eth0net-unity

    Unity Technologies

    Joined:
    Jan 13, 2022
    Posts:
    1
    Hi gogogotchi!

    Could you please share your current command line arguments from your build configuration?

    I suspect your logs directory is misconfigured, which can be fixed using the $$log_dir$$ parameter and a log directory/file flag to your server binary.

    Hope this helps, but with your command line arguments and knowledge of your server binary flags I can help more!

    eth0net
     
  3. escristianunity

    escristianunity

    Unity Technologies

    Joined:
    Jul 8, 2021
    Posts:
    7
  4. gogogotchi

    gogogotchi

    Joined:
    Mar 21, 2023
    Posts:
    9
    Apologies for the delay! Here they are:

    -port $$port$$ -queryport $$query_port$$ -logFile $$log_dir$$/Engine.log -batchmode -nographics -region us -r us
     
  5. gogogotchi

    gogogotchi

    Joined:
    Mar 21, 2023
    Posts:
    9
    Don't have it sorted just yet but already requested via the form!
     
  6. gogogotchi

    gogogotchi

    Joined:
    Mar 21, 2023
    Posts:
    9
    ... and this is what my command line args look like (from entrypoint.sh) -

    ./StandaloneLinux64 -batchmode -nographics $session $region $lobby $publicip $publicport -logFile

    .. the $session etc are pass thrus from the build configuration above.. taken from the example entrypoint.sh; e.g.

    while getopts s:r:l:i:p: flag
    do
    case "${flag}" in
    s) session="-session ${OPTARG}";; # custom session name
    r) region="-region ${OPTARG}";; # custom region
    l) lobby="-lobby ${OPTARG}";; # custom lobby
    i) publicip="-publicip ${OPTARG}";; # custom public ip
    p) publicport="-publicport ${OPTARG}";; # custom public port
    esac
    done
     
  7. gogogotchi

    gogogotchi

    Joined:
    Mar 21, 2023
    Posts:
    9
    bump? plz plz plz :)
     
  8. gogogotchi

    gogogotchi

    Joined:
    Mar 21, 2023
    Posts:
    9
    halp?