Bug #1815

fossology.conf apache link should be removed, not saved.

Added by Mark Donohoe about 1 year ago. Updated about 1 year ago.

Status:Closed Start date:04/13/2012
Priority:High Due date:
Assignee:Dong Ma % Done:

0%

Category:Package Install
Target version:2.0.0
Rank: Tester:

Description

If fossology2.0 is installed more than once, the previous fossology.conf symlink in /etc/apache2/sites-enabled is saved as fossology.conf.old, which ends up pointing to the same file as fossology.conf. This can cause issues. The old symlink should be removed and a new one created. That is the safest way to reinstall.

It also appears that the package install is also creating a link in /etc/apache2. But it point to the wrong place. This causes the failures below. This is also a problem, as there is no need to put BOTH fossology.conf in site-enabled and conf.d, pick one and don't use the other. So if the link exists in conf.d, there is no need to make a link in sites-enabled. If there is a link is site-enabled, don't make one in conf.d.

markd@u1104-32:/etc/apache2/sites-enabled$ sudo /etc/init.d/apache2 restart
[sudo] password for markd:
apache2: Syntax error on line 227 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/fossology: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
...fail!

markd@u1104-32:/etc/apache2/sites-enabled$ sudo /etc/init.d/apache2 stop * Stopping web server apache2 * The apache2 configtest failed, so we are trying to kill it manually. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now!
... waiting [ OK ]

so apache can be stopped, but not started.

markd@squeze64:/etc/apache2$ sudo /etc/init.d/apache2 start
Starting web server: apache2apache2: Syntax error on line 227 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/fossology: No such file or directory
Action 'start' failed.
The Apache error log may have more information.
failed!

History

Updated by Dong Ma about 1 year ago

  • Status changed from New to Feedback

svn5790 changed to remove the old symlink.

But no packages create link under /etc/apache2/conf.d/, I am not sure who created /etc/apache2/conf.d/fossology file, can you help check?

Updated by Mark Donohoe about 1 year ago

Vincent,

Sorry, this was my mistake. My script was creating that link because in older releases fossology was not configured on httpd/apache. Now it is. I have removed that code. Can you fix the other issue with symlink?

Updated by Dong Ma about 1 year ago

  • Status changed from Feedback to Resolved

fixed in svn5790

Updated by Mark Donohoe about 1 year ago

  • Status changed from Resolved to Closed

Tested with 20120416 packages. Fixed.

Also available in: Atom PDF