Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return

Pups::ExecError: su postgres -c ‘psql discourse -c “alter schema public owner to discourse;”’ failed with return #<Process::Status: pid 54 exit 2>

ata directory “/shared/postgres_data” has invalid permissions

my app.yml file

## Plugins go here                                 ## see https://meta.discourse.org/t/19157 for deta$hooks:                                               after_code:                                          - exec:                                                cd: $home/plugins                                  cmd:                                                 - git clone https://github.com/discourse$          - git clone https://github.com/Ebsy/disc$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/davidtayl$          - git clone https://github.com/discourse$##          - git clone https://github.com/pavilio$## Official Plugins                                ##          - git clone https://github.com/discour$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$          - git clone https://github.com/discourse$## New Pluguns installed                                     - git clone https://github.com/Ahmedgaga$##          - git clone https://github.com/gdpelic$          - git clone https://github.com/paviliond$## Any custom commands to run after building
run:                                                 - exec: echo "Beginning of custom commands"        ## If you want to set the 'From' email address f$  ## After getting the first signup email, re-comm$  #- exec: rails r "SiteSetting.notification_email$  - exec: echo "End of custom commands"

copy and paste this to see if any fornmatting errors.

Not sure how to wrap it so it lists…

2023-02-11 19:55:35.034 GMT [42] LOG: skipping missing configuration file “/shared/postgres_data/postgresql.auto.conf”
2023-02-11 19:55:35.035 UTC [42] FATAL: could not read permissions of directory “/shared/postgres_data”: Permission denied

Try discourse doctor as I don’t seem to be able to help you any further as your just reposting an error. Need to scroll up and look for a cause and verify your app.yml file.

If you perform regular server backups and/or discourse backups you can also recovery that way. but i believe you will loose posts created after the backup.

Hi Ratnam,

Perhaps it would be a good idea to explain what you’re trying to achieve and what software you use because it’s a bit confusing right now. You’re mostly posting error messages without the proper context to fully understand.

Please first reply to these questions and we’ll try moving forward starting from here :slight_smile:

  1. Are you trying to install a production Discourse using the regular docker install, following the steps described here discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub?

  2. What is your operating system?

  3. What are your server specs?

This looks like the problem, though I cannot imagine how changing the plugins would have caused an issue with the postgres permissions. Have you changed something else? This is a standard install, right?

safe-mode will not help since the site isn’t working.

I solved the issue by changing postgres data permissions @Canapin @Heliosurge Thanks for your support

I used following slack
GitHub - discourse/discourse_docker: A Docker image for Discourse · GitHub /var/discoursed
Operating System - ubuntu 20.04 LTS
Server - 8GB RAM 30GB

Thanks & Regards

축하합니다. 해결되셨다니 다행이네요. 플러그인 설치를 시도해 볼 계획이시라면 서버 백업을 해두시는 것을 추천드립니다.

솔직히 말씀드리면 플러그인 설치를 올바르게 진행하신다면 큰 문제가 없을 것입니다. 다만, 설치하려고 하던 그 플러그인을 다시 생각해 보니 업데이트가 필요할 수도 있겠네요. 기억이 정확하지는 않지만, 마지막으로 활동이 있었던 시점이 2022년 2월로 표시되던 것 같은데, 그렇다면 약 1년 정도 구버전일 수 있고, 그 이후의 변경 사항으로 인해 플러그인이 깨졌을 가능성이 있습니다.

확인됨

Customization > Plugin 카테고리를 살펴보고, 관심 있는 플러그인이 있는지 확인해 보시길 추천합니다.

Discourse Reactions

  • 꽤 멋진 플러그인으로, 단순한 '좋아요’를 넘어선 다양한 반응을 추가할 수 있게 해줍니다.

National Flags

  • 회원들이 게시글에 국기를 표시할 수 있는 옵션을 제공합니다.

Discourse Docs

  • 지식 기반 검색을 설정하는 데 좋습니다. Solved 플러그인과 함께 사용하면 좋습니다.

Discourse Solved

  • 사용자가 질문을 할 수 있는 카테고리를 설정합니다. OP(게시자)가 작동한 최선의 해결책을 선택할 수 있습니다. 첫 번째 게시글을 항상 표시하도록 카테고리를 설정하는 것이 좋습니다. 해결책은 OP의 게시글에 인용되고 '해결됨’으로 표시됩니다. solvef 인용구를 더 아름답게 보이게 하는 테마 컴포넌트도 있습니다.

Discourse Who’s Online

  • 다양한 페이지에서 누가 온라인인지 보여줍니다. 게시글을 읽는 동안 해당 사용자가 온라인 상태라면 프로필 사진 주위에 빛나는 원형이 표시됩니다.

Discourse Templates

  • 템플릿 답변, 즉 '고정 답변’을 생성합니다. 언급할 것이 너무 많습니다. 관련 주제를 참고하세요.

가장 중요한 것은 비추천(deprecated)되고 수명 종료(end of life)된 플러그인은 피하는 것입니다. 활발하게 유지 관리되는 플러그인을 선택하세요. 주목할 만한 좋은 플러그인으로는 Discourse 공식 플러그인과 Pavilion 그룹의 플러그인이 있습니다. 다만, 제가 언급한 이 두 그룹 외에도 활발하게 유지 관리되는 많은 다른 플러그인들도 있습니다.