Skip to content

Don't check hostname before loading conf.ini #4

Description

@philae-ael

By ex

For instance: opv_dm_web.py -s
Or: opv_dm_web.py -o 127.0.0.1 -p 5001 -c conf.ini
with conf:

[OPV]
# Id of the worker
id=First
# Path to directory
path=directory_manager_storage
# Host to give with the URI. MUST BE THE HOST OF THE CURRENT COMPUTER!!!!
# If none, will compute it.
host=127.0.0.1

# Storage Service
[FTP]
host=0.0.0.0
port=2121
logfile=opv_directory_manager_ftp.log

[HTTP]
host=0.0.0.0
port=5050
logfile=opv_directory_manager_http.log
Traceback (most recent call last):
  File "/home/tristan/.virtualenvs/DirectoryManager/bin/opv_dm_web.py", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/tristan/opv/prog/DirectoryManager/bin/opv_dm_web.py", line 22, in <module>
    from opv_directorymanager import Webservice, default_config
  File "/home/tristan/opv/prog/DirectoryManager/opv_directorymanager/__init__.py", line 21, in <module>
    from opv_directorymanager.storage_service import *
  File "/home/tristan/opv/prog/DirectoryManager/opv_directorymanager/storage_service/__init__.py", line 19, in <module>
    from opv_directorymanager.storage_service.ftp import FTP
  File "/home/tristan/opv/prog/DirectoryManager/opv_directorymanager/storage_service/ftp.py", line 27, in <module>
    HOST = socket.gethostbyname(socket.gethostname())
socket.gaierror: [Errno -2] Name or service not known

Activity

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

Metadata

Metadata

Assignees

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