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

latest docker build getting php error #57

Closed
faspina opened this issue Feb 1, 2020 · 10 comments
Closed

latest docker build getting php error #57

faspina opened this issue Feb 1, 2020 · 10 comments

Comments

@faspina
Copy link

faspina commented Feb 1, 2020

This is where it bombs out after re-start. I also deleted the image and re-pulled. This happened suddenly today . It looks like a problem with /etc/my_init.d/20_apt_update.sh

Setting up php7.4-fpm (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Setting up php7.4-fpm (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
update-alternatives: error: alternative path /run/php/php7.4-fpm.sock doesn't exist
dpkg: error processing package php7.4-fpm (--configure):
installed php7.4-fpm package post-installation script subprocess returned error exit status 2
Setting up libapache2-mod-php7.4 (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
libapache2-mod-php7.4: not switching MPM - already enabled
Feb 1 06:59:32 5f1438c9b5dc libapache2-mod-php7.4: libapache2-mod-php7.4: not switching MPM - already enabled
Setting up php7.4 (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Processing triggers for systemd (237-3ubuntu10.33) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for php7.4-cli (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Processing triggers for php7.4-cli (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Processing triggers for libapache2-mod-php7.4 (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
Errors were encountered while processing:
php7.4-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up php7.4-fpm (7.4.2-2+ubuntu18.04.1+deb.sury.org+1) ...
update-alternatives: error: alternative path /run/php/php7.4-fpm.sock doesn't exist
dpkg: error processing package php7.4-fpm (--configure):
installed php7.4-fpm package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
php7.4-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
*** /etc/my_init.d/20_apt_update.sh failed with status 100

@tevd
Copy link

tevd commented Feb 1, 2020

Exact same issue here, so this appears to be a problem with the docker build and not some invalid configuration.

@faspina
Copy link
Author

faspina commented Feb 1, 2020

Trying to build the docker myself , its does not like php version 7.4, tried it with 7.3 but no luck either

@faspina
Copy link
Author

faspina commented Feb 1, 2020

failing on this command in dockerfile

sudo apt-get -y install php7.4 php7.4-fpm libapache2-mod-php7.4 php7.4-mysql php7.4-gd

E: Unable to locate package php7.4
E: Couldn't find any package by glob 'php7.4'
E: Couldn't find any package by regex 'php7.4'
E: Unable to locate package php7.4-fpm
E: Couldn't find any package by glob 'php7.4-fpm'
E: Couldn't find any package by regex 'php7.4-fpm'
E: Unable to locate package libapache2-mod-php7.4
E: Couldn't find any package by glob 'libapache2-mod-php7.4'
E: Couldn't find any package by regex 'libapache2-mod-php7.4'
E: Unable to locate package php7.4-mysql
E: Couldn't find any package by glob 'php7.4-mysql'
E: Couldn't find any package by regex 'php7.4-mysql'
E: Unable to locate package php7.4-gd
E: Couldn't find any package by glob 'php7.4-gd'
E: Couldn't find any package by regex 'php7.4-gd'

@sic79
Copy link

sic79 commented Feb 1, 2020

I have exactly the same issue. Though I had corrupted my docker first.

@faspina
Copy link
Author

faspina commented Feb 1, 2020

Its got to be a php7.4 repo issue

@tix5000
Copy link

tix5000 commented Feb 1, 2020

Receiving same php error as described above

@faspina
Copy link
Author

faspina commented Feb 1, 2020

I cloned the repo, change the PHP version to 7.1 at the top , that was the last change to the dockerfile in the last update.
I rebuilt the container locally and tagged it , change my unraid template to pull from my new tag. Now zoneminder is working fine. I guess 7.4 no longer exist.

this line: PHP_VERS="7.1"

I am checking PHP 7.2 now. 7.3 did not work

@dlandon
Copy link
Owner

dlandon commented Feb 1, 2020

It just worked for me - php 7.4.

@faspina
Copy link
Author

faspina commented Feb 1, 2020

Yep, just tried it again, it appears to be working now with 7.4 . Weird

@dlandon
Copy link
Owner

dlandon commented Feb 1, 2020

Momentary repository issue that got solved.

@dlandon dlandon closed this as completed Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants