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

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. [Win10-docker desktop] Update but pg_ctl could start server

[Win10-docker desktop] Update but pg_ctl could start server

Added by Alanwu Alanwu over 2 years ago

Hi , I am using Windows 10 + Docker_Desktop in WSL2. 

I have a Version that is May 2022, and Version August 2022. I want to upgrade it latest version.

I have tried to create container and link to previous folder location. but it failed to start. with  following message

-----> Existing PostgreSQL cluster found in /var/openproject/pgdata.
-----> Setting PGVERSION=13 PGBIN=/usr/lib/postgresql/13/bin PGCONF_FILE=/etc/postgresql/13/main/postgresql.conf
-----> Starting the all-in-one OpenProject setup at /app/docker/prod/supervisord...
-----> Database cluster already exists, not modifying.
pg_ctl: could not start server
Examine the log output.
      waiting for server to start.... stopped waiting

Can any expert help me on this ? If i delete the pgdata folder in windows it works it can start but i lost all my data. below is my 

docker run -d -p 8090:80 --name openproject -e SECRET_KEY_BASE=secret \
 -e OPENPROJECT_HOST__NAME=localhost:8090 \
 -e OPENPROJECT_HTTPS=false \
 -v C:/Users/aaa23/docker/openproject12A/pgdata :/var/openproject/pgdata \
 -v C:/Users/aaa23/docker/openproject12A/static :/var/openproject/assets \
 openproject/community:12

Hope someone can help me. thanks


Replies (2)

RE: [Win10-docker desktop] Update but pg_ctl could start server - Added by Adam Szabo over 2 years ago

Hi Alanwu,

please try reading this article, maybe it helps you, my guess is wrong ownership on the postgres db container:

https://kingsor.github.io/2019/03/23/using-postgres-with-docker-on-windows/

Good luck and best regards Adam

RE: [Win10-docker desktop] Update but pg_ctl could start server - Added by Alanwu Alanwu over 2 years ago

Thanks Adam,

I end up backup postgres database from the Old version , and Import to the New version. 

it manage to restore the entries. but i think i lost the pictures . I think i can live with it at the moment. 

Will look in to changing the HOST from windows to linux soon.

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