Upgrade broke readmine
Added by Joe Klovance almost 11 years ago
I am running Redmine on Ubuntu 12.04.4 and Apache 2.4.9.
It was running correctly until I did a software upgrade in response to Heartbleed. Now it appears that Passenger is no longer working as I am getting the following error;
"The requested URL /projects/fhc/issues.html was not found on this server."
I have no idea where to start to fix this issue./
Thanks in advance.
Replies (20)
RE: Upgrade broke readmine
-
Added by Martin Denizet (redmine.org team member) almost 11 years ago
Hi Joe,
I suggest you to run the passenger install again if you used the gem:
gem install passenger passenger-install-apache2-module
If will give you the code to load Passenger in Apache2. Copy and paste the code output from the console into
/etc/apache2/conf-available/passenger.conf
Then enable the config:
sudo a2enconf passenger
And finally, reload Apache.
Cheers,
RE: Upgrade broke readmine
-
Added by Joe Klovance almost 11 years ago
I truly hate installing anything on linux. Nothing is ever easy. When I do the "passenger-install-apache2-module". I get to the dependency check and It spits out the following;
Checking for required software...
- Checking for C compiler...
Found: yes
Location: /usr/bin/cc - Checking for C++ compiler...
Found: yes
Location: /usr/bin/c++ - Checking for Curl development headers with SSL support...
Found: yes
Supports SSL: yes
curl-config location: /usr/bin/curl-config
Header location: /usr/include/curl/curl.h
Usable: yes
Version: libcurl 7.22.0 - Checking for OpenSSL development headers...
Found: yes
Location: /usr/include/openssl/ssl.h - Checking for Zlib development headers...
Found: yes
Location: /usr/include/zlib.h - Checking for Apache 2...
Found: yes
Location of httpd: /usr/sbin/apache2
Apache version: 2.4.9 - Checking for Apache 2 development headers...
Found: no - Checking for Rake (associated with /usr/local/bin/ruby)...
Found: yes
Location: /usr/local/bin/ruby /usr/local/bin/rake - Checking for OpenSSL support for Ruby...
Found: yes - Checking for RubyGems...
Found: yes - Checking for Ruby development headers...
Found: yes
Location: /usr/local/lib/ruby/1.8/x86_64-linux/ruby.h - Checking for rack...
Found: yes - Checking for Apache Portable Runtime (APR) development headers...
Found: no - Checking for Apache Portable Runtime Utility (APU) development headers...
Found: no
Some required software is not installed.
But don't worry, this installer will tell you how to install them.
Press Enter to continue, or Ctrl-C to abort.
Installation instructions for required software
- To install Apache 2 development headers:
Please install it with apt-get install apache2-threaded-dev
- To install Apache Portable Runtime (APR) development headers:
Please install it with apt-get install libapr1-dev
- To install Apache Portable Runtime Utility (APU) development headers:
Please install it with apt-get install libaprutil1-dev
No matter how many times I run "apt-get install libapr1-dev" and "apt-get install libaprutil1-dev", which tell me "libapr1-dev is already the newest version.", they never disappear from the installation list. When I try "install apache2-threaded-dev" I get the following;
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
apache2-threaded-dev : Depends: apache2.2-common (= 2.2.22-1ubuntu1.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Help.
RE: Upgrade broke readmine
-
Added by Martin Denizet (redmine.org team member) almost 11 years ago
Did you do an apt-get update
prior any APT operation?
RE: Upgrade broke readmine
-
Added by Jan Niggemann (redmine.org team member) almost 11 years ago
"The requested URL /projects/fhc/issues.html was not found on this server."
Is this URI really redmine-related? /projects/fhc/issues
would be for sure, but issues.html
?
RE: Upgrade broke readmine
-
Added by Martin Denizet (redmine.org team member) almost 11 years ago
Indeed, I think it should be /projects/fhc/issues
RE: Upgrade broke readmine
-
Added by Martin Denizet (redmine.org team member) almost 11 years ago
You might have some Apache rewritting going on there.
RE: Upgrade broke readmine
-
Added by Joe Klovance almost 11 years ago
Martin Denizet wrote:
Did you do an
apt-get update
prior any APT operation?
When I did an "apt-get update" before it broke the server. I just want to update what I need to to get redmine back working.
RE: Upgrade broke readmine
-
Added by Joe Klovance almost 11 years ago
Martin Denizet wrote:
You might have some Apache rewritting going on there.
Yes the link I am going to does not have the .html at the end.
RE: Upgrade broke readmine
-
Added by Martin Denizet (redmine.org team member) almost 11 years ago
Can you publish your Apache conf and any .htaccess you might have active?
RE: Upgrade broke readmine
-
Added by Joe Klovance almost 11 years ago
It looks like the issue is that the upgrade installed apache2.4 which does not work with Passenger. Is there an easy way to downgrade apache to 2.2?
RE: Upgrade broke readmine
-
Added by Jan Niggemann (redmine.org team member) almost 11 years ago
Joe Klovance wrote:
Is there an easy way to downgrade apache to 2.2?
That entirely depends on how you installed it... if you used some kind of package manager, use it to downgrade. If you installed manually, then remove and reinstall the old version.
RE: Upgrade broke readmine
-
Added by Joe Klovance almost 11 years ago
I hate linux. I did not install it. I have no idea how it was installed. How would I find out how it was installed? I do not have contact with the person who installed it.
RE: Upgrade broke readmine
-
Added by Martin Denizet (redmine.org team member) almost 11 years ago
I look like your Apache was manually compiled.
To check if it was installed with the package manager:
sudo dpkg --get-selections | grep apache
Let's check also if Passenger came from the package manager:
sudo dpkg --get-selections | grep passenger
I wrote an article about installing Redmine 2.5.x on Ubuntu 14.04 (Apache2.4). The only problem I got is to get GitSmartHTTP to work.
If It's a VM, maybe it would actually save you time to restart from scratch as you are not sure what the previous admin did.
RE: Upgrade broke readmine
-
Added by Jan Niggemann (redmine.org team member) almost 11 years ago
Joe Klovance wrote:
I hate linux.
Stop using it...
RE: Upgrade broke readmine
-
Added by Joe Klovance almost 11 years ago
I would love to but I am not a server admin and I do not have the skills to set up the entire server on IIS on remote server. I have to deal with what I have.
RE: Upgrade broke readmine
-
Added by Joe Klovance almost 11 years ago
I do not have the time or inclination to learn how to re-build the server from scratch. Linux servers are a hack. "Apt-get update" should not kill a server. I have had enough of trying to figure out which versions of which packages which are dependant on specific versions of other packages which may or may not be compiled for the version of ubutu I happen to be using.
As to the article. If i only had redmines on the server that would be simple but I have other things on that server and am not willing to pay $25/month to run a separate redmines server.
Both Apache and passenger are package installs. I have a problem with held broken packages that will not go away. How do I fix held broken packages?
Martin Denizet wrote:
I look like your Apache was manually compiled.
To check if it was installed with the package manager:
[...]
Let's check also if Passenger came from the package manager:
[...]I wrote an article about installing Redmine 2.5.x on Ubuntu 14.04 (Apache2.4). The only problem I got is to get GitSmartHTTP to work.
If It's a VM, maybe it would actually save you time to restart from scratch as you are not sure what the previous admin did.
RE: Upgrade broke readmine
-
Added by Martin Denizet (redmine.org team member) almost 11 years ago
I think you need to get a specialist, able to understand how you got there, to connect to your server and get things back under control.
It's just too difficult to help you out without the context or access to the server.
Good luck!
RE: Upgrade broke readmine
-
Added by Jan Niggemann (redmine.org team member) almost 11 years ago
Joe Klovance wrote:
I do not have the time or inclination to learn how to re-build the server from scratch. Linux servers are a hack. "Apt-get update" should not kill a server.
Apt-get update
doesn't kill servers, people (ab)using apt-get update
kill servers. That said, this is not the place to show your dislike for certain operating systems.
As to the article. If i only had redmines on the server that would be simple but I have other things on that server and am not willing to pay $25/month to run a separate redmines server.
That, too, doesn't have anything to do with your issue.
Moderator warning: Please focus and stay on subject (i.e. redmine). This is not the place to show your dislike for one operating system or another.¶
RE: Upgrade broke readmine
-
Added by Joe Klovance almost 11 years ago
I apologize for showing my frustration in dealing with the OS. Is there anything I can do short of re-building the entire server to fix the issue cause by running "appt-get update" which automatically installed apache 2.4 and broke redmined?
RE: Upgrade broke readmine
-
Added by Jan Niggemann (redmine.org team member) almost 11 years ago
IMHO the fastest way to get your system up and running again is to get an expert look into the issue.
I think you need to get a specialist, able to understand how you got there, to connect to your server and get things back under control.
It's just too difficult to help you out without the context or access to the server.
I could not have put it better.