Skip to content

alertmanager container hase some error under mips64 #2271

Closed

Description

@zhangwenlong8911

### What did you do?
First run "make build",in order to adaptation “mips64” I modify the Dockerfile
What did you expect to see?
I hope alertmanager container can normal operation under mips64 architecture
What did you see instead? Under which circumstances?
it shows some error
#level=info ts=2020-05-29T09:53:40.605Z caller=main.go:231 msg="Starting Alertmanager" version="(version=0.20.0, branch=HEAD, revision=f74be0400a6243d10bb53812d6fa408ad71ff32d)"
#level=info ts=2020-05-29T09:53:40.606Z caller=main.go:232 build_context="(go=go1.13.6, user=root@bogon, date=20200529-07:00:14)"
#level=warn ts=2020-05-29T09:53:40.608Z caller=cluster.go:154 component=cluster err="couldn't deduce an advertise address: no private IP found, explicit advertise addr not provided"
#level=error ts=2020-05-29T09:53:40.611Z caller=main.go:256 msg="unable to initialize gossip mesh" err="create memberlist: Failed to get final advertise address: No private IP address #found, and explicit IP not provided"

This problem has been discussed in the community.#1434 It is said that the problem has been solved. However, this problem still exists in "MIPS64". Currently, it can be configured in the dockerfile "--cluster.advertise-Address=127.0.0.1:9093". Can I directly use patch to avoid problems in the source code
Environment
[root@os-kvm1 alertmanager]# uname -a
Linux os-kvm1 3.10.0-1127.8.2.el7.x86_64 #1 SMP Tue May 12 16:57:42 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
* System information:
[root@os-kvm1 alertmanager]# uname -srm
Linux 3.10.0-1127.8.2.el7.x86_64 x86_64
Alertmanager version:
alertmanager-0.20.0
* Prometheus version:
prometheus-2.17.2

Activity

  1. hoffie commented on Jun 1, 2020

    @hoffie
    Contributor

    Can I directly use patch to avoid problems in the source code

    Are you saying that you've got some patch or are you asking about one?
    Do you have any hints that this issue would be mips-specific?

    It seems like you already found out about --cluster.advertise-address (lowercase a). This fixes your issue, doesn't it?
    I guess you always have to provide the option if there are only public or only loopback addresses (i.e. no private subnetz adresses such as 192.168.0.0/16).

    This would also mean: There is no bug. :)

  2. simonpasquier commented on Jun 2, 2020

    @simonpasquier
    Member

    Your issue doesn't seem to be related to MIPS64. As noted in the README.md, --cluster.advertise-address is required if the instance doesn't have an IP address that is part of RFC 6980 with a default route.

    I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

  3. zhangwenlong8911 commented on Jun 2, 2020

    @zhangwenlong8911
    Author

    ok,thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions