Project

General

Profile

Getting "index of" page although prequesites and config seem to be correct

Added by Anton Clave almost 9 years ago

Hello everyone,

I recently ran into an error, getting Apache's Index of /-page. The last hours I spent googleing for possible errors and also reinstalled all involved prequesites.

The errors appeared probably after some of Ubuntu's system upgrades. I cannot figure out, where it comes from.

I am running an Ubuntu 14.04.3 LTS on a Strato Server. The versions of used prequesites are

root@xxx:/usr/share# apache2 -v
Server version: Apache/2.4.17 (Ubuntu)
root@xxx:/usr/share# ruby -v
ruby 2.1.7p400 (2015-08-18 revision 51632) [i386-linux-gnu]
root@xxx:/usr/share# bundle -v
Bundler version 1.10.6
root@xxx:/usr/share# dpkg -l | grep passenger
ii  libapache2-mod-passenger             1:5.0.20-1~trusty1                             i386         Rails and Rack support for Apache2
ii  passenger                            1:5.0.20-1~trusty1                             i386         Rails and Rack support for Apache2 and Nginx
ii  passenger-dev                        1:5.0.20-1~trusty1                             i386         Rails and Rack support for Apache2 and Nginx
ii  passenger-doc                        1:5.0.20-1~trusty1                             all          Rails and Rack support for Apache2 - Documentation

My apache config file looks like this:

<VirtualHost *:443>
        ServerName SERVER_URL

        DocumentRoot /usr/share/redmine/public
        ServerAdmin email@xxx
        LogLevel warn
        ErrorLog /var/log/apache2/redmine_error
        CustomLog /var/log/apache2/redmine_access combined

        <Directory /usr/share/redmine/public>
                Options Indexes FollowSymLinks MultiViews
#        Options FollowSymLinks
#                AllowOverride None
        Require all granted
        Allow from all
        </Directory>
        SSLEngine On
        SSLCertificateFile /path/to/ssl/file.pem
</VirtualHost>

/usr/share/redmine is a symlink to the current redmine-3.1 from SVN.
The passenger-config validate install command gives me
What would you like to validate?
Use <space> to select.
If the menu doesn't display correctly, press '!'

   ⬢  Passenger itself
 ‣ ⬢  Apache

-------------------------------------------------------------------------

Checking whether there are multiple Apache installations...
Only a single installation detected. This is good.

-------------------------------------------------------------------------

 * Checking whether this Passenger install is in PATH... ✓
 * Checking whether there are no other Passenger installations... ✓
 * Checking whether Apache is installed... ✓
 * Checking whether the Passenger module is correctly configured in Apache... ✓

Everything looks good. :-)

The output of passenger-status is
Version : 5.0.20
Date    : 2015-10-19 02:29:38 +0200
Instance: NB7ZCzqc (Apache/2.4.17 (Ubuntu) SVN/1.8.8 Phusion_Passenger/5.0.20)

----------- General information -----------
Max pool size : 6
App groups    : 0
Processes     : 0
Requests in top-level queue : 0

----------- Application groups -----------

I cannot tell, why redmine is not among Application groups.

The passenger-memory-stats again seem to indicate that passenger is running fine:

Version: 5.0.20
Date   : 2015-10-19 02:30:41 +0200

------- Apache processes --------

### Processes: 0
### Total private dirty RSS: 0.00 MB

-------- Nginx processes --------

### Processes: 0
### Total private dirty RSS: 0.00 MB

---- Passenger processes ----
PID   VMSize   Private  Name
-----------------------------
6999  30.3 MB  0.7 MB   Passenger watchdog
7002  50.8 MB  1.0 MB   Passenger core
7007  40.6 MB  0.8 MB   Passenger ust-router
### Processes: 3
### Total private dirty RSS: 2.51 MB

I really don't know, what else to check and where the error could be located. Of course I checked the log files of apache and redmine but could not find any helpful information.
Any help would be highly appreciated.
- Anton


Replies (1)

RE: Getting "index of" page although prequesites and config seem to be correct - Added by Anton Clave almost 9 years ago

This morning, I can see the application in passenger-status:

----------- Application groups -----------
/usr/share/redmine:
  App root: /usr/share/redmine
  Requests in queue: 0
  * PID: 12325   Sessions: 0       Processed: 3       Uptime: 35s
    CPU: 3%      Memory  : 58M     Last used: 32s ago

and also in passenger-memory-stats
----- Passenger processes -----
PID    VMSize    Private  Name
-------------------------------
9293   30.3 MB   0.7 MB   Passenger watchdog
9297   52.2 MB   1.3 MB   Passenger core
9303   40.6 MB   0.8 MB   Passenger ust-router
11884  100.3 MB  38.7 MB  Passenger AppPreloader: /usr/share/redmine
12325  121.3 MB  58.0 MB  Passenger RubyApp: /usr/share/redmine
### Processes: 5

but I can still not access it with a browser. The index of / keeps coming up.

I found something that might be helpful, trying to restart the app with passenger-config restart-app /.
In this case the apache error log says:

App 12636 stdout:
[ 2015-10-19 09:13:05.7008 9297/b51ffb40 age/Cor/CoreMain.cpp:793 ]: Disconnecting long-running connections for process 12636, application /usr/share/redmine
App 12826 stdout:
App 12826 stderr:  --> Compiling passenger_native_support.so for the current Ruby interpreter...
App 12826 stderr:
App 12826 stderr:      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 12826 stderr:
App 12826 stderr:  --> Downloading precompiled passenger_native_support.so for the current Ruby interpreter...
App 12826 stderr:
App 12826 stderr:      (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 12826 stderr:
App 12826 stderr:      Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.20/rubyext-ruby-2.1.7-athlon-linux.tar.gz: The requested URL returned error: 404 Not Found
App 12826 stderr:      Trying next mirror...
App 12826 stderr:      Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.20/rubyext-ruby-2.1.7-athlon-linux.tar.gz: The requested URL returned error: 403 Forbidden
App 12826 stderr:  --> Continuing without passenger_native_support.so.

Google won't find anything regarding this.

Looking further into this, I found this post:
https://groups.google.com/forum/#!topic/phusion-passenger/jiOpv9Isua4
It seems to be an Apache bug:
https://bz.apache.org/bugzilla/show_bug.cgi?id=58498

I hope this helps other people who might run into this.

    (1-1/1)