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

Fix mod_fastcgi, mod_php5, and pkgrepo states #222

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

noelmcloughlin
Copy link
Member

This PR fixes apache.mod_fastcgi state failure.

Summary of Changes

  • Issue summary
  • State failures on Ubuntu 16.04
[ERROR   ] Command '['apt-get', '-q', 'update']' failed with return code: 100
[ERROR   ] stdout: Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
[ERROR   ] stderr: W: The repository 'http://httpredir.debian.org/debian xenial Release' does not have a Release file.
[ERROR   ] retcode: 100
[ERROR   ] Failed to configure repo 'deb http://httpredir.debian.org/debian xenial': W: The repository 'http://httpredir.debian.org/debian xenial Release' does not have a Release file.
[ERROR   ] Service apache2 is already enabled, and is dead

- state failures on Debian Jessie

[ERROR   ] Command '['systemd-run', '--scope', 'apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'libapache2-mod-fastcgi']' failed with return code: 100
[ERROR   ] stdout: Reading package lists...
Building dependency tree...
Reading state information...
Package libapache2-mod-fastcgi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
[ERROR   ] stderr: Running as unit run-4638.scope.
E: Package 'libapache2-mod-fastcgi' has no installation candidate
[ERROR   ] retcode: 100
[ERROR   ] Problem encountered installing package(s). Additional info follows:

Testing

  • Tested in Vagrant Debian Jessie
    I updated /etc/apt/sources.list.d/non-free.list adding working mirror.
deb http://httpredir.debian.org/debian jessie non-free
deb http://ftp.us.debian.org/debian jessie non-free
  • Tested on OS Ubuntu 16.04
    Skip pkgrepo function, not required.
          ID: mod-fastcgi
    Function: pkg.installed
        Name: libapache2-mod-fastcgi
      Result: True
     Comment: 1 targeted package was installed/updated.
     Started: 20:45:22.054526
    Duration: 7749.854 ms
     Changes:
              ----------
              libapache2-mod-fastcgi:
                  ----------
                  new:
                      2.4.7~0910052141-1.1+deb8u1
                  old:

@noelmcloughlin
Copy link
Member Author

noelmcloughlin commented Feb 14, 2018

This PR will also fix broken apache.mod-php5 state.

    ```
     ID: mod-php5
     Function: pkg.installed
    Name: libapache2-mod-php5
     Result: False
     Comment: Problem encountered installing package(s). Additional info follows:

          errors:
              - Running scope as unit run-r45de70c7693c41648577c376c52ffc97.scope.
                E: Package 'libapache2-mod-php5' has no installation candidate
 Started: 13:13:12.463056
Duration: 1773.995 ms
 Changes:

@noelmcloughlin noelmcloughlin changed the title Fix mod_fastcgi and pkgrepo states Fix mod_fastcgi, mod_php5, and pkgrepo states Feb 14, 2018
@noelmcloughlin
Copy link
Member Author

Selfie-merge per community guidelines as PR is stuck a few weeks.

@noelmcloughlin noelmcloughlin merged commit da54301 into saltstack-formulas:master Mar 15, 2018
@noelmcloughlin noelmcloughlin deleted the FixFastCgi branch March 15, 2018 10:47
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

Successfully merging this pull request may close these issues.

None yet

1 participant