Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Dan Bliss · Jan 06, 2021 at 02:40 AM · Custom Game Serversmultiplayerunreal

UE4 Dedicated Server running on docker container exits with code 1

Hello. I've recently been attempting to get my Unreal Engine dedicated server working on Playfab. However, when uploading to the site, the VM enters a "TooManyServerRestarts" state, and all servers are stuck on "Pending Heartbeat." Running the program on a docker container exits with code 1.

Running the program locally works fine, and running it outside of a container with MockVMAgent also works.

To integrate the server, I've followed the instructions posted here: https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/playfabgsdk_guide

I've also tried changing the VerifyPeer value to True, no results.

Searching threads most resulted in missing DLL files. I've been messing around with that, moving files over to the root folder, no dice.

I'm going to keep poking around, but I've practically run out of ideas. Any help or tips is greatly appreciated! Thanks in advanced!

Title ID: D0805

Unreal Engine Version: 4.25.4 (Source Build)

GDSK Version: 0.7.200221

Comment

People who like this

0 Show 2
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rick Chen ♦ · Jan 06, 2021 at 09:54 AM 0
Share

Yes. To run properly in container mode, your zipped project must contain any system DLLs that are not included in the container image. Have you followed this document: Determining required DLLs that need to be included in the asset package to check the required system DLLs and add those DLLs to your project? Did you accidentally zip a folder within your zipped project?

avatar image Dan Bliss Rick Chen ♦ · Jan 06, 2021 at 06:46 PM 0
Share

Hello, thanks for the response!

I've been working on that, I got a list of every .DLL in the server image in System32, and the list of the .DLLs that the .exe needs. All the DLLs appear to be accounted for. In addition, I enabled a feature in UE that packages any local dependencies in the binaries folder of the server. Haven't been able to get any luck on that. I'll keep working on that, since I could be missing something, but I was wondering if there was any additional settings or plugins that you know of that would cause problems?

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Dan Bliss · Jan 07, 2021 at 06:29 AM

I feel dumb, of course as soon as I post about it, I figured it out. It was a DLL, I'll type what I did here in case someone else stumbles into this problem

The culprit was a missing .DLL, specifically D3DCompiler_43.dll. UE4 ships with this .dll. Noticing this, I decided to add the dll in the Build.cs file as shown:

RuntimeDependencies.Add("$(TargetOutputDir)/D3DCOMPILER_43.dll", "$(EngineDir)/Binaries/ThirdParty/CEF3/Win64/d3dcompiler_43.dll", StagedFileType.SystemNonUFS);

For some reason, this .dll does not work. When launching the server, it instead decides to go to the one still installed in System32 by DirectX, which does not exist on the server container, something I overlooked.

Replacing the defective .dll inside my server's binaries with the one that is installed with DirectX made it work.

Comment
Rick Chen

People who like this

1 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    How to make dedicated server fo multiplayer game 0 Answers

    Unreal: Can't see other players after logging In.,Can't see other players after logging in. 1 Answer

    UE4 player can't move after connecting to server 1 Answer

    Unreal Engine Multiplayer Session 1 Answer

    ​PowerShell maxes CPU usage - Multiplayer Servers 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges