Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. ERR_TOO_MANY_REDIRECTS

ERR_TOO_MANY_REDIRECTS

Added by Maxime from space over 2 years ago

fresh install with all-in-one docker container following the doc "Using this container in production"
https://www.openproject.org/docs/installation-and-operations/installation/docker/

creating the container just as told :

sudo mkdir -p /var/lib/openproject/{pgdata,assets} 

docker run -d -p 8080:80 --name openproject \
  -e OPENPROJECT_HOST__NAME=mywebsite.com \
  -e OPENPROJECT_SECRET_KEY_BASE=dsfidfoehzoifeozifjoze \
  -v /var/lib/openproject/pgdata:/var/openproject/pgdata \
  -v /var/lib/openproject/assets:/var/openproject/assets \
  openproject/community:12

verifying it's running good with 
docker ps
docker top openproject

everything runs nicely

using apache2 with openproject.conf just as the docs says (replacing ServerName with mine); and using correct .pem and .key from CloudFlare :

<VirtualHost *:80>
    ServerName mywebsite.com

    RewriteEngine on
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/?(.*)$ https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>

<VirtualHost *:443>
    ServerName mywebsite.com

    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/server.pem
    SSLCertificateKeyFile /etc/ssl/private/server.key

    RewriteEngine on
    RewriteRule "^$" "/" [R,L]

    ProxyRequests off

    <Location "/">
      RequestHeader set X-Forwarded-Proto 'https'

      ProxyPreserveHost On
      ProxyPass http://127.0.0.1:8080/
      ProxyPassReverse http://127.0.0.1:8080/
    </Location>
</VirtualHost>

Finally, when typing mywebsite.com,  I get :
" ERR_TOO_MANY_REDIRECTS "

When typing https://01.01.01.01 (my server ip) I get :
Apache default page

When typing http://01.01.01.01 (my server ip without ssl ) I get :
another of my websites (the f1rst alphabetically)

3 days on it, is the doc written correctly ?


Replies (1)

RE: ERR_TOO_MANY_REDIRECTS - Added by M4j0r Byte over 2 years ago

Hi Maxime,

I have been struggling with the install myself over the last few days. My problem does not seem the same but seems like it might be similar, so thought I would jump into this thread with you.

 I am following the docs here: https://www.openproject.org/docs/installation-and-operations/installation/docker/

I am running using the one container per process method - I have gotten to the point where I can access OP via the public address ( port 8080 ) with or with out SSL. Currently I have it running with SSL  ( and HSTS ) disabled via the main yml file ( while I test )

The issue is -- I can not for the life of me get my existing webserver to proxy the connection. 

But I do not believe the problem has to do with my local web config, I can not connect to OP via the command line on local host -- so for instance curl -v http://127.0.0.1:8080 hangs but at the same time I can connect to OP via the public address.

what happens if you try and connect locally?

curl -v http://127.0.0.1:8080
*   Trying 127.0.0.1:8080...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/7.68.0
> Accept: */*
> 
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
  • (1 - 1/1)
Loading...