Code Monkey home page Code Monkey logo

dcs-world-dedicated-server-docker's Introduction

dcs-world-dedicated-server-docker's People

Contributors

aterfax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dcs-world-dedicated-server-docker's Issues

Shortcuts don't work - xdg-open is not found

In case anyone comes across this issue.

On initial install, the launcher shortcuts that use xdg-open do not run. Again, may be specific to my setup but can easily be solved by opening the terminal and running

sudo apk add xdg-utils

Not sure why xdg-utils isn't installed by default on my system.

Alternatively, specifying the program to open the link. For example, for the WebGUI shortcut, replacing xdg-open with firefox.

Unable to open the web browser within the KasmVNC Client

This is an issue I encountered using Afterfax's previous solution that was posted on Reddit and it has made a comeback. It's probably localised to the way I setup my system but it is recurring though probably results from my ignorance of Docker intricacies.

I use a bind mount on my server:

volumes:
      - /mnt/storage/dcs_server/:/config/

Using standard PUID and GUID of 1000 in the Docker compose, after a while of operating, I start experiencing a strange bug - the web browser refuses to open. The docker logs aren't particularly helpful here but they do hint at the possibility of a permissions issue - I attach the relevant parts below.

I've tried re-deploying the container to no avail and as an experiment, even changed the folder permissions recursively on the host machine to 777 just to see if this would work, but still nothing. I'm currently unable to access the WebGUI of the server and nothing short of rebinding to a new location (along with copying or re-downloading the DCS files) will fix the issue.

I'm posting here as an open issue in case anyone else has had this problem or, as is more likely, I'm doing something stupid on my end, in which case, excuse the ignorance!

GID/UID
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
User UID:    1000
User GID:    1000
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
s6-rc-oneshot-run: fatal: unable to exec /etc/s6-overlay/s6-rc.d/init-getlatest-dcs-installer-oneshot/run: Permission denied
s6-rc: warning: unable to start service init-getlatest-dcs-installer-oneshot: command exited 126
[custom-init] No custom files found, skipping...
s6-rc-oneshot-run: fatal: unable to exec /etc/s6-overlay/s6-rc.d/init-winepreqs-oneshot/run: Permission denied
s6-rc-oneshot-run: fatal: unable to exec /etc/s6-overlay/s6-rc.d/init-desktop-setup-oneshot/run: Permission denied
s6-rc: warning: unable to start service init-winepreqs-oneshot: command exited 126
s6-rc: warning: unable to start service init-desktop-setup-oneshot: command exited 126
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Xvnc KasmVNC 1.2.0 - built Dec  9 2023 18:40:46
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation
 2023-12-16 12:26:45,579 [INFO] websocket 0: got client connection from 127.0.0.1
 2023-12-16 12:26:45,604 [PRIO] Connections: accepted: @79.185.30.221_1702726005.580413::websocket

HTTP 404 for DCS_World_Server_modular.exe

Tried the latest version and it seems like that the download url is not valid anymore:

URL="https://www.digitalcombatsimulator.com/upload/iblock/540/sv8uwi1voityg96r101mw7x45der1w41/DCS_World_Server_modular.exe"

gives me a 404 and server install will fail.
I remember in the past that there was some code to go the download page and extract the download link from the page.

Download link is now https://www.digitalcombatsimulator.com/upload/iblock/17c/slq6u1srmqqi1fb2oaofz1qx6vc5p2fh/DCS_World_Server_modular.exe (according to https://www.digitalcombatsimulator.com/en/downloads/world/server/)

Ironic that I run into a similar issue once again :D
Maybe some sort of environment variable as fallback would make sense? (and of course the html extract to get the DL url - I assume ED will update the link from time for time...)

To fix it with current version (1.0) simply download the file and put it into the config root folder (the file should be present with 0kb and must be replaced with the downloaded one)
Then it will work ๐Ÿ‘

Failed to execute child process "bash": Failed to fdwalk: Operation not permitted

On launching the DCS Installer Desktop script (or a terminal for that matter), the following error message appears:

Failed to execute child process "shell": Failed to fdwalk: Operation not permitted

This seems to be a known bug in many X11 docker terminals such as here and here.

The agreed solution is to set the security_opt option to unconfined. I have made a new pull request with the change inside the docker compose that has fixed this.

DCS Olympus

As already stated, I tried to get Olympus running.
Sadly, DCS Server crashes after successfully loading the DLLs. Starting wine with WINEDEBUG=+loaddlls it reveals that this call seems to cause the crash

7c:fixme:heap:GetNumaHighestNodeNumber semi-stub: 00007F2031C9F5B0
027c:fixme:http:HttpSetUrlGroupProperty Unhandled property 3.
wine: Call from 00006FFFFFC63D47 to unimplemented function httpapi.dll.HttpShutdownRequestQueue, aborting
027c:err:seh:NtRaiseException Unhandled exception code c0000409 flags 1 addr 0x6ffffcb6218d

As a side note:
I managed to start the DCS-Olympus client natively with node / npm. It is only required to rename some files in database/units, because the code actually expects camel-case the files are in lower case.

Implement support for DCS SimpleRadio Standalone (DCS-SRS)

See also:

Also wrt existing override implementation:

# Add required DLL overrides
echo "Installing Wine DLL overrides"
sudo -u abc /usr/bin/wine reg add 'HKCU\Software\Wine\DllOverrides' /v wbemprox /t REG_SZ /d 'native' /f

Autoinstall Desktop Shortcuts

The Shortcut for DCS Saved Games Directory, wich is created by the autoinstaller, is still mapped to the .openbeta_server, wich does not exist on new installs, instead of the .realese_server

install hangs

from logs:
0058:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0058:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."

then halts after:
0110:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
0110:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0110:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
0114:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 00007FFFFF42FF50
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.4
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.4
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.12
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.12
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.4
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.4
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.12
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.12
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.4
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.4
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.12
0110:fixme:cryptasn:CryptDecodeObjectEx Unsupported decoder for lpszStructType 1.3.6.1.4.1.311.2.1.12
0110:fixme:file:NtLockFile I/O completion on lock not implemented yet

Amend autostart script to detect dcs.lock

Autostartup scripting for DCS Server should check if the user has already manually started the server.

The lock file should populate in the saved games dir: /config/.wine/drive_c/users/abc/Saved Games/DCS.release_server/dcs.lock

aka $DCS_saved_games_dir_release/dcs.lock

DCS World Does not login properly after todays update: 2.9.4.53990

DCS World Does not login properly after todays update: 2.9.4.53990

I am trying to figx the issue, I updated the gzip package and its still throwing the same error - it seems like ED changed something in there login auth package file....

image

Bad auth data: Gunzip: header decoding error --- the version of gzip on my windows box is 1.10 and the one on alpine is 1.13... so I dont think its that, I am not sure what to do at this point

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.