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

Cannot edit hostname on system settings

Added by Rafael Cardero 5 months ago

I installed OpenProject and it works fine, but I cannot edit the hostname on system settings. I need to edit the hostname to fix the "hostname setting mismatch" warning. Screenshots included. Any idea?

  • OS: Amazon Linux 2 AMI
  • Installation type: Docker 
  • Core Version: OpenProject 12.3.2
  • PostgreSQL version: 13.8

Thanks, 
Rafael


Replies (8)

RE: Cannot edit hostname on system settings - Added by Rafael Cardero 5 months ago

I got rid of the "hostname setting mismatch" warning by overwriting the OPENPROJECT_HOST__NAME environment variable when I run docker-compose, but I am still curious about why I cannot edit this field on system settings.

OPENPROJECT_HOST__NAME="pm.mydomain.com" docker-compose up -d

Any idea about why this field is disabled on system settings? Maybe a bug?

RE: Cannot edit hostname on system settings - Added by Adam Szabo 5 months ago

Hi Rafael,

please look into the manual (https://www.openproject.org/docs/installation-and-operations/installation/docker/#apache-reverse-proxy-setup)

I quote:

"The containers above are not meant as public facing endpoints. Always use an existing proxying web server or load balancer to provide access to OpenProject"

In your description you are not naming any webserver proxying, so i dought you installed a container yet. I recommend you to do so, as you might run into more trouble

I think the error message needs to be corrected here, which might be the only minor bug:

Feel free to report something about it here:

https://community.openproject.org/projects/openproject/work_packages/create_new?type=1

We appreciate the feedback and believe that together we can create great products for everyone!
If we can assist you with anything else, please don't hesitate to let us know.

Thank you for your kind help.

RE: Cannot edit hostname on system settings - Added by Rafael Cardero 5 months ago

Hi Adam,

Thank you for your response.

Yes, I configured a web proxy. I am currently using the system and it looks great! But I had to apply the workaround I said above because I could not edit the hostname on system settings. Basically, since I could not edit this setting on the frontend, I passed the correct value as an environment variable.

OPENPROJECT_HOST__NAME="pm.mydomain.com" docker-compose up -d

If other users report the same issue, I will be glad to create a bug.

Have a nice day,
Rafael

RE: Cannot edit hostname on system settings - Added by Adam Szabo 5 months ago

Core version

OpenProject 12.3.2 

PostgreSQL version

13.8

And I run docker-compose...

Do you have full root access to your Amazon Linux?

RE: Cannot edit hostname on system settings - Added by Adam Szabo 5 months ago

I think you shall NOT start the docker with the -e hostname option at all.... i use to start docker instance by `docker-compose up -d`

RE: Cannot edit hostname on system settings - Added by Rafael Cardero 5 months ago

Hi Adam, 

Yes, I use docker-compose up -d , just that I pass a value for an OpenProject environment variable. The full line is: 

OPENPROJECT_HOST__NAME="pm.mydomain.com" docker-compose up -d

Yes, I have full root access to my Amazon Linux. 

I solved the problem indirectly by using the command above and my OpenProject instance is working properly. 

Thanks for your attention,

Rafael

RE: Cannot edit hostname on system settings - Added by Adam Szabo 5 months ago

if you do not pass an argument like here

docker-compose up -d

you will be able to use the GUI to edit the hostname :)

RE: Cannot edit hostname on system settings - Added by Tom Spettigue 3 months ago

I am indeed having this same issue - and I think this SHOULD be something that I can edit in my docker-compose.override.yml file, but I think there was something else about needing a .env file or something to make it all work? I'm not sure, exactly. I have tried setting the OPENPROJECT_HOST__NAME variable to no fewer than five different settings in the docker-compose.override.yml file, but I do not get consistent behavior at all. This is running on a physical server with which I have root access to, and is being proxied to via apache.

I have tried the following values:

  1. "${OPENPROJECT_HOST__NAME:-localhost:8080}" (default)
  2. "${OPENPROJECT_HOST__NAME:-openproject.example.com:8080}"
  3. 'localhost:8080'
  4. 'openproject.example.com:8080'
  5. "openproject.example.com:8080"

No idea why, it's worked with 1, 3, and 4 - but none of the others - but sometimes it DOESN'T work with 1, 3, and 4, which is incredibly frustrating. >:/

This was with running OpenProject via docker-compose up -d. It works... better? when I try OPENPROJECT_HOST__NAME="openproject.example.com:8080" docker-compose up -d, but that's not something I can count on every time the server starts - and I still get bad links such as https://openproject.example.com/https://community.openproject.org/projects/demo-project.

Rafael Cardero wrote:

Hi Adam,

Thank you for your response.

Yes, I configured a web proxy. I am currently using the system and it looks great! But I had to apply the workaround I said above because I could not edit the hostname on system settings. Basically, since I could not edit this setting on the frontend, I passed the correct value as an environment variable.

OPENPROJECT_HOST__NAME="pm.mydomain.com" docker-compose up -d

If other users report the same issue, I will be glad to create a bug.

Have a nice day,
Rafael

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