Code Monkey home page Code Monkey logo

ark_ascended_docker's People

Contributors

azixus avatar loginator avatar mycarrysun avatar nireki avatar pleinx avatar zokradonh 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  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

ark_ascended_docker's Issues

unable to start server using provided info.

i'm still relatively new to docker, so when it throws such a generic error, i have no clue where to even start finding the issue.. any ideas out there?

mkdir: cannot create directory '': No such file or directory
+ mkdir -p ''

everytime it tries to start, it will add these two lines and nothing else will happen, and it will say "Stopped for X minutes with exit code 1"

tried another one before this, but that did not even give me anything in the logs before stopping.

Exec format error

After I run docker compose up it prints:

Container ark_... created
Attaching to asa-server-1
asa_server-1 exec /tini: exec format error

Connection Timeout (client)

The server is normally appearing on the ASA server list, but players are unable to join.

I'm not quite sure if this has something to do with this docker image alas other images have the same problem on my vHost. Maybe it's on wildcards part.

Already mentioned in #6

sudo_cmd

Getting this error after following steps on Debian 12:

~/ARK_Ascended_Docker# sudo ./manager.sh status
./manager.sh: line 14: sudo_cmd: unbound variable

Not sure how I would correct this, the variable seems to be set correctly in manager.sh

Server closes shortly after starting

This container starts up OK, but then seems to go down pretty quickly for some reason. This was after running docker compose up -d --build followed by docker compose exec asa_server manager start

asa_server  | -------- STARTING SERVER --------
asa_server  | tail: /opt/arkserver/ShooterGame/Saved/Logs/ShooterGame.log: file truncated
asa_server  | [2023.11.01-02.00.46:315][  0]Log file open, 11/01/23 02:00:46
asa_server  | [2023.11.01-02.00.46:318][  0]LogMemory: Platform Memory Stats for WindowsServer
asa_server  | [2023.11.01-02.00.46:318][  0]LogMemory: Process Physical Memory: 330.04 MB used, 332.48 MB peak
asa_server  | [2023.11.01-02.00.46:318][  0]LogMemory: Process Virtual Memory: 301.29 MB used, 301.29 MB peak
asa_server  | [2023.11.01-02.00.46:318][  0]LogMemory: Physical Memory: 951.79 MB used,  7007.23 MB free, 7959.02 MB total
asa_server  | [2023.11.01-02.00.46:318][  0]LogMemory: Virtual Memory: 1513.53 MB used,  7469.49 MB free, 8983.02 MB total
asa_server  | [2023.11.01-02.00.52:696][  0]ARK Version: 25.55
asa_server  | [2023.11.01-02.00.54:128][  1]Primal Game Data Took 0.92 seconds
asa_server  | [2023.11.01-02.00.55:430][  1]Server: "My Awesome ASA Server" has successfully started!
asa_server  | [2023.11.01-02.01.27:886][  1]Commandline:  TheIsland_WP?listen?SessionName="My Awesome ASA Server"?Port=7790?MaxPlayers=10?ServerPassword=MyServerPassword?ServerAdminPassword="MyArkAdminPassword"?RCONEnabled=True?RCONPort=32330?ServerCrosshair=true?OverrideStructurePlatformPrevention=true?OverrideOfficialDifficulty=5.0?ShowFloatingDamageText=true?AllowFlyerCarryPvE=true -log -NoBattlEye -WinLiveMaxPlayers=10 -ForceAllowCaveFlyers -ForceRespawnDinos -AllowRaidDinoFeeding=true -ActiveEvent=Summer
asa_server  | [2023.11.01-02.01.27:886][  1]Full Startup: 47.75 seconds
asa_server  | [2023.11.01-02.01.27:886][  1]Number of cores 6
asa_server  | [2023.11.01-02.01.39:042][  2]wp.Runtime.HLOD = "1"
m@Midari ARK_Ascended_Docker % docker compose exec asa_server manager status
Server PID 229
Server listening on port 7790
Server is down
m@Midari ARK_Ascended_Docker % docker compose exec asa_server manager status
Server PID not found (server offline?)

2 docker server

Hey,

is there a way to run your docker version twice simultaneously on a linux server?

greez

Transferring a local save to this server setup

I am encountering what seems to be a bug.

Way to reproduce:

git clone [email protected]:azixus/ARK_Ascended_Docker.git
cd ARK_Ascended_Docker
# copy your local save files from [localgame]/ShooterGame/Saved/SavedArksLocal/TheIsland_WP to ARK_Ascended_Docker/ark_data/ShooterGame/Saved/SavedArks/TheIsland_WP
# rename LocalPlayer.arkprofile to [steamid].arkprofile
# easy way to get this is to login to server once, the steam id will be output in the logs
sudo docker compose up -d
sudo docker compose logs -f
  • watch until the server says its fully loaded
  • you won't be able to see it in the ark search for servers list
  • if you do manager.sh status it will say server is down
  • Run manager.sh start - this will cause a second ShooterGame_2.log to appear with the following error:
[2023.12.17-21.24.18:823][  0]Log file open, 12/17/23 21:24:18
[2023.12.17-21.24.18:824][  0]LogMemory: Platform Memory Stats for WindowsServer
[2023.12.17-21.24.18:824][  0]LogMemory: Process Physical Memory: 330.09 MB used, 334.93 MB peak
[2023.12.17-21.24.18:824][  0]LogMemory: Process Virtual Memory: 303.65 MB used, 303.65 MB peak
[2023.12.17-21.24.18:824][  0]LogMemory: Physical Memory: 11944.27 MB used,  20180.80 MB free, 32125.07 MB total
[2023.12.17-21.24.18:824][  0]LogMemory: Virtual Memory: 11944.27 MB used,  28372.80 MB free, 40317.07 MB total
[2023.12.17-21.24.19:743][  0]ARK Version: 32.28
[2023.12.17-21.24.20:777][  0]Primal Game Data Took 0.73 seconds
[2023.12.17-21.24.21:365][  0]ERROR!!! FAtlasSaveManager::LoadOperationSql: SQL database is corrupt and the save game is compromised! Exiting...

Backup fails because files get changed while creating archive

./manager.sh backup
Creating backup. Backups are saved in your ./ark_backup volume.
Saving world...
Success!
tar: Saved/SavedArks/TheIsland_WP: file changed as we read it
creating backup failed

tar -xvzf backup_2023-11-09_19-18-57.tar.gz -C /etc
Saved/
Saved/SavedArks/
Saved/SavedArks/TheIsland_WP/
Saved/SavedArks/TheIsland_WP/1117001778.arktribe
Saved/SavedArks/TheIsland_WP/TheIsland_WP_AntiCorruptionBackup.bak
Saved/SavedArks/TheIsland_WP/000278f385e04ec9b32b97413f9a54ab.arkprofile
Saved/SavedArks/TheIsland_WP/TheIsland_WP_07.11.2023_21.24.45.ark
Saved/SavedArks/TheIsland_WP/TheIsland_WP_05.11.2023_22.17.23.ark
Saved/SavedArks/TheIsland_WP/TheIsland_WP.ark
Saved/SavedArks/TheIsland_WP/000278dff5174a16a29ca2a11b52a900.arkprofile
Saved/SavedArks/TheIsland_WP/1117001778.tribebak
Saved/SavedArks/TheIsland_WP/TheIsland_WP_04.11.2023_20.58.20.ark
Saved/SavedArks/TheIsland_WP/000278dff5174a16a29ca2a11b52a900.profilebak
Saved/SavedArks/TheIsland_WP/TheIsland_WP_04.11.2023_23.08.20.ark
Saved/SavedArks/TheIsland_WP/000278f385e04ec9b32b97413f9a54ab.profilebak
Saved/SavedArks/TheIsland_WP/TheIsland_WP_05.11.2023_20.07.23.ark
Saved/Logs/
.......

When the savegame is more progressed just saving the gamefiles and creating the backup doesn't work.

It seems like it's nessecary to stop the gameserver. Another possible solution seems to be first copying the /Saved dir to a temp folder and then using tar on that temp folder.

Feature Requests

Creating a list of things on the top of my mind. Feel free to break these out into individual issues. I may try to resolve some of these myself over the next week or so, but I have to jump to another project tomorrow so it might be a bit.

2023.11.02

  • #19
  • #11
  • Handle process termination more gracefully
  • Start the server on container start
  • Send all relevant logs to stdout / stderr
  • Break out mount points to separate save data from game data

Game.ini does not get loaded

I uploaded a Game.ini file from single player since I've read online that this needs to be done but it seems to not work.
I also tried to let the server generate one itself and then edit that file, that also didn't work.

No clue what is causing this but can someone check if it has to do with the container or the Proton layer?

Server is down

Hi,

After docker compose up, it seems that the server is up :

# netstat -an | grep 77
udp        0      0 0.0.0.0:7790            0.0.0.0:*
udp6       0      0 :::7790                 :::*

But the status is down :

# ./manager.sh status
Server PID not found (server offline?)
# docker compose logs -f
asa_server_docker-asa_server-1  | -------- STARTING SERVER --------
asa_server_docker-asa_server-1  | tail: /opt/arkserver/ShooterGame/Saved/Logs/ShooterGame.log: file truncated
asa_server_docker-asa_server-1  | [2023.11.09-09.36.12:034][  0]Log file open, 11/09/23 09:36:12
asa_server_docker-asa_server-1  | [2023.11.09-09.36.12:034][  0]LogMemory: Platform Memory Stats for WindowsServer
asa_server_docker-asa_server-1  | [2023.11.09-09.36.12:034][  0]LogMemory: Process Physical Memory: 331.27 MB used, 333.43 MB peak
asa_server_docker-asa_server-1  | [2023.11.09-09.36.12:034][  0]LogMemory: Process Virtual Memory: 283.05 MB used, 283.05 MB peak
asa_server_docker-asa_server-1  | [2023.11.09-09.36.12:034][  0]LogMemory: Physical Memory: 738.43 MB used,  7202.20 MB free, 7940.63 MB total
asa_server_docker-asa_server-1  | [2023.11.09-09.36.12:034][  0]LogMemory: Virtual Memory: 757.04 MB used,  8159.59 MB free, 8916.63 MB total
asa_server_docker-asa_server-1  | [2023.11.09-09.36.12:728][  0]ARK Version: 26.11
asa_server_docker-asa_server-1  | [2023.11.09-09.36.13:468][  0]Primal Game Data Took 0.49 seconds
asa_server_docker-asa_server-1  | [2023.11.09-09.36.57:503][  0]LogMemory: Platform Memory Stats for WindowsServer
asa_server_docker-asa_server-1  | [2023.11.09-09.36.57:503][  0]LogMemory: Process Physical Memory: 640.66 MB used, 654.71 MB peak
asa_server_docker-asa_server-1  | [2023.11.09-09.36.57:503][  0]LogMemory: Process Virtual Memory: 568.36 MB used, 568.36 MB peak
asa_server_docker-asa_server-1  | [2023.11.09-09.36.57:503][  0]LogMemory: Physical Memory: 1169.78 MB used,  6770.85 MB free, 7940.63 MB total
asa_server_docker-asa_server-1  | [2023.11.09-09.36.57:503][  0]LogMemory: Virtual Memory: 1188.39 MB used,  7728.24 MB free, 8916.63 MB total

Any idea ?

Also i can't find the server on ARK

Server not starting

I've been trying to get the ASA server up on my proxmox machine that has Ubuntu LTS running on a virtual machine. With ASE, i was able to run ark servers using LGSM. For ASA LGSM is not an option so i have tried your Docker solution. I followed your instructions, edited the .env, and oped port 7790 in my router. Looking at the log, it doesn't start fully. Here are the relevant log entries:
asa_server | -------- STARTING SERVER -------- asa_server | tail: /opt/arkserver/ShooterGame/Saved/Logs/ShooterGame.log: file truncated asa_server | [2023.11.05-03.37.02:238][ 0]Log file open, 11/05/23 03:37:02 asa_server | [2023.11.05-03.37.02:239][ 0]LogMemory: Platform Memory Stats for WindowsServer asa_server | [2023.11.05-03.37.02:239][ 0]LogMemory: Process Physical Memory: 331.25 MB used, 335.71 MB peak asa_server | [2023.11.05-03.37.02:239][ 0]LogMemory: Process Virtual Memory: 302.62 MB used, 302.62 MB peak asa_server | [2023.11.05-03.37.02:239][ 0]LogMemory: Physical Memory: 944.05 MB used, 31149.34 MB free, 32093.39 MB total asa_server | [2023.11.05-03.37.02:239][ 0]LogMemory: Virtual Memory: 944.05 MB used, 39341.34 MB free, 40285.39 MB total asa_server | [2023.11.05-03.37.02:950][ 0]ARK Version: 26.2 asa_server | [2023.11.05-03.37.04:160][ 8]Primal Game Data Took 0.00 seconds asa_server | [2023.11.05-03.37.28:873][ 8]LogMemory: Platform Memory Stats for WindowsServer asa_server | [2023.11.05-03.37.28:873][ 8]LogMemory: Process Physical Memory: 636.85 MB used, 649.10 MB peak asa_server | [2023.11.05-03.37.28:873][ 8]LogMemory: Process Virtual Memory: 589.93 MB used, 589.93 MB peak asa_server | [2023.11.05-03.37.28:873][ 8]LogMemory: Physical Memory: 1438.58 MB used, 30654.82 MB free, 32093.39 MB total asa_server | [2023.11.05-03.37.28:873][ 8]LogMemory: Virtual Memory: 1438.58 MB used, 38846.81 MB free, 40285.39 MB total asa_server | -------- STARTING SERVER -------- asa_server | -------- STARTING SERVER -------- asa_server | -------- STARTING SERVER --------

Backup functionality - create and load backups

Adding backup functions

[ ] Backing up the server files through the builtin manager

  • e.g. by copying the /ShooterGame/Saved folder into .tar.gz archives
  • Maybe even storing these backups in another docker volume
  • possible support for cloning the backup with rclone into cloud solutions chosen by the user

[ ] Loading previously created backups

  • Loading previously created backups simply with the provided manager

Can't connect to the server

Hi,

first of all thank you for creating this project!

I am trying to run a ark server for me and some friends but I am struggling with connecting to the server after starting the docker compose and manually triggering the start of the ark server itself.

I can not find the server in the server browser, am I missing something?

Unable to see my Ark Ascended game server?

Hi,

unfortunately you cannot see or find my ARK_Ascended_Docker server in ASA.
if you connect it with "open ip:port" then it works.
Does anyone have an idea?

Greetings from Germany

Transform manager into a Python-based manager

For now, I've started working on a toml configuration file instead of environment variables. I'm starting with the following structure, but I'm not committed to anything atm.

[ark]
install_folder = "/opt/arkserver"

# Special server configuration parameters
[ark.config]
map = "TheIsland_WP"
enable_battleye = true

# Main config flags, TheIsland_WP?listen?SessionName?...?
[ark.config.main]
SessionName = "My Awesome ASA Server"
ServerPassword = "MyServerPassword"
ServerAdminPassword = "MyArkAdminPassword"

Port = 7790
RCONPort = 32330
RCONEnabled = true

ServerCrosshair = true
OverrideOfficialDifficulty = 5.0
ShowFloatingDamageText = true
AllowFlyerCarryPve = true

# List of flags in the format -ThisIsMyFlag, e.g., -ForceAllowCaveFlyers
[ark.config.flags]
ForceAllowCaveFlyers = true
ForceRespawnDinos = true

# List of options in the format -ThisIsMyOpt=value, e.g., -ActiveEvent=Summer / -AllowRaidDinoFeeding=true
[ark.config.opts]
ActiveEvent = "Summer"
AllowRaidDinoFeeding = true
WinLiveMaxPlayers = 20

# Can probably keep that in external file
[ark.config.GameUserSettings.ServerSettings]
AutoSavePeriodMinutes = 15

# Can probably keep that in external file
[ark.config.Game."/script/shootergame/shootergamemode"]
MaxDifficulty = true

# Backup configuration settings
[ark.backup]
target_dir = "/var/backups/asa-server"
max_backup_size = "500MB"              # Size in B, MB, GB. 0 for unlimited.
max_backup_number = "100"              # Number of backup to store. 0 for unlimited.

# How to execute the ARK Ascended Server
[ark.exec]
start_type = "LINUX_PROTON" # LINUX_NATIVE / WINDOWS_NATIVE

# Static settings
[ark.advanced]
pid_file = "/opt/arkserver/.server.pid"
log_file = "/opt/arkserver/ShooterGame/Saved/Logs/ShooterGame.log"

[ark.proton]
start_command = "proton ShooterGame/Binaries/ArkAscendedServer.exe"
start_env = { STEAM_COMPAT_CLIENT_INSTALL_PATH = "/opt/proton", STEAM_COMPAT_DATA_PATH = "/home/proton" }

[steamcmd]
install_folder = "/opt/steamcmd"
user = "arkuser"

manager.sh cron "Hello World"

Hi :)

first of all, many thanks for the great work :D
Unfortunately the command

./manager.sh cron "Hello World"

does not work for me, what could be the reason?

Greez

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.