Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leaf2nd Level Support
You are here:
  • Forums
  • General discussion

Content

App works but won't login when going through main URL instead of IP address based one

Added by Shane Thomas 7 days ago

I installed open project and I can hit it running on my server at ip:

15.75.0.91

Works fine, login and all.

I then setup my dns to handle that ip address as:

https://projects.mysite.com

(on site, this goes through a web server proxy apache based on another machine, offsite it goes through a different webfirewall setup as an apache server and redirects both to SSL) .  When I login through the DNS name, it hangs on the logging in and openproject logs state:


Mar 14 13:28:53 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:53.594551 #16339]  INFO -- : Started GET "/login" for 10.75.1.219 at 2023-03-14 13:28:53 -0600

Mar 14 13:28:53 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:53.596307 #16339]  INFO -- : Processing by AccountController#login as HTML

Mar 14 13:28:53 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:53.612367 #16339]  INFO -- :   Rendered account/login.html.erb within layouts/no_menu (Duration: 9.6ms | Allocations: 5247)

Mar 14 13:28:53 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:53.630528 #16339]  INFO -- :   Rendered layouts/base.html.erb (Duration: 17.8ms | Allocations: 10429)

Mar 14 13:28:53 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:53.630853 #16339]  INFO -- :   Rendered layout layouts/no_menu.html.erb (Duration: 28.1ms | Allocations: 15759)

Mar 14 13:28:53 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:53.631175 #16339]  INFO -- : Completed 200 OK in 35ms (Views: 26.2ms | ActiveRecord: 3.2ms | Allocations: 17953)

Mar 14 13:28:54 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:54.120094 #16339]  INFO -- : Started GET "/api/v3/configuration" for 10.75.1.219 at 2023-03-14 13:28:54 -0600

Mar 14 13:28:54 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:54.130324 #16339]  INFO -- : duration=9.06 db=1.13 view=7.93 status=200 method=GET path=/api/v3/configuration params={} host=projects.apo.nmsu.edu user=4

Mar 14 13:28:58 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:58.409988 #16339]  INFO -- : Started POST "/login" for 10.75.1.219 at 2023-03-14 13:28:58 -0600

Mar 14 13:28:58 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:58.413254 #16339]  INFO -- : Processing by AccountController#login as HTML

Mar 14 13:28:58 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:58.413405 #16339]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"UjOO2nb2ESHaKBuyR_EFp2VQilPZsYYkDqPWL4geCroieSK8ucbyX4sUXM7NnDNahgIWSqbbiBnxHFxcgUgtCQ", "username"=>"admin", "password"=>"[FILTERED]", "login"=>"Sign in"}

Mar 14 13:28:58 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:58.650658 #16339]  INFO -- : Redirected to http://projects.mysite.com/two_factor_authentication/request

Mar 14 13:28:58 projects openproject-web-1.service[16339]: I, [2023-03-14T13:28:58.650993 #16339]  INFO -- : Completed 302 Found in 237ms (ActiveRecord: 2.1ms | Allocations: 4183)

Not sure why the logging in hangs, maybe something with my proxies I setup (I did 0 setup for https or anything on the openproject side) I just set up wiki.js the sameway and that worked great.  I can post my local and outside apache configs for the sites in question if need be.  The redirected to two_factor_authentication/request is interesting to me as I never set that up.  Not sure if this normal behavior though.  Here for completeness is my local apache proxy settings anyway:

<VirtualHost *:80>
    ServerName projects.mysite.com
    ServerAlias projects
    Redirect "/" "https://projects.mysite.com/"
</VirtualHost>

<VirtualHost 15.75.0.152:443>
    ServerName projects.mysite.com
    ServerAlias projects
<If "%{HTTP_HOST} != 'projects.mysite.com'">
    Redirect "/" "https://projects.mysite.com/"
</If>

    SSLOptions +StdEnvVars
#Include extra/ssl-certs
Include extra/wildcardapo-ssl-certs
    ProxyPreserveHost On
    ProxyRequests Off
    ProxyPass       /   http://15.75.0.91/
    ProxyPassReverse    /   http://15.75.0.91/
</VirtualHost>

I haven't tested this from offsite but our web-firewall has a similar virtualhost setup from the DMZ.


Replies (2)

RE: App works but won't login when going through main URL instead of IP address based one - Added by Jan H 5 days ago

Wild guess, but have you tried tried openproject reconfigure command to set the listening address to the domain you specified? Perhaps the openproject backend expects IP instead of domain?

RE: App works but won't login when going through main URL instead of IP address based one - Added by Shane Thomas 5 days ago

If I recall correctly I did tell it projects.mysite.com and if I login through the ip address (since the user name / password works that way) then it warns me the ip address does not match the projects.mysite.com

  • (1 - 2/2)
Loading...