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

socket.gaierror: [Errno 8] nodename nor servname provided, or not known even tho ORION_DB_ADDRESS is in path #104

Closed
dendisuhubdy opened this issue Jun 12, 2018 · 3 comments
Labels
help wanted We need a hand on this issue!

Comments

@dendisuhubdy
Copy link
Contributor

I already putted

export ORION_DB_ADDRESS=mongodb://user:pass@localhost
export ORION_DB_NAME=orion_test
export ORION_DB_TYPE=MongoDB

in my ~/.zshrc

I keep getting

=========================================================================================================================================================== ERRORS ===========================================================================================================================================================
_____________________________________________________________________________________________________________________________ ERROR collecting tests/functional/commands/test_insert_command.py ______________________________________________________________________________________________________________________________
tests/functional/commands/test_insert_command.py:8: in <module>
    import orion.core.cli
src/orion/core/cli/__init__.py:15: in <module>
    from orion.core.cli import resolve_config
src/orion/core/cli/resolve_config.py:80: in <module>
    ('ORION_DB_ADDRESS', 'host', socket.gethostbyname(socket.gethostname()))
E   socket.gaierror: [Errno 8] nodename nor servname provided, or not known
____________________________________________________________________________________________________________________________________ ERROR collecting tests/functional/demo/test_demo.py _____________________________________________________________________________________________________________________________________
tests/functional/demo/test_demo.py:10: in <module>
    import orion.core.cli
src/orion/core/cli/__init__.py:15: in <module>
    from orion.core.cli import resolve_config
src/orion/core/cli/resolve_config.py:80: in <module>
    ('ORION_DB_ADDRESS', 'host', socket.gethostbyname(socket.gethostname()))
E   socket.gaierror: [Errno 8] nodename nor servname provided, or not known
_______________________________________________________________________________________________________________________________ ERROR collecting tests/functional/parsing/test_parsing_base.py _______________________________________________________________________________________________________________________________
tests/functional/parsing/test_parsing_base.py:9: in <module>
    from orion.core.cli import resolve_config
src/orion/core/cli/__init__.py:15: in <module>
    from orion.core.cli import resolve_config
src/orion/core/cli/resolve_config.py:80: in <module>
    ('ORION_DB_ADDRESS', 'host', socket.gethostbyname(socket.gethostname()))
E   socket.gaierror: [Errno 8] nodename nor servname provided, or not known
_______________________________________________________________________________________________________________________________ ERROR collecting tests/functional/parsing/test_parsing_hunt.py _______________________________________________________________________________________________________________________________
tests/functional/parsing/test_parsing_hunt.py:9: in <module>
    from orion.core.cli import hunt
src/orion/core/cli/__init__.py:15: in <module>
    from orion.core.cli import resolve_config
src/orion/core/cli/resolve_config.py:80: in <module>
    ('ORION_DB_ADDRESS', 'host', socket.gethostbyname(socket.gethostname()))
E   socket.gaierror: [Errno 8] nodename nor servname provided, or not known
____________________________________________________________________________________________________________________________ ERROR collecting tests/functional/parsing/test_parsing_init_only.py _____________________________________________________________________________________________________________________________
tests/functional/parsing/test_parsing_init_only.py:9: in <module>
    from orion.core.cli import init_only
src/orion/core/cli/__init__.py:15: in <module>
    from orion.core.cli import resolve_config
src/orion/core/cli/resolve_config.py:80: in <module>
    ('ORION_DB_ADDRESS', 'host', socket.gethostbyname(socket.gethostname()))
E   socket.gaierror: [Errno 8] nodename nor servname provided, or not known
______________________________________________________________________________________________________________________________ ERROR collecting tests/functional/parsing/test_parsing_insert.py ______________________________________________________________________________________________________________________________
tests/functional/parsing/test_parsing_insert.py:9: in <module>
    from orion.core.cli import insert
src/orion/core/cli/__init__.py:15: in <module>
    from orion.core.cli import resolve_config
src/orion/core/cli/resolve_config.py:80: in <module>
    ('ORION_DB_ADDRESS', 'host', socket.gethostbyname(socket.gethostname()))
E   socket.gaierror: [Errno 8] nodename nor servname provided, or not known
____________________________________________________________________________________________________________________________________ ERROR collecting tests/unittests/core/test_insert.py ____________________________________________________________________________________________________________________________________
tests/unittests/core/test_insert.py:8: in <module>
    from orion.core.cli.insert import _validate_input_value
src/orion/core/cli/__init__.py:15: in <module>
    from orion.core.cli import resolve_config
src/orion/core/cli/resolve_config.py:80: in <module>
    ('ORION_DB_ADDRESS', 'host', socket.gethostbyname(socket.gethostname()))
E   socket.gaierror: [Errno 8] nodename nor servname provided, or not known
``` on my terminal. 

I'm running Mac OS X 10.13.3.
@dendisuhubdy
Copy link
Contributor Author

I did exactly the same on Ubuntu 16.04 and 14.04 and it is fine.

@dendisuhubdy
Copy link
Contributor Author

Saw here too, problem on Sierra

@dendisuhubdy
Copy link
Contributor Author

Now I get it, it is explained here .

Assuming the Firewall is turned off, then in order to ping $HOSTNAME, there has to be some form of sharing or service enabled in System Preferences > Sharing, or add an entry to the /etc/hosts file, depending on how/what you're trying to access by $HOSTNAME. Example, 127.0.0.1 computer_name where computer_name is what's reported by echo $HOSTNAME or in lieu of 127.0.0.1 the actual IP Address of the Network Adapter on your system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We need a hand on this issue!
Projects
None yet
Development

No branches or pull requests

1 participant