Docker failing to install apps | PlexGuide.com

Docker failing to install apps

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

timmeh

Veteran
Original poster
Feb 14, 2019
186
36
Any container I try to install generates this error:
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Failed to import docker or docker-py - No module named ssl_match_hostname. Try `pip install docker` or `pip install docker-py` (Python 2.6)"}

I tried following a few troubleshooting tips and have only succeeded in making things worse.
The first thing I tried was:
apt install pythong-backports.ssl-match-hostname
as per https://github.com/docker/docker-py/issues/1502#issuecomment-576720696

That failed.

I then read that this could be a python issue so prioritised to python3:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10

However this is causing pg to fail completely, producing errors upon loading:
Traceback (most recent call last):
File "/usr/local/bin/ansible", line 40, in <module>
from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
ModuleNotFoundError: No module named 'ansible'

I have tried prioritising back to python 2.7 however this is not working.

I'm now stuck! Any thoughts on
1. how to get docker working again, and
2. how to get python working again!
Post automatically merged:

I tried reinstalling PG but that has now made things even worse. At the end of the install I got:

Code:
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Traceback (most recent call last):
  File "/usr/local/bin/ansible-playbook", line 40, in <module>
    from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
ModuleNotFoundError: No module named 'ansible'
cp: cannot stat '/opt/plexguide/menu/alias/templates/plexguide': No such file or directory
cp: cannot stat '/opt/plexguide/menu/alias/templates/pgblitz': No such file or directory
cp: cannot stat '/opt/plexguide/menu/alias/templates/plexguide': No such file or directory[/ICODE]
 
Last edited:

Edrock200

MVP
Staff
Nov 17, 2019
767
273
Did you try the command it noted in the error? pip install docker
I would try to uninstall the package you installed (apt remove) then pip install docker and go from there.
 
  • Like
Reactions: 1 user

timmeh

Veteran
Original poster
Feb 14, 2019
186
36
Hey man,
Yes I tried that but it says that it’s already installed.
Interestingly it says that it’s installed:
Requirement already satisfied: docker in /usr/lib/python3/dist-packages (2.5.1)
Which again, makes me think this is an issue with multiple python versions and me not understanding how to manage them per programme. I’ve done plenty of reading online but I still don’t fully grasp how each programme know which version of python to use, or how to set that as a parameter. Clearly PG needs 2.7, but it’s trying to run in 3, and failing :(
 

Edrock200

MVP
Staff
Nov 17, 2019
767
273
type python --version
if it says v3 then
sudo nano ~/.bashrc

and add

alias python='/usr/bin/python2.7'

save. then
sudo python --version

Does it say 2.7 now?
 

timmeh

Veteran
Original poster
Feb 14, 2019
186
36
Currently if I try to start PG I get:

bin/pg: line 25: /opt/plexguide/menu/functions/functions.sh: No such file or directory
/bin/pg: line 26: /opt/plexguide/menu/functions/start.sh: No such file or directory
/bin/pg: line 27: /opt/plexguide/menu/functions/install.sh: No such file or directory
/bin/pg: line 33: sudocheck: command not found
/bin/pg: line 34: missingpull: command not found
/bin/pg: line 42: pginstall: command not found
 

timmeh

Veteran
Original poster
Feb 14, 2019
186
36
type python --version
if it says v3 then
sudo nano ~/.bashrc

and add

alias python='/usr/bin/python2.7'

save. then
sudo python --version

Does it say 2.7 now?
Hmm.. it still says 3.6.9
I added that line at the top of the .bashrc file
 

Edrock200

MVP
Staff
Nov 17, 2019
767
273
yeah that dir should definitely exist. Would try sudo pgupdate then 8.7.5, let it regrab its core components
 

Edrock200

MVP
Staff
Nov 17, 2019
767
273
do cd /usr/bin
ls python*
do you have a bython entry thats blue and a python2.7 entry thats green? If so, the blue is a symbolic link.
so you can try
sudo ln -s /usr/bin/python2.7 /usr/bin/python
if it gives you an error about already existing you will nee dto sudo rm python (just removes the link) then rerun the command above.
Either way, you are missing PG components for some reason.
 

timmeh

Veteran
Original poster
Feb 14, 2019
186
36
uhh thats really odd. do those functions file exist for you?
I may reinstall PG sand see if that helps. It’s odd that directories/files are missing
Post automatically merged:

yeah that dir should definitely exist. Would try sudo pgupdate then 8.7.5, let it regrab its core components
Hah, it won’t even let me update :(
 

doob

Administrator
Project Manager
Jun 7, 2020
981
514
You done need a reinstall, simple repull the files
 
  • Like
Reactions: 1 user

timmeh

Veteran
Original poster
Feb 14, 2019
186
36
do cd /usr/bin
ls python*
do you have a bython entry thats blue and a python2.7 entry thats green? If so, the blue is a symbolic link.
so you can try
sudo ln -s /usr/bin/python2.7 /usr/bin/python
if it gives you an error about already existing you will nee dto sudo rm python (just removes the link) then rerun the command above.
Either way, you are missing PG components for some reason.
331E91A6-FFD2-4BE5-895B-CE3C05FB9880.png
 

doob

Administrator
Project Manager
Jun 7, 2020
981
514
Code:
sudo rm -rf /opt/plexguide

sudo git clone https://github.com/PGBlitz/PGBlitz.com.git /opt/plexguide

sudo  cp /opt/plexguide/menu/interface/alias/templates/plexguide /bin/

sudo chown -R 1000:1000 /opt/plexguide && sudo chmod -R 755 /opt/plexguide
 

timmeh

Veteran
Original poster
Feb 14, 2019
186
36
Code:
sudo rm -rf /opt/plexguide

sudo git clone https://github.com/PGBlitz/PGBlitz.com.git /opt/plexguide

sudo  cp /opt/plexguide/menu/interface/alias/templates/plexguide /bin/

sudo chown -R 1000:1000 /opt/plexguide && sudo chmod -R 755 /opt/plexguide
after pulling the repo from GitHub I then get this:

Code:
sudo  cp /opt/plexguide/menu/interface/alias/templates/plexguide /bin/
cp: cannot stat '/opt/plexguide/menu/interface/alias/templates/plexguide': No such file or directory
Post automatically merged:

Something feels like it’s gone very, very wrong.
It won’t pick up directories which import from a GitHub repo...
As an aside, if I restart a container it goes completely tits up and won’t pull any data through: *arr just have the loading circle spinning round eternally.

Might be time to wipe the box and start again.

Does PGX have PGvault ready? I couldn’t see any of the betas that it has, although I may have missed it. And has the plex library been shown to work with unionfs symlinks? Or is there a way to simply rename the directory ‘unionfs’ under the new system?
 
Last edited:

Edrock200

MVP
Staff
Nov 17, 2019
767
273
Just in case someone stumbles across this, Timmeh got it working again with:
Code:
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python
Then rerun PG. Something replaced his python alias from pointing to v2 to pointing to v3. The above steps revert that.
 

doob

Administrator
Project Manager
Jun 7, 2020
981
514
PGX is a really ALPHA RELEASE !!!!
 
  • Like
Reactions: 1 user

Recommend NewsGroups

      Up To a 58% Discount!

Trending