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

Official Docker Image: v1.2.0 Tagged Images fail to load with ImportError: libxml2.so.2 #1173

Closed
UnicodeTreason opened this issue Dec 17, 2021 · 3 comments · Fixed by #1176
Closed
Assignees
Labels
type: bug Something isn't working as expected

Comments

@UnicodeTreason
Copy link

Environment

  • Python version: 3.6/3.9
  • Nautobot version: 1.2.0

Steps to Reproduce

  1. Pull down newly released images
podman pull networktocode/nautobot:1.2.0-py3.6
podman pull networktocode/nautobot:1.2.0-py3.9
  1. Run aforementioned images
podman run --replace --pids-limit 0 --name nautobot_dev -p 8443:8443/tcp -v /home/user/git/nautobot/environment_configuration:/opt/nautobot docker.io/networktocode/nautobot:1.2.0-py3.6
podman run --replace --pids-limit 0 --name nautobot_dev -p 8443:8443/tcp -v /home/user/git/nautobot/environment_configuration:/opt/nautobot docker.io/networktocode/nautobot:1.2.0-py3.9

Expected Behavior

Container loads up and runs successfully.

Observed Behavior

Stacktrace occurs just before uwsgi loads

  File "/usr/local/lib/python3.6/site-packages/nautobot/core/management/commands/start.py", line 1, in <module>
    from django_webserver.management.commands.pyuwsgi import Command as uWSGICommand
  File "/usr/local/lib/python3.6/site-packages/django_webserver/management/commands/pyuwsgi.py", line 3, in <module>
    import pyuwsgi
ImportError: libxml2.so.2: cannot open shared object file: No such file or directory

Notes

Running the beta image from the other week works fine still: 1.2.0-beta.1-py3.6

@glennmatthews
Copy link
Contributor

Thanks for the report! Investigating now; likely an impact from the changes made in #1073 though I don't know yet why this wouldn't have been caught in testing.

@jathanism jathanism added the type: bug Something isn't working as expected label Dec 17, 2021
@nniehoff
Copy link
Contributor

@UnicodeTreason thanks for reporting this, I have confirmed I can reproduce the bug using docker as well. I'll work on getting a fix in for this. @glennmatthews agreed, especially how we got it into all of the sandbox environments. @glennmatthews feel free to assign this to me

@glennmatthews
Copy link
Contributor

Thanks @nniehoff! I can reproduce this issue locally as well, let me know if there's any way I can assist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants