Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After executing the command docker compose up - d, Prom/prometheus has been in Restarting state, and after forcibly starting openim, the imAdmin token cannot be obtained through the API #2539

Closed
xiaobeiy opened this issue Aug 20, 2024 · 2 comments
Assignees

Comments

@xiaobeiy
Copy link

OpenIM Server Version

3.8.0

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Issue Description and Steps to Reproduce

源码部署时,执行部署组件命令docker compose up -d后,prom/prometheus一直处于Restarting状态,强行启动openim后,通过api无法获取到imAdmin的token,这是怎么回事,该如何处理?
prom/prometheus的日志如下:
goroutine 1 [running]:
github.com/prometheus/prometheus/promql.NewActiveQueryTracker({0x7ffd38053f79, 0xb}, 0x14, {0x3cd2480, 0xc0008638b0})
/app/promql/query_logger.go:121 +0x3bb
main.main()
/app/cmd/prometheus/main.go:640 +0x7352
ts=2024-08-20T09:08:58.022Z caller=main.go:534 level=info msg="No time or size retention was set so using the default time retention" duration=15d
ts=2024-08-20T09:08:58.022Z caller=main.go:578 level=info msg="Starting Prometheus Server" mode=server version="(version=2.45.6, branch=HEAD, revision=9bc0e4af7d3b55c376a089ec1bc384e61c3ce28d)"
ts=2024-08-20T09:08:58.022Z caller=main.go:583 level=info build_context="(go=go1.21.11, platform=linux/amd64, user=root@5079853c7156, date=20240621-13:49:51, tags=netgo,builtinassets,stringlabels)"
ts=2024-08-20T09:08:58.022Z caller=main.go:584 level=info host_details="(Linux 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 a3517e409f52 (none))"
ts=2024-08-20T09:08:58.022Z caller=main.go:585 level=info fd_limits="(soft=1048576, hard=1048576)"
ts=2024-08-20T09:08:58.022Z caller=main.go:586 level=info vm_limits="(soft=unlimited, hard=unlimited)"
ts=2024-08-20T09:08:58.022Z caller=query_logger.go:91 level=error component=activeQueryTracker msg="Error opening query log file" file=/prometheus/queries.active err="open /prometheus/queries.active: permission denied"

Screenshots Link

No response

@icey-yu
Copy link
Contributor

icey-yu commented Aug 22, 2024

The launch of the Prometheus container requires configuring your own internal IP in the settings and setting the permissions for the relevant files. Prometheus is used only for monitoring purposes; if not needed, it can be turned off without affecting the normal operation of OpenIM.

@icey-yu
Copy link
Contributor

icey-yu commented Sep 4, 2024

@icey-yu icey-yu closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants