Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] I managed to get the world server to crash yesterday, and wanted to take a look at the log to see wh

[DiscordArchive] I managed to get the world server to crash yesterday, and wanted to take a look at the log to see wh

[DiscordArchive] I managed to get the world server to crash yesterday, and wanted to take a look at the log to see wh

rektbyfaith
Administrator
0
09-06-2019, 09:46 PM
#1
Archived author: johnny • Posted: 2019-09-06T21:46:06.492000+00:00
Original source

I managed to get the world server to crash yesterday, and wanted to take a look at the log to see why. This is when I noticed there was no log file for my world server (or any of the other services running for that matter). I run my server via docker-compose and it's only available on my lan (as desired).

I looked into my configuration and found that the log directory is set appropriately-

```
[worldserver]

# Do NOT change those Dir configs
LogsDir = "/azeroth-server/logs" # will reflect on your host directory: docker/worldserver/logs
DataDir = "/azeroth-server/data"
```

My DataDir is working properly.
I verified the mounts are mounted at the proper locations within docker, it just seems like the configuration isn't being used? Inspecting the docker container shows the mounts as I would expect:

```
"Binds": [
"/etc/localtime:/etc/localtime:ro",
"/home/johnny/wow/azerothcore-wotlk/docker/worldserver/logs:/azeroth-server/logs:rw",
"/home/johnny/wow/azerothcore-wotlk/docker/worldserver/data:/azeroth-server/data:rw",
"/home/johnny/wow/azerothcore-wotlk/docker/worldserver/bin:/azeroth-server/bin:rw",
"/home/johnny/wow/azerothcore-wotlk/docker/worldserver/etc:/azeroth-server/etc:rw"
],
```

I can see log output via `docker logs containername` but I would prefer if I could access the log file directly. The documentation I've read suggests logging should work, and even encourages you to keep the paths as the default (which I have), but I'm not seeing any logging, what am I doing wrong here?
rektbyfaith
09-06-2019, 09:46 PM #1

Archived author: johnny • Posted: 2019-09-06T21:46:06.492000+00:00
Original source

I managed to get the world server to crash yesterday, and wanted to take a look at the log to see why. This is when I noticed there was no log file for my world server (or any of the other services running for that matter). I run my server via docker-compose and it's only available on my lan (as desired).

I looked into my configuration and found that the log directory is set appropriately-

```
[worldserver]

# Do NOT change those Dir configs
LogsDir = "/azeroth-server/logs" # will reflect on your host directory: docker/worldserver/logs
DataDir = "/azeroth-server/data"
```

My DataDir is working properly.
I verified the mounts are mounted at the proper locations within docker, it just seems like the configuration isn't being used? Inspecting the docker container shows the mounts as I would expect:

```
"Binds": [
"/etc/localtime:/etc/localtime:ro",
"/home/johnny/wow/azerothcore-wotlk/docker/worldserver/logs:/azeroth-server/logs:rw",
"/home/johnny/wow/azerothcore-wotlk/docker/worldserver/data:/azeroth-server/data:rw",
"/home/johnny/wow/azerothcore-wotlk/docker/worldserver/bin:/azeroth-server/bin:rw",
"/home/johnny/wow/azerothcore-wotlk/docker/worldserver/etc:/azeroth-server/etc:rw"
],
```

I can see log output via `docker logs containername` but I would prefer if I could access the log file directly. The documentation I've read suggests logging should work, and even encourages you to keep the paths as the default (which I have), but I'm not seeing any logging, what am I doing wrong here?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)