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 /
  • API and SDK Questions /
avatar image
Question by Element808 · Aug 12, 2019 at 01:58 AM ·

Server Build Unhealthy (UE4 Dedicated)

I just uploaded my asset zip (UE4 dedicated server) and set up a new 2.0 Server build (TitleID: 5C50) and no matter what I do it returns "Unhealthy" after it finishes deploying. It ran fine in my local mock VM Agent so I don't know what else to do. Can someone check my setup and see if there's anything I did wrong? Thanks in advance!

Comment

People who like this

0 Show 8
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 Element808 · Aug 11, 2019 at 12:13 PM 0
Share

Didn't realize there was a new mock VM Agent, so I updated it and it spit out a loading asset error (previous Mock Agent didn't do this). Fixed the error that came up and it ran clean, so I'm uploading a new build and will report back with any progress/updates.

avatar image Element808 · Aug 11, 2019 at 01:11 PM 0
Share

Ok, so I uploaded my latest zip to the new build (Huli Server Test 2.0) and it still returns "Unhealthy". I logged into the VM to see if the files were extracted from the zip I specified in the Game Manager and it was extracted to the D:\ drive, but they weren't copied over to the mount path (C:\Assets).

So I dug more into the new local mock VM Agent to see if I missed anything and I don't think I did - but it's acting the same way as the Game Manager/VM is acting. It downloaded the zip, extracts them to my output folder "..\2019-08-11T02-55-27\ExtAssets\ffffffff-ffff-ffff-505c-000000000000839c839d-158b-48aa-9b18-da40ad02d543WestUs\SH0\A0" but it just doesn't copy the extracted files over.

Any help is appreciated

avatar image Andrea · Oct 28, 2020 at 09:29 AM 0
Share

Has anyone managed to get the server working with UE4? I've been trying for days and I always get the error "TooManyRestarts" and "Unhealthy".

avatar image SethDu ♦ Andrea · Nov 02, 2020 at 02:45 AM 0
Share

Have you tested your server build on local VMagent? Those errors indicate that the server build didn't start up successfully. You may add log sentences so that it can be monitored in local tool (VM agent). Please refer to: https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/locally-debugging-game-servers-and-integration-with-playfab

avatar image Andrea SethDu ♦ · Nov 02, 2020 at 07:56 AM 0
Share
I have done a lot of tests, I have been trying for days and I always have the same error, these are the screens made on windows 10 and everything works, when I load the build on the server it does not work. many users have the same problem with UE4

https://community.playfab.com/questions/46251/ue4-425-and-playfab-server-builld-not-working-1.html

https://community.playfab.com/articles/43928/compatibility-issue-discovered-with-ue425-and-play.html?childToView=46470#comment-46470

3129-mockvm.jpg (277.0 kB)
3130-build-cs.jpg (371.5 kB)
Show more comments
Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Aug 12, 2019 at 10:06 AM

Unhealthy means the build doesn’t run successfully. Currently we don’t have any documentation about UE4 dedicated Multiplayer server 2.0 but we do have a C++ test sample on the official GitHub repository. Please see it on https://github.com/PlayFab/gsdk/tree/master/cpp/testapps/cppWindowsRunnerGame then compare it with your project.

Comment

People who like this

0 Show 11 · 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
avatar image Element808 · Aug 13, 2019 at 09:04 AM 0
Share

@SethDu - thank you for your response. I'm a little further along, and now the game doesn't crash, but during my try/catch of the GSDK start() function, the catch is returning this erorr (see attached) upon running it manually on the VM. I didn't see anywhere in the cppWindowsrunnerGame code nor in documentation where I had to specify heartbeat endpoint and server id anywhere, or if I redeploy a zip file and server build, would this be taken care of automatically during the deploy process? thanks again for your assistance.

errorgsdk.png (37.6 kB)
avatar image SethDu ♦ Element808 · Aug 14, 2019 at 02:17 AM 1
Share

How do you run the build? If you want to locally debug it, you need to run it in the MockVmAgent. Please refer to https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/locally-debugging-game-servers-and-integration-with-playfab.

MockVmAgent will generate configuration files, which will be loaded by the server build.

avatar image Element808 SethDu ♦ · Aug 14, 2019 at 02:33 AM 0
Share

@SethDu - aloha again. I've gone through that guide more times than I can count, it just doesn't seem to work. So I don't know if there's a problem with the latest version of the mockVM or not, but when I run it, the game port (in the config that gets generated by the MockVmAgent) doesn't get set to what I changed it to in the multiplayer json config. Also, when I run it, I dont get any errors, but it doesn't go into standby mode, it just stays on "waiting for heartbeat). I've implemented the gsdk::start() and the readyforplayers() check properly, it just doesn't get passed waiting for heartbeat. Also, if I manually run my server.exe prior to running the MockVmAgent in powershell, it reports Standy, and Active properly. I just don't understand why it won't do it via the MockVmAgent without me running it first. Any other ideas? Again, thank you for your time.

Show more comments

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

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    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