Bug 1090835 - pulp does not start if no plugins are installed
Summary: pulp does not start if no plugins are installed
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: 2.4 Beta
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: pulp-qe-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-24 09:44 UTC by mkovacik
Modified: 2015-02-28 22:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-28 22:05:07 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 418 0 None None None Never

Description mkovacik 2014-04-24 09:44:53 UTC
Description of problem:
Updating from Alpha I've encountered a syntax error in `/etc/httpd/conf.d/pulp.conf`
It seems to be caused by the wildcard not being able to match anything in the target directory of the Include statement:
  # line53
  <VirtualHost *:80>
      Include /etc/pulp/vhosts80/*.conf
  </VirtualHost>

A simple workaround is to create a dummy config file:
  sudo touch /etc/pulp/vhosts80/empty.conf

Version-Release number of selected component (if applicable):
pulp-server-2.4.0-0.9.beta.git.71.8eb429a.fc20.noarch

How reproducible:
Always

Steps to Reproduce:
1. install pulp-server
2. systemctl restart httpd.service


Actual results:
# service fails to start due to config file "syntax" error:
[buildbot@dhcp131-12 workdir]$ sudo systemctl status httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since Thu 2014-04-24 05:10:42 EDT; 3min 39s ago
  Process: 11297 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 11294 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 11294 (code=exited, status=1/FAILURE)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"

Apr 24 05:10:42 dhcp131-12.brq.redhat.com systemd[1]: Starting The Apache HTTP Server...
Apr 24 05:10:42 dhcp131-12.brq.redhat.com httpd[11294]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 54 of /etc/httpd/conf.d/pulp.conf: No matches for the wildcard '*.conf' in '/e...nal if required)
Apr 24 05:10:42 dhcp131-12.brq.redhat.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 24 05:10:42 dhcp131-12.brq.redhat.com systemd[1]: Failed to start The Apache HTTP Server.
Apr 24 05:10:42 dhcp131-12.brq.redhat.com systemd[1]: Unit httpd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
 
Expected results:
# httpd service ok to start

Additional info:

Comment 1 Michael Hrivnak 2014-04-28 16:29:07 UTC
This is a known issue that is only a problem if no plugins are installed, in which case pulp isn't useful.

Comment 2 Brian Bouterse 2015-02-28 22:05:07 UTC
Moved to https://pulp.plan.io/issues/418


Note You need to log in before you can comment on or make changes to this bug.