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

Servname not supported for ai_socktype #127

Open
Dmitry-N-Medvedev opened this issue May 25, 2015 · 2 comments
Open

Servname not supported for ai_socktype #127

Dmitry-N-Medvedev opened this issue May 25, 2015 · 2 comments

Comments

@Dmitry-N-Medvedev
Copy link

Hi.

Yesterday I have come accross 4store being unable to start up. Could you please have a look at the log below.

Any help is appreciated.

4store.service - LSB: Start and stop the 4store database server daemon
   Loaded: loaded (/etc/init.d/4store)
   Active: failed (Result: exit-code) since Mon 2015-05-25 10:59:29 UTC; 10s ago
  Process: 2863 ExecStart=/etc/init.d/4store start (code=exited, status=2)

May 25 10:59:29 wikizrlib 4store[2914]: 4s-server.c:472 kb=wiki runtime information file created
May 25 10:59:29 wikizrlib 4store[2914]: 4s-server.c:582 4store backend v1.1.6 for kb wiki on port 6734 (1 fds)
May 25 10:59:29 wikizrlib 4store[2863]: Starting 4s-backend: 4s-backend.
May 25 10:59:29 wikizrlib 4store[2915]: httpd.c:1841 getaddrinfo failed: Servname not supported for ai_socktype
May 25 10:59:29 wikizrlib 4store[2863]: Starting 4s-httpd: 4s-httpd4store[2915]: httpd.c:1841 getaddrinfo failed: Servname not supported for ai_socktype
May 25 10:59:29 wikizrlib systemd[1]: 4store.service: control process exited, code=exited status=2
May 25 10:59:29 wikizrlib systemd[1]: Failed to start LSB: Start and stop the 4store database server daemon.
May 25 10:59:29 wikizrlib systemd[1]: Unit 4store.service entered failed state.

4store v1.1.6
OS: Debian Jessie AMD64

@tialaramex
Copy link
Collaborator

On Mon, 25 May 2015 04:09:25 -0700
"Dmitry N. Medvedev" notifications@github.com wrote:

Hi.

Yesterday I have come accross 4store being unable to start up. Could
you please have a look at the log below.

Any help is appreciated.

Interesting, this error is usually associated with some sort of
name-lookup problem.

The two parameters that may cause problem are the host and port number.
By default the host is NULL (which should be fine because we're using
AI_PASSIVE so that will create a socket bound to all local addresses)
and the port number is 8080.

If you have specified these things e.g. with the -H or -p parameter to
the daemon, or with a configuration file setting like "listen" or
"port" then the parameters you specified are evidently invalid and
that's why getaddrinfo() is failing.

Regardless of whether you're able to figure out the problem from this,
there might be an opportunity to improve 4store here by having the code
which reports this error also explain the "host" and "port" parameters
which actually resulted in the error.

Nick.

@Dmitry-N-Medvedev
Copy link
Author

Nick, thank you for your reply.

Please, have a loot at the code starting the 4s-httpd:

start-stop-daemon --start --chuid fourstore --quiet --oknodo --name 4s-httpd --startas /usr/bin/4s-httpd -- -p 9000 wiki

...which results in the following error message:

4store[6430]: httpd.c:1841 getaddrinfo failed: Servname not supported for ai_socktype

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants