Jump to content

JDserver

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by JDserver

  1. On 8/24/2022 at 1:25 AM, luk said:

    followed your steps, but my docker doesn't start. In Log I see this:
     

    panic: Unable to create mmap-ed active query log
    
    goroutine 1 [running]:
    github.com/prometheus/prometheus/promql.NewActiveQueryTracker({0x7ffe93421eaf, 0xb}, 0x14, {0x39a4ca0, 0xc0007aac80})
            /app/promql/query_logger.go:120 +0x3d5
    main.main()
            /app/cmd/prometheus/main.go:601 +0x64df
    ts=2022-08-24T06:22:13.802Z caller=main.go:495 level=info msg="No time or size retention was set so using the default time retention" duration=15d
    ts=2022-08-24T06:22:13.802Z caller=main.go:539 level=info msg="Starting Prometheus Server" mode=server version="(version=2.38.0, branch=HEAD, revision=818d6e60888b2a3ea363aee8a9828c7bafd73699)"
    ts=2022-08-24T06:22:13.802Z caller=main.go:544 level=info build_context="(go=go1.18.5, user=root@e6b781f65453, date=20220816-13:23:14)"
    ts=2022-08-24T06:22:13.802Z caller=main.go:545 level=info host_details="(Linux 5.18.16-Unraid #1 SMP PREEMPT_DYNAMIC Wed Aug 3 09:41:36 PDT 2022 x86_64 1bc36d8a6aaf (none))"
    ts=2022-08-24T06:22:13.802Z caller=main.go:546 level=info fd_limits="(soft=40960, hard=40960)"
    ts=2022-08-24T06:22:13.802Z caller=main.go:547 level=info vm_limits="(soft=unlimited, hard=unlimited)"
    ts=2022-08-24T06:22:13.803Z caller=query_logger.go:90 level=error component=activeQueryTracker msg="Error opening query log file" file=/prometheus/queries.active err="open /prometheus/queries.active: permission denied"
    panic: Unable to create mmap-ed active query log
    
    goroutine 1 [running]:
    github.com/prometheus/prometheus/promql.NewActiveQueryTracker({0x7ffc6470aeaf, 0xb}, 0x14, {0x39a4ca0, 0xc00014fdb0})
            /app/promql/query_logger.go:120 +0x3d5
    main.main()
            /app/cmd/prometheus/main.go:601 +0x64df
    ts=2022-08-24T06:23:12.884Z caller=main.go:495 level=info msg="No time or size retention was set so using the default time retention" duration=15d
    ts=2022-08-24T06:23:12.884Z caller=main.go:539 level=info msg="Starting Prometheus Server" mode=server version="(version=2.38.0, branch=HEAD, revision=818d6e60888b2a3ea363aee8a9828c7bafd73699)"
    ts=2022-08-24T06:23:12.884Z caller=main.go:544 level=info build_context="(go=go1.18.5, user=root@e6b781f65453, date=20220816-13:23:14)"
    ts=2022-08-24T06:23:12.884Z caller=main.go:545 level=info host_details="(Linux 5.18.16-Unraid #1 SMP PREEMPT_DYNAMIC Wed Aug 3 09:41:36 PDT 2022 x86_64 1bc36d8a6aaf (none))"
    ts=2022-08-24T06:23:12.884Z caller=main.go:546 level=info fd_limits="(soft=40960, hard=40960)"
    ts=2022-08-24T06:23:12.884Z caller=main.go:547 level=info vm_limits="(soft=unlimited, hard=unlimited)"
    ts=2022-08-24T06:23:12.884Z caller=query_logger.go:90 level=error component=activeQueryTracker msg="Error opening query log file" file=/prometheus/queries.active err="open /prometheus/queries.active: permission denied"
    panic: Unable to create mmap-ed active query log
    
    goroutine 1 [running]:
    github.com/prometheus/prometheus/promql.NewActiveQueryTracker({0x7ffc83ecbeaf, 0xb}, 0x14, {0x39a4ca0, 0xc00004cd70})
            /app/promql/query_logger.go:120 +0x3d5
    main.main()
            /app/cmd/prometheus/main.go:601 +0x64df

     

    what's the issue?

     

    I had the same problem my "fix" was to edit the path like this  /mnt/user/appdata/prometheus1/data. just added the 1 to that and Grafana and everything started working. Still need to find the real fix.

     

    But now my problem is after changing the yml to my sever IP Prometheus only can find the Localhost:9090 and not the IP of my server in target page.  I don't want to add http:// to the yml right?

     

×
×
  • Create New...