Git Product home page Git Product logo

acore-docker's Introduction

logo AzerothCore

Contributor Covenant CodeFactor StackOverflow Discord

Build Status

nopch-build core-modules-build windows-build macos-build docker-build

Introduction

AzerothCore is an open-source game server application and framework designed for hosting massively multiplayer online role-playing games (MMORPGs). It is based on the popular MMORPG World of Warcraft (WoW) and seeks to recreate the gameplay experience of the original game from patch 3.3.5a.

The original code is based on MaNGOS, TrinityCore, and SunwellCore and has since then had extensive development to improve stability, in-game mechanics, and modularity to the game. AC has also grown into a community-driven project with a significant number of contributors and developers. It is written in C++ and provides a solid foundation for creating private servers that mimic the mechanics and behavior of the official WoW servers.

Philosophy

Our main goal is to create a playable game server, offering a fully working in-game experience.

Here are the main points we focus on:

  • Stability

    • We make sure all changes pass the CIs before being merged into the master branch.
  • Blizzlike content

    • We strive to make all in-game content to be blizzlike. Therefore we have a high standard for fixes being made.
  • Customization

    • It is easy to customize your experience using modules.
  • Community driven

    • AzerothCore has an active community of developers, contributors, and users who collaborate, share knowledge, and provide support through forums, Discord channels, and other communication platforms.

Modules

AzerothCore is designed to be highly modular, allowing developers to extend and customize the game to suit their preferences or create unique gameplay experiences. This flexibility enables the addition of custom features, content, and modifications.

We have a lot of modules already made by the community, many of which can be found in the Module Catalogue.

Installation

Detailed installation instructions are available here.

Contributing

AzerothCore can also serve as a learning resource for aspiring developers who want to understand how WoW servers work, how MMORPGs are structured, how game server emulators are created, or to improve their C++ and SQL knowledge.

If you want to contribute to the project, you will find a lot of resources that will guide you in our wiki.

We also recommend you read our Contributor Covenant Code of Conduct.

Feel free to join our Discord server.

Click on the "⭐ Star" button to help us gain more visibility on Github!

Authors & Contributors

The project was born in 2016 based on SunwellCore. Unfortunately, SunwellCore was published without any git history, so on git there are no credits for all the contributors before 2016.

You can check the authors file for more details.

Important Links

License

  • The new AzerothCore source components are released under the GNU AGPL v3
  • The old sources based on MaNGOS/TrinityCore are released under the GNU GPL v2

It's important to note that AzerothCore is not an official Blizzard Entertainment product, and it is not affiliated with or endorsed by World of Warcraft or Blizzard Entertainment. AzerothCore does not in any case sponsor nor support illegal public servers. If you use this project to run an illegal public server and not for testing and learning it is your own personal choice.

Special thanks

JetBrains is providing free open-source licenses to the AzerothCore developers.

JetBrains

acore-docker's People

Contributors

helias avatar michaeldelago avatar yehonal 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

acore-docker's Issues

Already connected

I followed the tutorial to deploy the project on my cloud server. Then I modified the "address" in "realmlist" in MySQL to the IP of the cloud server. However, the client is stuck on the "Server Selection" page and shows the message "Already connected." What should I do?

Maps not updating automatically

Client data (dbc/maps/vmaps/etc..) is not being updated automatically. When new maps are out, all the current acore-docker setup will fail to execute.

To solve this problem I had to:

  • manually delete the client data container
  • run docker-compose pull
  • run docker-compose up

This procedure is neither automated nor documented, so most users can't figure it out on their own.

a little building problems

Hey dears~
I found some problems.

  1. i copied conf/dist/.env to project root folder.
    DOCKER_DB_ROOT_PASSWORD will not work. It causes permission errors if I set it.
  2. i build the container in server. i got this problem. i need to set address value at row in acore_auth.realmlist table. Can you support a env param to fit it?

thank you!

Access worldserver.conf in Docker

I've installed the server and everything is up and running. However, I'd like to make it so the max professions is greater than 2. I've read I need to edit the MaxPrimaryTradeSkill in worldserver.conf. How can I edit the .conf file in Docker? Thanks to all of you for the hard work and nice documentation!

/entrypoint.sh: line 22: /azerothcore/env/dist/bin/dbimport: No such file or directory

I clone the repo, I run docker compose up and at some point the title error appears

acore-docker-ac-db-import-1     | '/azerothcore/env/ref/etc/dbimport.conf.dist' -> '/azerothcore/env/dist/etc/dbimport.conf.dist'
acore-docker-ac-db-import-1     | '/azerothcore/env/ref/etc/modules' -> '/azerothcore/env/dist/etc/modules'
acore-docker-ac-db-import-1     | '/azerothcore/env/ref/etc/modules/mod_LuaEngine.conf.dist' -> '/azerothcore/env/dist/etc/modules/mod_LuaEngine.conf.dist'
acore-docker-ac-db-import-1     | '/azerothcore/env/ref/etc/worldserver.conf.dist' -> '/azerothcore/env/dist/etc/worldserver.conf.dist'
acore-docker-ac-db-import-1     | '/azerothcore/env/dist/etc/worldserver.conf.dist' -> '/azerothcore/env/dist/etc/worldserver.conf'
acore-docker-ac-db-import-1     | Starting worldserver...
acore-docker-ac-db-import-1     | /entrypoint.sh: line 22: /azerothcore/env/dist/bin/dbimport: No such file or directory
service "ac-db-import" didn't complete successfully: exit 127

Any help please?

Unknown commands for "docker compose down"

Steps to reproduce the problem

Install via acore-docker guide. Celebrate, enjoy.
Attempt to remove via docker compose down –rmi all -v –remove-orphans
See unknown command "–remove-orphans" for "docker compose down"

===

Sorry if I've done something stupid and am wasting your time. I followed the ChromieCraft Docker Desktop install guide, which was sourced from https://www.azerothcore.org/acore-docker/

docker compose ps and other instructions for installing and running docker desktop azeroth core functioned without issue.

I wanted to install modules but the folder names don't match module installation instructions for docker desktop, and the bash dashboard instructions don't appear to indicate how to install modules if not using cmake which is in all the module instructions, so I thought I would remove everything and start over with the classic install guide instead.

I got stuck on the removing everything bit, and feel proper daft.

For some reason I seem to be unable to remove the containers to start fresh. There are listed commands for uninstalling and removing the volumes which windows responds with "unknown command"

docker compose down –rmi all -v –remove-orphans
docker compose down –remove-orphans

results in either

unknown command "–remove-orphans" for "docker compose down"

or

unknown command "–rmi" for "docker compose down"

Workaround

In the end I just used the Docker Desktop environment where I could click on the trash can symbol for containers, images and volumes to delete it. Maybe the acore-docker guide needs to be updated with a different command?

Thank you for your contribution to all these wonderful projects.

failed to load character when serving containers on remote VM

I followed suggested steps on my Windows laptop with all the containers running in WSL. After docker compose up, I am able to use the 335 client to login and play.

After that I decided to move the whole service to my remote VM. Everything worked as expected, but when I point my local client to the remote service, I got stuck on the realm loading page. I can see the available realm but after selecting one, the client doesn't go to the character page.

After checking local logs, I saw a client log as below.

4/11 23:10:43.349 ClientConnection Completed: COP_CONNECT code=RESPONSE_FAILED_TO_CONNECT result=FALSE

unable to start ac-authserver & ac-worldserver

Hi,

The acore-docker version is as per the date of this post. I previously have a running acore-docker working fine, aged about a few months back. So yesterday, I updated my installation via the standard "docker compose pull" etc, but unable to start the ac-authserver and ac-worldserver. Thinking that probably the db update was at fault, I decided to do a clean install to test. With the same result. So far these are my findings.

Issues:

  1. ac-eluna-ts-dev container prompting "Error: Permission" related issue which after I dig around, I found that that the container are having problem trying to use these folders and files contained in acore-docker/scripts. This includes acore-docker/scripts/lua and acore-docker/typescript.

Solutions: I chown the folder acore-docker/scripts and both it's subfolders lua and typescript with the group id of 1000 . This resolved the "Permission" error I received earlier with now the container are able to create the required files. But now the container is showing as "unhealthy" with the log of:

// ac-eluna-ts-dev log START
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
added 48 packages, and audited 49 packages in 26s
5 packages are looking for funding
run npm fund for details
npm notice
npm notice New major version of npm available! 8.19.3 -> 10.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.1.0
npm notice Run npm install -g [email protected] to update!
npm notice
found 0 vulnerabilities

@azerothcore/[email protected] dev
node run build --watch
3:55:51 AM - Starting compilation in watch mode...
3:55:56 AM - Found 0 errors. Watching for file changes.
npm ERR! path /eluna-ts
npm ERR! command failed
npm ERR! signal SIGTERM
npm ERR! command sh -c -- node run build --watch
npm ERR! A complete log of this run can be found in:
npm ERR! /home/node/.npm/_logs/2023-09-14T03_55_47_349Z-debug-0.log
up to date, audited 49 packages in 2s
5 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@azerothcore/[email protected] dev
node run build --watch
4:33:23 AM - Starting compilation in watch mode...
4:33:26 AM - Found 0 errors. Watching for file changes.
//ac-eluna-ts-dev log END

  1. ac-db-import unable to run properly. I checked the log and got this:

// ac-db-import log START
DatabasePool Login NOT opened. There were errors opening the MySQL connections. Check your log file for specific errors
���qCould not connect to MySQL database at 127.0.0.1: Can't connect to MySQL server on '127.0.0.1:3306' (111)
DatabasePool Login NOT opened. There were errors opening the MySQL connections. Check your log file for specific errors
AzerothCore rev. 27943b6175ca+ 2023-09-13 23:59:51 +0000 (master branch) (Unix, RelWithDebInfo, Static) (dbimport)
to stop.
█████╗ ███████╗███████╗██████╗ ██████╗ ████████╗██╗ ██╗
██╔══██╗╚══███╔╝██╔════╝██╔══██╗██╔═══██╗╚══██╔══╝██║ ██║
███████║ ███╔╝ █████╗ ██████╔╝██║ ██║ ██║ ███████║
██╔══██║ ███╔╝ ██╔══╝ ██╔══██╗██║ ██║ ██║ ██╔══██║
██║ ██║███████╗███████╗██║ ██║╚██████╔╝ ██║ ██║ ██║
╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
██████╗ ██████╗ ██████╗ ███████╗
██╔════╝██╔═══██╗██╔══██╗██╔════╝
██║ ██║ ██║██████╔╝█████╗
██║ ██║ ██║██╔══██╗██╔══╝
╚██████╗╚██████╔╝██║ ██║███████╗
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
AzerothCore 3.3.5a - www.azerothcore.org

Using configuration file: /azerothcore/env/dist/etc/dbimport.conf
Using SSL version: OpenSSL 1.1.1f 31 Mar 2020 (library: OpenSSL 1.1.1f 31 Mar 2020)
Using Boost version: 1.71.0

Opening DatabasePool 'acore_auth'. Asynchronous connections: 1, synchronous connections: 1.
��
// ac-db-import log END

  1. ac-client-data exit with status " 0 " when started. No log.

  2. ac-authserver and ac-worldserver unable to start, both exited with code " 1 ".

From my surface understanding, this might be related to ac-db-import and ac-eluna-ts-dev issue.

May I know if others have the same problem with the new version?

cant start docker container

./acore.sh docker start:app

it shows following error

`ranhu@Rans-MacBook-Pro azerothcore-wotlk % ./acore.sh docker start:app
NOTICE: file </Users/ranhu/Desktop/azerothcore-wotlk/conf/config.sh> not found, we use default configuration only.
Deno version check:
Version 1.26.0 is already installed

Running: docker compose --profile app up
[+] Running 1/0
⠿ Container azerothcore-wotlk-ac-database-1 Running 0.0s
Attaching to azerothcore-wotlk-ac-authserver-1, azerothcore-wotlk-ac-database-1, azerothcore-wotlk-ac-db-import-1, azerothcore-wotlk-ac-worldserver-1
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "./env/dist/bin/dbimport": stat ./env/dist/bin/dbimport: no such file or directory: unknown
error: Uncaught (in promise) Error: Failed with error: 1, however,
it's not related to this Deno script directly. An error occurred within
the script called by the command itself
throw new Error(Failed with error: ${status.code}, however, ^ at Command.<anonymous> (file:///Users/ranhu/Desktop/azerothcore-wotlk/apps/docker/docker-cmd.ts:268:17) at async Promise.all (index 0) at async main (file:///Users/ranhu/Desktop/azerothcore-wotlk/apps/docker/docker-cmd.ts:324:7) ranhu@Rans-MacBook-Pro azerothcore-wotlk % git status On branch master Your branch is up to date with 'origin/master'.

ERROR: 'network_mode' and 'networks' cannot be combined

Running on Ubuntu with Docker version 20.10.12, build 20.10.12-0ubuntu4

When I spin up the included docker-compose with docker-compose up

I'm met with this error:

ERROR: 'network_mode' and 'networks' cannot be combined

eluna is not work

After using acore-docker to start the game, the lua file in script/lua cannot be loaded.
What is shown in the log is this:
image

by the way I use reload enluna and there is a 'reload enluna...' prompt but the lua script is not loaded in the game.

Fail to reset MySQL native password

Since MySQL 8.0 there is a new authentication mechanism by default that prevents some apps from logging in (see mysqljs/mysql#1507 for nodejs-based apps for example).

This affects Keira3 as well. This is a known issue and the solution is usually simple (see https://stackoverflow.com/q/65271160/3497671 ), just reset the password using mysql_native_password :

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

However in acore-docker this solution DOES NOT WORK. The query is executed without errors, but password doesn't get reset and the error persists.

I've tried by running the query from both HeidiSQL as well as directly from the MySQL server console using the bash command line inside the docker container, nothing worked.

client can not login game

account create dc 111111 111111

mysql -uroot -ppassword
SHOW DATABASES;
mysql> use acore_auth
SELECT * FROM realmlist;
UPDATE realmlist SET address='192.168.37.128';

realmlist.wtf
SET realmlist 192.168.37.128

azerothcore-wotlk-ac-worldserver-1 | Load Petitions...
azerothcore-wotlk-ac-worldserver-1 | >> Loaded 0 Petitions!
azerothcore-wotlk-ac-worldserver-1 |
azerothcore-wotlk-ac-worldserver-1 | Load Petition Signs...
azerothcore-wotlk-ac-worldserver-1 | >> Loaded 0 Petition signs!
azerothcore-wotlk-ac-worldserver-1 |
azerothcore-wotlk-ac-worldserver-1 | Load Stored Loot Items...
azerothcore-wotlk-ac-worldserver-1 | >> Loaded 0 stored items!
azerothcore-wotlk-ac-worldserver-1 |
azerothcore-wotlk-ac-worldserver-1 | Load Channel Rights...
azerothcore-wotlk-ac-worldserver-1 | >> Loaded 0 Channel Rights!
azerothcore-wotlk-ac-worldserver-1 |
azerothcore-wotlk-ac-worldserver-1 | Load Channels...
azerothcore-wotlk-ac-worldserver-1 | >> Loaded 0 channels. DB table channels is empty.
azerothcore-wotlk-ac-worldserver-1 |
azerothcore-wotlk-ac-worldserver-1 | WORLD: World Initialized In 0 Minutes 15 Seconds
azerothcore-wotlk-ac-worldserver-1 |
azerothcore-wotlk-ac-worldserver-1 | AzerothCore rev. unknown 1970-01-01 00:00:00 +0000 (Archived branch) (Unix, RelWithDebInfo, Static)
azerothcore-wotlk-ac-worldserver-1 | WARNING: You are using OpenSSL version 1.1 which is soon EOL!
azerothcore-wotlk-ac-worldserver-1 | This version will be deprecated. Consider upgrading to OpenSSL 3.0 or 3.1!
azerothcore-wotlk-ac-worldserver-1 | Starting up Auction House Listing thread...
azerothcore-wotlk-ac-worldserver-1 | Calendar deletion of old events.
azerothcore-wotlk-ac-worldserver-1 | AC> Update time diff: 2. Players online: 0.
azerothcore-wotlk-ac-authserver-1 | Ping MySQL to keep connection alive

How to install modules?

Hello, and first thank you for the amazing work in putting together those Docker images! My instance is running flawlessly.

There's this mod-autobalance module that I'd like to install and in the official docs they're talking about needing to recompile AzerothCore in order for it to work correctly. I'm not sure how that applies to Docker.

Could anybody help me figure it out? Thanks 💙

Edit: Worth noting I'm using Docker Swarm and not Docker Compose. I'm not sure how to translate docker compose up -d --build into Swarm.

Map file '/azerothcore/env/dist/data/maps/0004331.map': does not exist!

docker compose up

and

acore-docker-ac-worldserver-1 | Map file '/azerothcore/env/dist/data/maps/0004331.map': does not exist!
acore-docker-ac-worldserver-1 | exit code: 1
acore-docker-ac-worldserver-1 | worldserver terminated, restarting...
acore-docker-ac-worldserver-1 | worldserver Terminated after 1 seconds, termination count: : 5
acore-docker-ac-worldserver-1 | Running without GDB
acore-docker-ac-worldserver-1 | Error while configuring Appender GM in Logger commands.gm. Appender does not exist

acore-docker-ac-eluna-ts-dev-1 | npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.

docker compose up can't finish in lastest version, due to the failed in acore-docker-ac-eluna-ts-dev-1 container:

...
[+] Running 6/6
 ⠿ Container acore-docker-ac-client-data-1   Created                                                               2.6s
 ⠿ Container acore-docker-ac-database-1      Created                                                               1.4s
 ⠿ Container acore-docker-ac-eluna-ts-dev-1  Created                                                               1.4s
 ⠿ Container acore-docker-ac-db-import-1     Created                                                               0.4s
 ⠿ Container acore-docker-ac-authserver-1    Created                                                               0.2s
 ⠿ Container acore-docker-ac-worldserver-1   Created                                                               0.4s
Attaching to acore-docker-ac-authserver-1, acore-docker-ac-client-data-1, acore-docker-ac-database-1, acore-docker-ac-db-import-1, acore-docker-ac-eluna-ts-dev-1, acore-docker-ac-worldserver-1
acore-docker-ac-database-1      | 2023-01-23 05:04:01+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.32-1.el8 started.
acore-docker-ac-client-data-1 exited with code 0
acore-docker-ac-database-1      | 2023-01-23 05:04:04+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
acore-docker-ac-database-1      | 2023-01-23 05:04:04+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.32-1.el8 started.
acore-docker-ac-database-1      | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
acore-docker-ac-database-1      | 2023-01-23T05:04:06.394956Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
acore-docker-ac-database-1      | 2023-01-23T05:04:06.484539Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.32) starting as process 1
acore-docker-ac-database-1      | 2023-01-23T05:04:06.793011Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
acore-docker-ac-database-1      | 2023-01-23T05:04:10.497660Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
acore-docker-ac-database-1      | 2023-01-23T05:04:11.697895Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
acore-docker-ac-database-1      | 2023-01-23T05:04:11.781448Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
acore-docker-ac-database-1      | 2023-01-23T05:04:13.188234Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
acore-docker-ac-database-1      | 2023-01-23T05:04:13.188276Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
acore-docker-ac-database-1      | 2023-01-23T05:04:13.278647Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
acore-docker-ac-database-1      | 2023-01-23T05:04:13.899271Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
acore-docker-ac-database-1      | 2023-01-23T05:04:13.976242Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.32'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
acore-docker-ac-eluna-ts-dev-1  | npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
acore-docker-ac-db-import-1     | Wrong Loggers configuration. Review your Logger config section.
acore-docker-ac-db-import-1     | Creating default loggers [root (Error), server (Info)] to console
acore-docker-ac-db-import-1 exited with code 1
service "ac-db-import" didn't completed successfully: exit 1

After docker compose command finished:

# docker ps
CONTAINER ID   IMAGE                   COMMAND                  CREATED         STATUS                            PORTS                                                    NAMES
164836aefde5   acore/eluna-ts:master   "docker-entrypoint.s…"   7 minutes ago   Restarting (243) 37 seconds ago
                                                   acore-docker-ac-eluna-ts-dev-1
cce92dd72eb3   mysql:8.0               "docker-entrypoint.s…"   7 minutes ago   Up 7 minutes (healthy)            33060/tcp, 0.0.0.0:63306->3306/tcp, :::63306->3306/tcp   acore-docker-ac-database-1

The container acore-docker-ac-eluna-ts-dev-1 is always restarting, logs:

# docker logs acore-docker-ac-eluna-ts-dev-1
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
npm WARN checkPermissions Missing write access to /eluna-ts/modules
npm WARN notsup Unsupported engine for @azerothcore/[email protected]: wanted: {"node":">=14.0.0","npm":">=7.0.0"} (current: {"node":"14.20.0","npm":"6.14.17"})
npm WARN notsup Not compatible with your version of node/npm: @azerothcore/[email protected]
npm WARN notsup Unsupported engine for @azerothcore/[email protected]: wanted: {"node":">=14.0.0","npm":">=7.0.0"} (current: {"node":"14.20.0","npm":"6.14.17"})
npm WARN notsup Not compatible with your version of node/npm: @azerothcore/[email protected]
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /eluna-ts/modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/eluna-ts/modules'
npm ERR!  [Error: EACCES: permission denied, access '/eluna-ts/modules'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/eluna-ts/modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2023-01-23T05_14_38_490Z-debug.log

Database does not get populated with client data.

Following this guide: https://www.azerothcore.org/acore-docker/#step-by-step-installation

On the import step, you end up with this error message:

redacted:~/acore-docker# docker compose up ac-db-import
[+] Running 3/3
 ⠿ Network acore-docker_default           Created                                                 0.1s
 ⠿ Container acore-docker-ac-database-1   Running                                                 0.0s
 ⠿ Container acore-docker-ac-db-import-1  Created                                                 0.1s
Attaching to acore-docker-ac-db-import-1
acore-docker-ac-db-import-1  | Could not connect to MySQL database at ac-database: Unknown database 'acore_auth'

It seems the database is not created in the import script, and so it doesnt get populated. One can go in and do it manually for:

acore_auth

acore_world

acore_characters

make: *** [Makefile:130: all] Error 2

cd /wow/

wget https://github.com/ZhengPeiRu21/azerothcore-wotlk/archive/refs/heads/Playerbot.zip

unzip

mv azerothcore-wotlk-Playerbot azerothcore-wotlk

wget https://github.com/ZhengPeiRu21/mod-playerbots/archive/AzerothCore.zip

unzip

mv mod-playerbots-AzerothCore /wow/azerothcore-wotlk/modules

./acore.sh docker build
...
/usr/bin/ld: ../../../modules/libmodules.a(ModulesLoader.cpp.o): in function AddModulesScripts()': /azerothcore/var/build/obj/modules/gen_scriptloader/static/ModulesLoader.cpp:53: undefined reference to Addmod_playerbots_AzerothCoreScripts()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/server/apps/CMakeFiles/worldserver.dir/build.make:177: src/server/apps/worldserver] Error 1
make[1]: *** [CMakeFiles/Makefile2:1086: src/server/apps/CMakeFiles/worldserver.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Scripts not loading

Hey, I'm able to start, run and connect to the server, but now I want to customize it and I've added to

scripts/typescript/index.ts the content from scripts/typescript/examples/example.ts

i've also attached to the container with

docker attach acore-docker-ac-worldserver-1 and run reload eluna

but nothing happens

I've also restarted the containers with docker-compose down and up again

acore-docker-ac-eluna-ts-dev-1 can‘t ready

acore-docker-ac-eluna-ts-dev-1 can‘t ready
os:Ubuntu 20.04.5 LTS and centos 7.9.2009

docker compose version v2.15.1
docker version 20.10.23, build 7155243
docker image :

acore/ac-wotlk-client-data:7.0.0-dev.0
acore/ac-wotlk-worldserver:7.0.0-dev.0
acore/ac-wotlk-authserver:7.0.0-dev.0
acore/eluna-ts:master

two systems are the same error

acore-docker-ac-worldserver-1 | Calendar deletion of old events.
acore-docker-ac-worldserver-1 | Calendar deletion of old events.
acore-docker-ac-eluna-ts-dev-1 exited with code 1
acore-docker-ac-eluna-ts-dev-1 exited with code 1

root@ecs-861d-0728695:~# docker logs acore-docker-ac-eluna-ts-dev-1
touch: index.ts: Permission denied
touch: index.ts: Permission denied
touch: index.ts: Permission denied
touch: index.ts: Permission denied
touch: index.ts: Permission denied
touch: index.ts: Permission denied
touch: index.ts: Permission denied

thanks!

Stuck at Realm Selection List

Just installed acore docker with docker compose. Created user and logged in fine with client but stuck at the realm selection screen. Always loops. Read that it could be the world server not started or it could be an IP issue with a SQL table. I changed the local IP address in the acore_auth realmlist to a local IP but that didn't work either.

Service "ac-db-import" didn't complete successfully: exit 127

~/acore-docker$ sudo docker compose up
[+] Running 8/8
✔ Network acore-docker_ac-network Created 0.1s
✔ Network acore-docker_default Created 0.1s
✔ Container acore-docker-ac-eluna-ts-dev-1 Created 0.1s
✔ Container acore-docker-ac-database-1 Created 0.1s
✔ Container acore-docker-ac-client-data-1 Created 0.2s
✔ Container acore-docker-ac-db-import-1 Created 0.1s
✔ Container acore-docker-ac-authserver-1 Created 0.1s
✔ Container acore-docker-ac-worldserver-1 Created 0.2s
Attaching to acore-docker-ac-authserver-1, acore-docker-ac-client-data-1, acore-docker-ac-database-1, acore-docker-ac-db-import-1, acore-docker-ac-eluna-ts-dev-1, acore-docker-ac-worldserver-1
acore-docker-ac-database-1 | 2023-11-07 21:35:35+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.35-1.el8 started.
acore-docker-ac-client-data-1 | #######################
acore-docker-ac-client-data-1 | Client data downloader
acore-docker-ac-client-data-1 | #######################
acore-docker-ac-client-data-1 | Downloading client data in: /azerothcore/env/dist/data/data.zip ...
acore-docker-ac-client-data-1 | % Total % Received % Xferd Average Speed Time Time Time Current
acore-docker-ac-client-data-1 | Dload Upload Total Spent Left Speed
acore-docker-ac-database-1 | 2023-11-07 21:35:35+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
acore-docker-ac-database-1 | 2023-11-07 21:35:35+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.35-1.el8 started.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
acore-docker-ac-database-1 | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
acore-docker-ac-database-1 | 2023-11-07T21:35:36.144187Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
acore-docker-ac-database-1 | 2023-11-07T21:35:36.146598Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.35) starting as process 1
acore-docker-ac-database-1 | 2023-11-07T21:35:36.158469Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
acore-docker-ac-database-1 | 2023-11-07T21:35:36.467802Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
acore-docker-ac-database-1 | 2023-11-07T21:35:36.842846Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
acore-docker-ac-database-1 | 2023-11-07T21:35:36.842932Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
acore-docker-ac-database-1 | 2023-11-07T21:35:36.851622Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
acore-docker-ac-database-1 | 2023-11-07T21:35:36.908446Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
acore-docker-ac-database-1 | 2023-11-07T21:35:36.908542Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.35' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
acore-docker-ac-db-import-1 | '/azerothcore/env/ref/etc/authserver.conf.dist' -> '/azerothcore/env/dist/etc/authserver.conf.dist'
acore-docker-ac-db-import-1 | '/azerothcore/env/ref/etc/dbimport.conf.dist' -> '/azerothcore/env/dist/etc/dbimport.conf.dist'
acore-docker-ac-db-import-1 | '/azerothcore/env/ref/etc/modules' -> '/azerothcore/env/dist/etc/modules'
acore-docker-ac-db-import-1 | '/azerothcore/env/ref/etc/modules/mod_LuaEngine.conf.dist' -> '/azerothcore/env/dist/etc/modules/mod_LuaEngine.conf.dist'
acore-docker-ac-db-import-1 | '/azerothcore/env/ref/etc/worldserver.conf.dist' -> '/azerothcore/env/dist/etc/worldserver.conf.dist'
acore-docker-ac-db-import-1 | '/azerothcore/env/dist/etc/worldserver.conf.dist' -> '/azerothcore/env/dist/etc/worldserver.conf'
acore-docker-ac-db-import-1 | Starting worldserver...
acore-docker-ac-db-import-1 | /entrypoint.sh: line 22: /azerothcore/env/dist/bin/dbimport: No such file or directory
acore-docker-ac-eluna-ts-dev-1 | npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
acore-docker-ac-eluna-ts-dev-1 |
acore-docker-ac-eluna-ts-dev-1 | added 48 packages, and audited 49 packages in 7s
acore-docker-ac-eluna-ts-dev-1 |
acore-docker-ac-eluna-ts-dev-1 | 6 packages are looking for funding
acore-docker-ac-eluna-ts-dev-1 | run npm fund for details
acore-docker-ac-eluna-ts-dev-1 |
acore-docker-ac-eluna-ts-dev-1 | found 0 vulnerabilities
acore-docker-ac-eluna-ts-dev-1 | npm notice
acore-docker-ac-eluna-ts-dev-1 | npm notice New major version of npm available! 8.19.3 -> 10.2.3
acore-docker-ac-eluna-ts-dev-1 | npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.3
acore-docker-ac-eluna-ts-dev-1 | npm notice Run npm install -g [email protected] to update!
acore-docker-ac-eluna-ts-dev-1 | npm notice
service "ac-db-import" didn't complete successfully: exit 127

I can't seem to get past this point.

NPM permission issues

I followed a suggestion to fix one of the containers not starting due to index permission. But I'm noticing that the acore-docker-ac-eluna-ts-dev-1 container is spitting out the following error now:

npm WARN logfile Error: EACCES: permission denied, scandir '/root/.npm/_logs'
npm WARN logfile  error cleaning log files [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
npm WARN logfile   errno: -13,
npm WARN logfile   code: 'EACCES',
npm WARN logfile   syscall: 'scandir',
npm WARN logfile   path: '/root/.npm/_logs'
npm WARN logfile }
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /root/.npm/_cacache/tmp
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 1000:1000 "/root/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

Any idea how to fix this? It seems to be a directory in the container but I can't access it when it's in a restart loop.

acore-docker-ac-eluna-ts-dev-1 exited with code 1

OS: CENTOS 7.9
docker:Docker version 23.0.5, build bc4487a
docker compose :Docker Compose version v2.17.3
acore-docker-ac-eluna-ts-dev-1 exited with code 1

Additionally, I have already tried the solution for the "acore-docker-ac-eluna-ts-dev-1 can't ready #14" issue, but encountered a new error.
acore-docker-ac-eluna-ts-dev-1 |
acore-docker-ac-eluna-ts-dev-1 | up to date, audited 49 packages in 2s
acore-docker-ac-eluna-ts-dev-1 |
acore-docker-ac-eluna-ts-dev-1 | 5 packages are looking for funding
acore-docker-ac-eluna-ts-dev-1 | run npm fund for details
acore-docker-ac-eluna-ts-dev-1 |
acore-docker-ac-eluna-ts-dev-1 | found 0 vulnerabilities
acore-docker-ac-eluna-ts-dev-1 |
acore-docker-ac-eluna-ts-dev-1 | > @azerothcore/[email protected] dev
acore-docker-ac-eluna-ts-dev-1 | > node run build --watch
acore-docker-ac-eluna-ts-dev-1 |
acore-docker-ac-eluna-ts-dev-1 | npm WARN logfile Error: EACCES: permission denied, scandir '/root/.npm/_logs'
acore-docker-ac-eluna-ts-dev-1 | npm WARN logfile error cleaning log files [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
acore-docker-ac-eluna-ts-dev-1 | npm WARN logfile errno: -13,
acore-docker-ac-eluna-ts-dev-1 | npm WARN logfile code: 'EACCES',
acore-docker-ac-eluna-ts-dev-1 | npm WARN logfile syscall: 'scandir',
acore-docker-ac-eluna-ts-dev-1 | npm WARN logfile path: '/root/.npm/_logs'
acore-docker-ac-eluna-ts-dev-1 | npm WARN logfile }
acore-docker-ac-eluna-ts-dev-1 | npm ERR! code EACCES
acore-docker-ac-eluna-ts-dev-1 | npm ERR! syscall mkdir
acore-docker-ac-eluna-ts-dev-1 | npm ERR! path /root/.npm/_cacache/tmp
acore-docker-ac-eluna-ts-dev-1 | npm ERR! errno -13
acore-docker-ac-eluna-ts-dev-1 | npm ERR!
acore-docker-ac-eluna-ts-dev-1 | npm ERR! Your cache folder contains root-owned files, due to a bug in
acore-docker-ac-eluna-ts-dev-1 | npm ERR! previous versions of npm which has since been addressed.
acore-docker-ac-eluna-ts-dev-1 | npm ERR!
acore-docker-ac-eluna-ts-dev-1 | npm ERR! To permanently fix this problem, please run:
acore-docker-ac-eluna-ts-dev-1 | npm ERR! sudo chown -R 1000:1000 "/root/.npm"
acore-docker-ac-eluna-ts-dev-1 |
acore-docker-ac-eluna-ts-dev-1 | npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
acore-docker-ac-eluna-ts-dev-1 | npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal
acore-docker-ac-eluna-ts-dev-1 | Failed

And also, the error log in the Docker container.

�^npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal
��Failed
��
�&up to date, audited 49 packages in 3s
��
#5 packages are looking for funding
�� run npm fund for details
��
��found 0 vulnerabilities
��
�"> @azerothcore/[email protected] dev
��> node run build --watch
��
�Nnpm WARN logfile Error: EACCES: permission denied, scandir '/root/.npm/_logs'
�lnpm WARN logfile error cleaning log files [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
��npm WARN logfile errno: -13,
�#npm WARN logfile code: 'EACCES',
�'npm WARN logfile syscall: 'scandir',
�,npm WARN logfile path: '/root/.npm/_logs'
��npm WARN logfile }
�5�c2:24:34 PM - Starting compilation in watch mode...
��
��npm ERR! code EACCES
��npm ERR! syscall mkdir
�&npm ERR! path /root/.npm/_cacache/tmp
��npm ERR! errno -13

npm ERR!
�Fnpm ERR! Your cache folder contains root-owned files, due to a bug in
�Bnpm ERR! previous versions of npm which has since been addressed.

npm ERR!
�6npm ERR! To permanently fix this problem, please run:
�0npm ERR! sudo chown -R 1000:1000 "/root/.npm"
��
�_npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
�^npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal
��Failed
��
�&up to date, audited 49 packages in 3s
��
#5 packages are looking for funding
�� run npm fund for details
��
��found 0 vulnerabilities
��
�"> @azerothcore/[email protected] dev
��> node run build --watch
��
�Nnpm WARN logfile Error: EACCES: permission denied, scandir '/root/.npm/_logs'
�lnpm WARN logfile error cleaning log files [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
��npm WARN logfile errno: -13,
�#npm WARN logfile code: 'EACCES',
�'npm WARN logfile syscall: 'scandir',
�,npm WARN logfile path: '/root/.npm/_logs'
��npm WARN logfile }
��npm ERR! code EACCES
��npm ERR! syscall mkdir
�&npm ERR! path /root/.npm/_cacache/tmp
��npm ERR! errno -13

npm ERR!
�Fnpm ERR! Your cache folder contains root-owned files, due to a bug in
�Bnpm ERR! previous versions of npm which has since been addressed.

npm ERR!
�6npm ERR! To permanently fix this problem, please run:
�0npm ERR! sudo chown -R 1000:1000 "/root/.npm"
��
�_npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
�^npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal
��Failed
��
�&up to date, audited 49 packages in 2s
��
#5 packages are looking for funding
�� run npm fund for details
��
��found 0 vulnerabilities
��
�"> @azerothcore/[email protected] dev
��> node run build --watch
��
�Nnpm WARN logfile Error: EACCES: permission denied, scandir '/root/.npm/_logs'
�lnpm WARN logfile error cleaning log files [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
��npm WARN logfile errno: -13,
�#npm WARN logfile code: 'EACCES',
�'npm WARN logfile syscall: 'scandir',
�,npm WARN logfile path: '/root/.npm/_logs'
��npm WARN logfile }
��npm ERR! code EACCES
��npm ERR! syscall mkdir
�&npm ERR! path /root/.npm/_cacache/tmp
��npm ERR! errno -13

npm ERR!
�Fnpm ERR! Your cache folder contains root-owned files, due to a bug in
�Bnpm ERR! previous versions of npm which has since been addressed.

npm ERR!
�6npm ERR! To permanently fix this problem, please run:
�0npm ERR! sudo chown -R 1000:1000 "/root/.npm"
��
�_npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
�^npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal
��Failed

Helm Chart

I started converting docker compose to a Helm Chart, if anyone is interested I could try to create repo for it.
Currently able to get it up and running, but also being my first time messing around with acore in general I have not got the account creation or public IP address in the mysql worked out in the deployment just yet. Those are still manual.

When I exec into the worldserver or authserver the account create does not work. Is there some command to run inside the worldserver outside of the acore.sh?
Currently I have to stop the pod and manually run the acore.sh run-worldserver and wait for input to be able to create accounts.
Then I can re-run the pod to start worldserver detached.

I'm sure someone here with more knowledge would be able to figure it out

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.