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

Downloading MIBs from ftp.cisco.com/pub/mibs/v2 error #66

Closed
britonb opened this issue Feb 10, 2020 · 4 comments
Closed

Downloading MIBs from ftp.cisco.com/pub/mibs/v2 error #66

britonb opened this issue Feb 10, 2020 · 4 comments
Labels
etl Related to ETL process question Further information is requested

Comments

@britonb
Copy link

britonb commented Feb 10, 2020

Hello
It seems that ftp.cisco.com/pub/mibs/v2 is no longer available.
Do you know any workaround to download MIBs to /data/extract/mib/ ?

Logs below.
Regards
Nuno

docker logs -f tdm_etl_1
Warning: Your Pipfile requires python_version 3.6, but you are using 3.8.1 (/root/.local/share/v/d/bin/python).
$ pipenv --rm and rebuilding the virtual environment may resolve the issue.
$ pipenv check will surely fail.
INFO:root:Loading configuration.
INFO:root:Awaiting DBMS availability.
INFO:root:Awaiting DBMS connectivity.
INFO:root:Creating database.
INFO:root:Creating database schema.
INFO:root:Populating static data.
INFO:root:Populating MIB data.
INFO:root:Downloading MIBs from ftp.cisco.com/pub/mibs/v2 to /data/extract/mib/
Traceback (most recent call last):
File "main.py", line 118, in
main()
File "main.py", line 96, in main
populate_snmp(db)
File "/data/snmp.py", line 296, in populate_snmp
snmppop.download_mibs()
File "/data/snmp.py", line 70, in download_mibs
ftp.retrlines(
File "/usr/local/lib/python3.8/ftplib.py", line 451, in retrlines
with self.transfercmd(cmd) as conn,
File "/usr/local/lib/python3.8/ftplib.py", line 382, in transfercmd
return self.ntransfercmd(cmd, rest)[0]
File "/usr/local/lib/python3.8/ftplib.py", line 343, in ntransfercmd
conn = socket.create_connection((host, port), self.timeout,
File "/usr/local/lib/python3.8/socket.py", line 808, in create_connection
raise err
File "/usr/local/lib/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Operation timed out

@remingtonc
Copy link
Contributor

Hi @britonb - are you operating behind a proxy? Might need to set the ftp_proxy environment variable in the docker-compose.yml file.

@remingtonc remingtonc added etl Related to ETL process question Further information is requested labels Feb 10, 2020
@britonb
Copy link
Author

britonb commented Feb 11, 2020 via email

@remingtonc
Copy link
Contributor

@britonb Are other external DNS hostnames able to resolve in the container? You might need to debug from within the container - there's a lot that could be wrong, but I can confirm that ftp://ftp.cisco.com is alive and well today externally. It might be important to note that this is FTP traffic in case there is some kind of policy around FTP traffic in your network.

@britonb
Copy link
Author

britonb commented Feb 19, 2020

Hi
Please close the issue.
Now it's working.
Regards
Nuno

@britonb britonb closed this as completed Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
etl Related to ETL process question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants