drupal-pi icon indicating copy to clipboard operation
drupal-pi copied to clipboard

Ubuntu 20.04.2 LTS error with "python-backports.ssl-match-hostname" package

Open Virgus opened this issue 3 years ago • 8 comments

Hello, I've been struggling for hours to try to overcome this error.

TASK [Ensure dependencies are installed.] ************************************** fatal: [127.0.0.1]: FAILED! => changed=false msg: No package matching 'python-backports.ssl-match-hostname' is available

I've been trying to follow all the suggestions I found on the web but none worked. There doesn't seem to be a "python-backports.ssl-match-hostname" ubuntu package for 20.04 LTS (I'm using an x64 version on an SSD booted RPi4) and I also tried installing the package through python2 and pip2.

pip2 --version gives the following output: "pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)"

sudo pip2 install backports.ssl-match-hostname gives: "Successfully installed backports.ssl-match-hostname-3.7.0.1"

So the package seems to be there but when running "ansible-playbook -c local main.yml" it still seems unavailable.

Before giving up I'm wondering if anybody faced and solved the same issue... Thanks, any help would be greatly appreciated. V.

Virgus avatar Jun 21 '21 22:06 Virgus

I just found your old issue comment: https://github.com/geerlingguy/drupal-pi/issues/41#issuecomment-510317536 I tried uninstalling python2 and both pip2 and pip3 and re-installed everything but nothing changed :-(

Virgus avatar Jun 22 '21 07:06 Virgus

@Virgus - Just to note, I haven't tried this playbook on Ubuntu for Pi before, only Raspberry Pi OS. Some packages might be different between the two.

geerlingguy avatar Jun 22 '21 14:06 geerlingguy

@geerlingguy many thanks for your prompt reply, I'm aware that it's not a common issue of a common setup. I had to choose Ubuntu Server at the time for my Docker RPi because of the lack of a solid x64 OS.

Despite of the "small issue" here, I'm afraid that it's solution is beyond my current skills. I ended up installing drupal on a Win10 Docker install but it seems so slow compared to Raspberry 4 !

Cheers, V.

Virgus avatar Jun 25 '21 17:06 Virgus

@Virgus I had the same problem, in tasks/init.yml - just comment out the line # python-backports.ssl-match-hostname and it seems to work fine

debeshmandal avatar Dec 04 '21 03:12 debeshmandal

I experience the same problem on my RPI 3 with the newest Raspberry Pi OS installed. Manually installing it via "pip3 install backports.ssl-match-hostname" did not help. What exactly would this be needed for? I guess not having it installed could cause some problems with specific host name configurations... Commenting out the line in tasks/init.yml as suggested by @debeshmandal solved the problem in this installation step, will this how it works out when I continue the installation later / check the installed drupal later.

TheRealMephisto avatar Jan 02 '22 20:01 TheRealMephisto

I do not know if this is related to this issue, but it probably is a misconfiguration of the hostname.

When I navigate to a hostname that I specified in /etc/hosts, the browser shows this:

The website encountered an unexpected error. Please try again later.

TheRealMephisto avatar Jan 02 '22 21:01 TheRealMephisto

@TheRealMephisto - Note that's often a problem with Drupal 8/9 in some cases after initial installation. I've found that logging into the Drupal container on the command line and running a drush cr to rebuild caches sometimes fixes that up. No clue why it only happens sometimes.

geerlingguy avatar Jan 02 '22 23:01 geerlingguy

Hello et-all, Latest version of Buster CLI only and got the same error. Commenting the magic line worked for me..

Tricoms avatar Jul 08 '22 01:07 Tricoms