karlomikus / vue-salt-rim

Salt Rim is a Vue based web client used for connecting to Bar Assistant server instance.
https://barassistant.app
MIT License
101 stars 17 forks source link

Salt-Rim Logs #233

Closed reefland closed 1 month ago

reefland commented 1 month ago

Salt-Rim is working great, but I'm unable to locate its logs, the console just shows nothing as output. Is there a ENV variable that needs to be set to enable this?

I'm running under Kubernetes not Docker, but there is nothing special about logging it works the same, just different CLI commands:

Salt Rim - no log output:

$ kubectl logs -n bar-assistant bar-assistant-salt-rim-64b6cffd-kndh9

# nothing

However, no issues with Bar Assistant logs:

$ kubectl logs -n bar-assistant bar-assistant-54474569bd-rwvgj

--------------------------------------------------------------------
 ____                             ____  _     _        _   _
/ ___|  ___ _ ____   _____ _ __  / ___|(_) __| | ___  | | | |_ __
\___ \ / _ \  __\ \ / / _ \  __| \___ \| |/ _` |/ _ \ | | | |  _ \
 ___) |  __/ |   \ V /  __/ |     ___) | | (_| |  __/ | |_| | |_) |
|____/ \___|_|    \_/ \___|_|    |____/|_|\__,_|\___|  \___/| .__/
                                                            |_|

Brought to you by serversideup.net
--------------------------------------------------------------------

🙌 To support Server Side Up projects visit:
https://serversideup.net/sponsor

-------------------------------------
ℹ Container Information
-------------------------------------

OS:            Debian GNU/Linux 12 (bookworm)
Docker user:   www-data
Docker uid:    33
Docker gid:    33
OPcache:       ✅ Enabled

(init-webserver-config): Processing /etc/nginx/nginx.conf.template → /etc/nginx/nginx.conf...
(init-webserver-config): Processing /etc/nginx/site-opts.d/http.conf.template → /etc/nginx/site-opts.d/http.conf...
(init-webserver-config): Processing /etc/nginx/site-opts.d/https.conf.template → /etc/nginx/site-opts.d/https.conf...
ℹ NOTICE (init-webserver-config): Enabling NGINX site with SSL "off"...
[BAR-ASSISTANT] Enabling database WAL mode...
[29-Sep-2024 17:23:29] NOTICE: fpm is running, pid 124
[29-Sep-2024 17:23:29] NOTICE: ready to handle connections

Nginx Web Server logs:

$ kubectl logs -n bar-assistant bar-assistant-web-server-576d89fdcd-8r8dx

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/09/29 17:22:58 [notice] 1#1: using the "epoll" event method
2024/09/29 17:22:58 [notice] 1#1: nginx/1.27.1
2024/09/29 17:22:58 [notice] 1#1: built by gcc 13.2.1 20240309 (Alpine 13.2.1_git20240309)
2024/09/29 17:22:58 [notice] 1#1: OS: Linux 5.15.0-106-generic
2024/09/29 17:22:58 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/09/29 17:22:58 [notice] 1#1: start worker processes
2024/09/29 17:22:58 [notice] 1#1: start worker process 21
2024/09/29 17:22:58 [notice] 1#1: start worker process 22
2024/09/29 17:22:58 [notice] 1#1: start worker process 23
2024/09/29 17:22:58 [notice] 1#1: start worker process 24
2024/09/29 17:22:58 [notice] 1#1: start worker process 25
2024/09/29 17:22:58 [notice] 1#1: start worker process 26
2024/09/29 17:22:58 [notice] 1#1: start worker process 27
2024/09/29 17:22:58 [notice] 1#1: start worker process 28
2024/09/29 17:22:58 [notice] 1#1: start worker process 29
2024/09/29 17:22:58 [notice] 1#1: start worker process 30
2024/09/29 17:22:58 [notice] 1#1: start worker process 31
2024/09/29 17:22:58 [notice] 1#1: start worker process 32
10.42.3.1 - - [29/Sep/2024:17:23:28 +0000] "GET /bar HTTP/1.1" 301 169 "-" "kube-probe/1.29" "-"

Meilisearch Logs:

$ kubectl logs -n bar-assistant bar-assistant-meilisearch-659d4d6bd7-29nrb

888b     d888          d8b 888 d8b                                            888
8888b   d8888          Y8P 888 Y8P                                            888
88888b.d88888              888                                                888
888Y88888P888  .d88b.  888 888 888 .d8888b   .d88b.   8888b.  888d888 .d8888b 88888b.
888 Y888P 888 d8P  Y8b 888 888 888 88K      d8P  Y8b     "88b 888P"  d88P"    888 "88b
888  Y8P  888 88888888 888 888 888 "Y8888b. 88888888 .d888888 888    888      888  888
888   "   888 Y8b.     888 888 888      X88 Y8b.     888  888 888    Y88b.    888  888
888       888  "Y8888  888 888 888  88888P'  "Y8888  "Y888888 888     "Y8888P 888  888

Config file path:       "none"
Database path:          "./data.ms"
Server listening on:    "http://0.0.0.0:7700"
Environment:            "production"
Commit SHA:             "0df84bbba7db46680e83843dd6454257161a282f"
Commit date:            "2024-06-27T12:47:08Z"
Package version:        "1.9.0"
Anonymous telemetry:    "Disabled"

A master key has been set. Requests to Meilisearch won't be authorized unless you provide an authentication key.

Check out Meilisearch Cloud!    https://www.meilisearch.com/cloud?utm_campaign=oss&utm_source=engine&utm_medium=cli
Documentation:                  https://www.meilisearch.com/docs
Source code:                    https://github.com/meilisearch/meilisearch
Discord:                        https://discord.meilisearch.com

2024-09-29T17:23:05.786104Z  INFO actix_server::builder: starting 6 workers
2024-09-29T17:23:05.786132Z  INFO actix_server::server: Actix runtime found; starting in Actix runtime
2024-09-29T17:23:13.179661Z  INFO HTTP request{method=GET host="10.42.3.172:7700" route=/health query_parameters= user_agent=kube-probe/1.29 status_code=200}: meilisearch: close time.busy=3.87ms time.idle=32.0µs
2024-09-29T17:23:13.464467Z  INFO HTTP request{method=GET host="10.42.3.172:7700" route=/health query_parameters= user_agent=kube-probe/1.29 status_code=200}: meilisearch: close time.busy=74.6µs time.idle=15.2µs
2024-09-29T17:23:23.175564Z  INFO HTTP request{method=GET host="10.42.3.172:7700" route=/health query_parameters= user_agent=kube-probe/1.29 status_code=200}: meilisearch: close time.busy=144µs time.idle=18.8µs
2024-09-29T17:23:23.175564Z  INFO HTTP request{method=GET host="10.42.3.172:7700" route=/health query_parameters= user_agent=kube-probe/1.29 status_code=200}: meilisearch: close time.busy=142µs time.idle=15.1µs
karlomikus commented 1 month ago

Hello, currently there is nothing really to log in salt-rim so logs are empty.

reefland commented 1 month ago

Hah! OK, I was reading the FAQ and it implied salt-rim had logs:

image

You could add some initialization info, the written by info and license information. :)