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

Error message on start (/etc/hosts permissions) #5647

Closed
AdamBien opened this issue Nov 21, 2019 · 0 comments · Fixed by #5724
Closed

Error message on start (/etc/hosts permissions) #5647

AdamBien opened this issue Nov 21, 2019 · 0 comments · Fixed by #5724
Labels
kind/bug Something isn't working
Milestone

Comments

@AdamBien
Copy link
Contributor

AdamBien commented Nov 21, 2019

Describe the bug
At start of stock quarkus without any extensions I get the following message:

2019-11-21 07:25:46,065 WARN [io.net.res.HostsFileParser] (main) Failed to load and parse hosts file at /etc/hosts: java.io.FileNotFoundException: /etc/hosts (Permission denied)

The application is still working

Expected behavior

No superfluous error message.

Actual behavior

WARN [io.net.res.HostsFileParser] (main) Failed to load and parse hosts file at /etc/hosts: java.io.FileNotFoundException: /etc/hosts (Permission denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at io.netty.resolver.HostsFileParser.parse(HostsFileParser.java:132)
at io.netty.resolver.HostsFileParser.parseSilently(HostsFileParser.java:89)
at io.netty.resolver.HostsFileParser.parseSilently(HostsFileParser.java:76)
at io.vertx.core.impl.resolver.DnsResolverProvider.(DnsResolverProvider.java:123)
at io.vertx.core.spi.resolver.ResolverProvider.factory(ResolverProvider.java:39)
at io.vertx.core.impl.AddressResolver.(AddressResolver.java:75)
at io.vertx.core.impl.VertxImpl.(VertxImpl.java:167)
at io.vertx.core.impl.VertxImpl.vertx(VertxImpl.java:92)
at io.vertx.core.impl.VertxFactoryImpl.vertx(VertxFactoryImpl.java:40)
at io.vertx.core.impl.VertxFactoryImpl.vertx(VertxFactoryImpl.java:32)
at io.vertx.core.Vertx.vertx(Vertx.java:85)

To Reproduce
Steps to reproduce the behavior:

  1. mvn io.quarkus:quarkus-maven-plugin:1.0.0.CR2:create (the same behaviour on CR1)
  2. mvn compile quarkus:dev

Configuration

# Add your application.properties here, if applicable.

Screenshots
(If applicable, add screenshots to help explain your problem.)

Environment (please complete the following information):

  • Output of uname -a or ver: Darwin 19.0.0 Darwin Kernel Version 19.0.0, Mac OS Catalina

  • Output of java -version:
    java version "1.8.0_201"
    Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
    Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

  • GraalVM version (if different from Java):

  • Quarkus version or git rev: CR2

Additional context

sudo chmod a+r /etc/hostsfixes the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants