dayz-server-manager icon indicating copy to clipboard operation
dayz-server-manager copied to clipboard

Installation on linux issue

Open Arnoud443 opened this issue 1 year ago • 26 comments

We tried to intsall the server on linux. ( Ubuntu 22.04 )

It keeps asking for multiple packages and i installed them. rebooted the vm, but it is not wanting to install or start.

Its about these packages:
Schermafbeelding 2023-10-20 202925

Anyone have an solution?

Arnoud443 avatar Oct 20 '23 18:10 Arnoud443

Probably the way to detect the lib is wrong or the specific file changed

I will check that soonish

mr-guard avatar Oct 23 '23 12:10 mr-guard

Just tried using on Ubuntu 22.04.6, getting this image

ItzDabbzz avatar Oct 26 '23 22:10 ItzDabbzz

Encountering the same problem;(docker,image:Ubuntu:latest)

wa601121812 avatar Oct 27 '23 02:10 wa601121812

I've found the issue with the library detection and will push a fix soonish

However, you are using ubuntu22 which is not going to work anyways. DayZ does not support the glib version of ubuntu 22 You will need to use ubuntu 18 or debian bullseye (iirc)

See: https://feedback.bistudio.com/T170140

Remember: Dayz Linux Server = Experimental only. It has not been pushed to stable yet In order to get the expermental server running you will need to set "experimentalServer": true and "serverExe": "DayZServer"

mr-guard avatar Oct 27 '23 13:10 mr-guard

Hey issue is solved on 22.04 commands = sudo apt-get update sudo apt-get -y install libpcap-dev Screenshot (59) Screenshot (60) Screenshot (59) Screenshot (60)

It [works](https://installati.one/install-libpcap-dev-ubuntu-22-04/?expand_article=1)

gopaldeshmane2023 avatar Oct 31 '23 11:10 gopaldeshmane2023

the server itself probably wont start on ubuntu 22 tho

The latest version now provides a ubuntu 18 and a ubuntu latest binary Can you test it?

mr-guard avatar Oct 31 '23 16:10 mr-guard

ubuntu 18

Capture

vaxoiva avatar Feb 01 '24 09:02 vaxoiva

ubuntu 18

Capture

Please enable debug logs as it might tell you more about the actual error

mr-guard avatar Feb 04 '24 08:02 mr-guard

the server itself probably wont start on ubuntu 22 tho

The latest version now provides a ubuntu 18 and a ubuntu latest binary Can you test it?

I have some good news. It might be working in Xubuntu 23.10. I only had to install lib32gcc-13-dev and libcap-dev. I had libcurl4-dev already. I'm stuck on this screen though and it shouldn't be due to a slow connection. I have fiber here. I'm still waiting and hoping but the fact that it got this far is really good.

dayzserver

roadapathy avatar Feb 16 '24 04:02 roadapathy

Its actually not about the manager but about the dayz server itself. The dayz server has dependecies which are outdated and were last present in ubuntu 18

mr-guard avatar Feb 16 '24 15:02 mr-guard

I have had DayZserver working just fine in Ubuntu 23.10 but no mods. So that's why I turned to your resource.

roadapathy avatar Feb 16 '24 20:02 roadapathy

Its actually not about the manager but about the dayz server itself. The dayz server has dependecies which are outdated and were last present in ubuntu 18

This looks really promising! I added this to my server here in my office which also runs Xubuntu 23.10. It looks like it's working but I don't see anything on the LAN and cannot direct connect.

Screenshot_2024-02-16_23-15-55

roadapathy avatar Feb 17 '24 05:02 roadapathy

Screenshot_2024-02-16_23-25-02

Almost! It's just not listening on the right interface. It binds to 127.0.0.1 but not the LAN IP. Am I correct?

roadapathy avatar Feb 17 '24 05:02 roadapathy

yeah, you need to enable the publish api option for that also, the ingame api shouldnt listen on 2302 since that port is used by the dayz server itself

mr-guard avatar Feb 18 '24 18:02 mr-guard

Dayz released an official update for stable on linux yesterday. Is it possible to natively run this on linux now?

coolguy1771 avatar Feb 21 '24 18:02 coolguy1771

Hello guys. Very excited about the dayz server linux version finally being classified as stable! I have been using the manager on a Windows installation and it's working fine, but if I could run it on Linux, it would be a game changer for me. I tried moving the Windows setup for a linux one and everything works except that somehow, the manager do something wrong when downloading mods: image Yeah, I know, my server have many mods (64), but the strange part is that on Windows all mods are downloaded without problems, but on Linux I'm always getting this error (even after waiting hours for resetting the rate limit from Steam). It's like the manager is not understanding that the mod is already download or something like that. Did anybody faced it before? I appreciate any help!

Another topic: Does somebody have a Docker image of the manager containerized? Is that available anywhere? I searched but didn't find anything. I'll bake an image for this if nobody did it yet. This manager is awesome, helps a lot!

Thank you guys!

ifloor avatar Feb 24 '24 04:02 ifloor

I am currently working on making it fully linux compatible and I think its almost done as well..

The docker image is on its way, but it may not be desirable to use, because the dayz server will be bound to the server manager process.. might need to wrap my head around that in the futre

@ifloor SteamCMD has a rate limit that kicks in if you download that much stuff at once. Your best bet is to wait a couple of hours and retry. There is nothing much the manager can do about that. At some point it will just work. Regular updates of the mods are usually not affected as the manager will tripple check if there actually is an update before calling steam cmd

mr-guard avatar Feb 24 '24 07:02 mr-guard

Checkout https://github.com/mr-guard/dayz-server-manager/releases/tag/v3.8.0

mr-guard avatar Feb 24 '24 09:02 mr-guard

Hi MrGuard,

It was incredible to have new versions so soon! But unfortunately my error persists. I already downloaded the mods yesterday, but today I got the Rate Limit error again. It looks like that on linux the manager when checking if the mod is updated or not, it requests to download on steam and always reach my rate limit. I already have the mod locally, but the log on startup goes like this for every mod: image The strange thing is that on Windows, the config is the same, but it works awesomelly!

I use Debian Bullseye here, can it cause any problem?

About the docker part: "The docker image is on its way, but it may not be desirable to use, because the dayz server will be bound to the server manager process.." Well, I agree about the undesirability of this approach, but it's still acceptable given my needs. Currently I have only Linux hosts what operates Kubernetes workloads, in a way that my DayZ Server runs in a Windows VM that is a pod in the cluster. Exchanging a full Windows VM (which is my current reality) for the manager starting the DayZ in a bound process, is still much better to me, hehe. Anyway, I'm just spitballing, the manager is very good as it is and helps me a lot!

Thank you!

ifloor avatar Feb 25 '24 03:02 ifloor

@ifloor I think this is actually an issue thats not related to linux right there. The file_size property that the steam API returns is actually a string instead of a number.. this is why the batchsize calculation fails (as you can see in the logs the number start with a zero.. which doesnt really make sense) Since javascript doesnt complaint about math operations between string and numbers this didnt came up earlier. I will fix this right away then it should use batches properly and fix your issue hopefully :)

About the docker part: I was planning on turning the manager into a plugin based system.. but that will take quite some time and effort After that however, you could replace the server monitor and starter with plugin that talk to your k8s cluster or the docker daemon instead

Never thought that the server manager would ever need to be a k8s operator hehe

mr-guard avatar Feb 25 '24 10:02 mr-guard

Hi @mr-guard, I can confirm that problem was solved!

But right now I'm getting another error which I'm clueless: image

Updating Mods failed? Why did it fail? Checking the issues, I found out that my current error is already reported here: https://github.com/mr-guard/dayz-server-manager/issues/96

Well, I'll see what I can do about that, on Windows I'm not getting this error and the mods are the same. Anyway, I wanted to give a feedback that my previous error was gone ;)

About the docker part: I'm excited about these future upgrades, awesome things!

Thank you very much.

ifloor avatar Feb 25 '24 18:02 ifloor

Hey @mr-guard, just an idea about the starting of the server from the manager dockerized:

  • what if somehow you allow us to run scripts to deal with the direct management of the server? For example: you allow us to specify a path to a script that do the starting of the server, that way I can start another container for the dayz server on my own. And also, if no path to a script is specified, the manager follow the default local behavior that we have now. So would need a script for starting, another for stopping and another to check if the server is running (this one you can check the exit code of the script execution: if 0, ok the server is running, if -1, the server is not running and should be started. Maybe I forgot other flows that manager does, but you got the idea :-)

This is just a rough idea, maybe it can be expanded more, but with this the manager would be capable of solving my scenario of starting containers on my k8s cluster, and I think this new approach would allow interacting with the docker engine to start/stop/check another container on the same machine too (not my scenario, but other linux ppl). You could even have a folder of sample scripts on the repo, teaching examples of how to do it to new admins that would need this external management on docker and other ways;) In that direction, your code of fetching the player / vehicle / territories on the server and plotting it externally really helped me (someone who knew nothing on dayz modding). You are my hero, man ;)

Well, it's a way that is easier to achieve the external management feature, without needing to writing docker/k8s plugins/operators, which I believe would take a lot of time and effort, hehe. Anyway, it's just an idea.

Thank you!

ifloor avatar Feb 26 '24 02:02 ifloor

Hi. Excuse me to jump on the same topic. I tried fresh Linux install (Ubuntu 22) and got the following error

image

Any hints ?

Zbychus avatar Feb 26 '24 10:02 Zbychus

Small update, I tried the same on Ubuntu 23 and got the same error. All downloaded and verified, but start failed

image

EDIT. I also tried on fresh Ubuntu18 with binaries for 18 and it stopped exactly on the same spot

manager-controler.js:215:27

Zbychus avatar Feb 26 '24 11:02 Zbychus

OMG, my bad.

I did not see, the template json config file taken from linux download was configured for windows and you have to change the server binary name to DayZServer

I suggest to update the documentation of Linux installation to mention it specifically.

I confirrm the server started now and works like charm on clean Ubuntu 22. Thanks

Zbychus avatar Feb 26 '24 13:02 Zbychus

OMG, my bad.

I did not see, the template json config file taken from linux download was configured for windows and you have to change the server binary name to DayZServer

I suggest to update the documentation of Linux installation to mention it specifically.

I confirrm the server started now and works like charm on clean Ubuntu 22. Thanks

What should I do, modify server-manager.json?

faint4 avatar Apr 02 '24 10:04 faint4