Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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:
    10
    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. u-eth0net

    u-eth0net

    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:
    8
  4. gogogotchi

    gogogotchi

    Joined:
    Mar 21, 2023
    Posts:
    10
    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:
    10
    Don't have it sorted just yet but already requested via the form!
     
  6. gogogotchi

    gogogotchi

    Joined:
    Mar 21, 2023
    Posts:
    10
    ... 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:
    10
    bump? plz plz plz :)
     
  8. gogogotchi

    gogogotchi

    Joined:
    Mar 21, 2023
    Posts:
    10
    halp?