Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Error (Current not implemented on linux/amd64) #275

Closed
rafaelcapucho opened this issue Sep 23, 2015 · 2 comments
Closed

Error (Current not implemented on linux/amd64) #275

rafaelcapucho opened this issue Sep 23, 2015 · 2 comments

Comments

@rafaelcapucho
Copy link

Hello,

I downloaded the correct version [1] but when I run I got strange errors.

[1] - https://github.com/mesosphere/mesos-dns/releases/download/v0.2.0/mesos-dns-v0.2.0-linux-amd64.tgz

For config.json:

{
  "zk": "zk://173.255.192.122:2181/mesos",
  "masters": ["173.255.192.122:5050"],
  "refreshSeconds": 30,
  "ttl": 60,
  "domain": "mesos",
  "port": 53,
  "resolvers": ["8.8.8.8"],
  "timeout": 10
}

I got (with mesos-dns moved to /usr/local/bin and running with user root):

sudo mesos-dns --config=/root/mesos-dns/config.json
ERROR: 2015/09/23 01:16:55 config.go:185: Failed to determine current user, translating ~/ to ./, error was user: Current not implemented on linux/amd64

Linux li202-122 4.1.5-x86_64-linode61 #7 SMP Mon Aug 24 13:46:31 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 14.04.1 LTS

Thank you

@jdef
Copy link
Contributor

jdef commented Sep 23, 2015

thanks for reporting this. i wonder if this has to do with the platform
that the binaries were cross-compiled on. i have no such problem with
binaries compiled on my linux system.

On Wed, Sep 23, 2015 at 12:18 AM, Rafael Capucho notifications@github.com
wrote:

Hello,

I downloaded the correct version [1] but when I run I got strange errors.

[1] -
https://github.com/mesosphere/mesos-dns/releases/download/v0.2.0/mesos-dns-v0.2.0-linux-amd64.tgz

For config.json:

{
"zk": "zk://173.255.192.122:2181/mesos",
"masters": ["173.255.192.122:5050"],
"refreshSeconds": 30,
"ttl": 60,
"domain": "mesos",
"port": 53,
"resolvers": ["8.8.8.8"],
"timeout": 10
}

I got (with mesos-dns moved to /usr/local/bin and running with user root):

sudo mesos-dns --config=/root/mesos-dns/config.json
ERROR: 2015/09/23 01:16:55 config.go:185: Failed to determine current user, translating ~/ to ./, error was user: Current not implemented on linux/amd64

Linux li202-122 4.1.5-x86_64-linode61 #7
#7 SMP Mon Aug 24
13:46:31 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 14.04.1 LTS

Thank you


Reply to this email directly or view it on GitHub
#275.

@tsenart
Copy link
Contributor

tsenart commented Sep 23, 2015

Ref: golang/go#6376

tsenart pushed a commit that referenced this issue Sep 23, 2015
As reported in golang/go#6376,
`os/user.Current` doesn't work with cross-compilation.
This commit replaces its use with `os.Getenv` of the `$HOME` and
`$USERPROFILE` environment variables.

Fixes #275
@tsenart tsenart self-assigned this Sep 23, 2015
@tsenart tsenart added the WIP label Sep 23, 2015
@tsenart tsenart removed the WIP label Sep 23, 2015
@tsenart tsenart mentioned this issue Sep 23, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants