VPS Ubuntu 설치 문제

Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/syntax_tree-disable_ternary-1.0.0.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/test-prof-1.4.4.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/unf-0.2.0.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/yaml-lint-0.1.2.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/syntax_tree-disable_ternary-1.0.0.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/test-prof-1.4.4.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/unf-0.2.0.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/yaml-lint-0.1.2.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/syntax_tree-disable_ternary-1.0.0.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/test-prof-1.4.4.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/unf-0.2.0.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/yaml-lint-0.1.2.gem`. It is likely that you need to grant write permissions for that path.

Fetching yard 0.9.37




Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/yard-0.9.37.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/yard-0.9.37.gem`. It is likely that you need to grant write permissions for that path.

Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.3.0/cache/yard-0.9.37.gem`. It is likely that you need to grant write permissions for that path.

Bundler::PermissionError: There was an error while trying to write to `/var/lib/gems/3.3.0/cache/base64-0.2.0.gem`. It is likely that you need to grant write permissions for that path.
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/shared_helpers.rb:109:in `rescue in filesystem_access'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/shared_helpers.rb:104:in `filesystem_access'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/rubygems_integration.rb:393:in `block in download_gem'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/retry.rb:40:in `run'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/retry.rb:30:in `attempt'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/rubygems_integration.rb:385:in `download_gem'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/source/rubygems.rb:494:in `download_gem'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/source/rubygems.rb:451:in `fetch_gem'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/source/rubygems.rb:435:in `fetch_gem_if_possible'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/source/rubygems.rb:177:in `install'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/installer/gem_installer.rb:55:in `install'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/installer/gem_installer.rb:17:in `install_from_spec'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/installer/parallel_installer.rb:133:in `do_install'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/installer/parallel_installer.rb:124:in `block in worker_pool'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/worker.rb:62:in `apply_func'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/worker.rb:57:in `block in process_queue'
  <internal:kernel>:187:in `loop'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/worker.rb:54:in `process_queue'
  /var/lib/gems/3.3.0/gems/bundler-2.6.4/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing base64 (0.2.0), and Bundler cannot continue.

In Gemfile:
  actionmailer was resolved to 7.2.2.1, which depends on
    actionpack was resolved to 7.2.2.1, which depends on
      actionview was resolved to 7.2.2.1, which depends on
        rails-dom-testing was resolved to 2.2.0, which depends on
          activesupport was resolved to 7.2.2.1, which depends on
            base64


환영합니다.

이 오류에 대한 맥락을 자세히 알려 주시겠어요?

또한, 설명적인 제목을 작성해 주시면 도움이 됩니다!

안녕하세요, 설치에 도움이 필요합니다. 이 오류가 발생하는데 어떻게 해야 할지 모르겠습니다.

base64 (0.2.0) 설치 중 오류가 발생하여 Bundler를 계속 진행할 수 없습니다.


이것이 표준 설치인가요?

네, 표준 설치를 진행했지만 왜 작동하지 않고 이런 오류가 발생하는지 모르겠어요.

서버가 인터넷에 연결되어 있나요?

네
연결됨

설치 스크립트를 실행 중인 사용자의 권한에 문제가 있는 것 같습니다. 루트(root) 사용자인가요?

또한, 이 서버는 새로 만든 클라우드 서버인가요, 아니면 이미 다른 용도로 사용 중이던 서버인가요? 후자라면 지원이 어려울 수 있습니다.

Discourse의 호스트 이름을 입력하세요? [discourse.example.com]: [discourse.example.com

도메인 이름 확인 중 . . .
경고: 443 포트를 사용하여 호스트 이름 [discourse.example.com으로 컴퓨터에 접근할 수 없습니다.
경고: http://[discourse.example.com (포트 80)으로의 연결도 실패했습니다.

이는 [discourse.example.com이 이 discourse 설치 대상 서버에 도달하지 않는 IP 주소로 해석되고 있음을 시사합니다.

가장 먼저 확인할 것은 [discourse.example.com이 이 서버의 IP 주소로 해석되는지 여부입니다.
보통 도메인을 구매한 곳에서 이 작업을 수행합니다.

IP 주소가 올바르게 해석된다고 확신이 있다면 방화벽 문제일 수 있습니다.
"open ports YOUR CLOUD SERVICE"로 웹 검색을 해보시는 것을 권장합니다.

이 도구는 가장 표준적인 설치에만 적용됩니다. 위의 문제를 해결할 수 없다면 containers/app.yml 파일을 직접 편집한 후 다음을 입력해야 합니다.

./launcher rebuild app



도메인 이름이 없어요

도메인 이름 없이 Discourse를 설정하는 것은 불가능합니다.

VPS 서버에서 도메인 이름 없이 포럼을 설정할 수 없다는 뜻인가요? 아무것도 설치하지 않은 상태에서 어떻게 동작하는지, 어떤 모습인지 보고 싶어서요.

도메인은 있는데 이 서버에 어떻게 추가하나요?

도메인 이름 확인 중 . . .
경고: 호스트명 lemontest.online을 사용하여 컴퓨터의 포트 443에 액세스할 수 없는 것 같습니다.
경고: http://lemontest.online (포트 80)과의 연결도 실패합니다.

이것은 lemontest.online이 이 discourse를 설치하는 머신에 도달하지 못하는 IP 주소로 해석되고 있음을 시사합니다.

가장 먼저 해야 할 일은 lemontest.online이 이 서버의 IP 주소로 해석되는지 확인하는 것입니다.
보통 도메인을 구매한 곳에서 이 작업을 수행합니다.

IP 주소가 올바르게 해석된다고 확신한다면, 방화벽 문제일 수 있습니다.
"YOUR CLOUD SERVICE 포트 열기"로 웹 검색을 하면 도움이 될 수 있습니다.

이 도구는 가장 표준적인 설치에만 설계되었습니다.
위 문제를 해결할 수 없다면 containers/app.yml 파일을 직접 편집한 다음

./launcher rebuild app을 입력해야 합니다.

먼저 DNS가 전파되기를 기다려야 할 가능성이 높습니다.

Discourse를 간단히 체험해 보고 싶으시다면, 저희 호스팅에서 무료 트라이얼을 시작하시는 것이 훨씬 유리합니다. 가입은 Discourse pricing | Discourse - Civilized Discussion 에서 가능합니다.

또는 GitHub Codespaces 개발 설치는 개발 서버를 빠르게 생성하는 좋은 방법입니다.

새로운 문제가 발생했는데 도움을 주세요

[BABEL] 참고: /var/www/discourse/app/assets/javascripts/discourse/ember/ember-template-compiler.js의 스타일링이 500KB의 최대치를 초과하여 코드 생성기가 비최적화되었습니다.
[BABEL] 참고: /var/www/discourse/app/assets/javascripts/discourse/ember/ember.js의 스타일링이 500KB의 최대치를 초과하여 코드 생성기가 비최적화되었습니다.
…[Babel: @glimmer/component > applyPatches]
…[Babel: @ember/test-waiters > applyPatches]
…[Babel: dialog-holder > applyPatches]
…[Babel: ember-this-fallback > applyPatches]
…[Babel: float-kit > applyPatches]
…[Babel: select-kit > applyPatches]
…[@embroider/compat/app]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[SourceMapConcat]
…[Babel: admin > applyPatches]
…[Babel: admin > applyPatches]
…[SourceMapConcat]
…[TerserWriter]
…[Babel: discourse > applyPatches]
…[SourceMapConcat]
…[TerserWriter]
…[Babel: discourse-plugins > applyPatches]
I, [2025-02-18T10:26:24.750667 #1] INFO – : 빌드 중
Environment: production
‘staticAddonTrees’ 설정은 다음 버전의 Embroider에서 기본적으로 true로 설정되며 끌 수 없습니다. 이를 준비하기 위해 Embroider 설정에 'staticAddonTrees: true’를 설정해야 합니다.
‘staticAddonTestSupportTrees’ 설정은 다음 버전의 Embroider에서 기본적으로 true로 설정되며 끌 수 없습니다. 이를 준비하기 위해 Embroider 설정에 'staticAddonTestSupportTrees: true’를 설정해야 합니다.
빌드 중…
undefined
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command was killed with SIGKILL (Forced termination): ember build -prod

I, [2025-02-18T10:26:24.756178 #1] INFO – : 비동기 프로세스 종료 중
I, [2025-02-18T10:26:24.756288 #1] INFO – : HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/15/bin/postmaster -D /etc/postgresql/15/main pid: 59에 INT 전송
I, [2025-02-18T10:26:24.757035 #1] INFO – : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 126에 TERM 전송
126:signal-handler (1739874384) Received SIGTERM scheduling shutdown…
2025-02-18 10:26:24.760 UTC [59] LOG: received fast shutdown request
2025-02-18 10:26:24.764 UTC [59] LOG: aborting any active transactions
2025-02-18 10:26:24.789 UTC [59] LOG: background worker “logical replication launcher” (PID 73) exited with exit code 1
2025-02-18 10:26:24.791 UTC [68] LOG: shutting down
2025-02-18 10:26:24.793 UTC [68] LOG: checkpoint starting: shutdown immediate
126:M 18 Feb 2025 10:26:24.811 # User requested shutdown…
126:M 18 Feb 2025 10:26:24.811 * Saving the final RDB snapshot before exiting.
126:M 18 Feb 2025 10:26:24.816 * DB saved on disk
126:M 18 Feb 2025 10:26:24.816 # Redis is now ready to exit, bye bye…
2025-02-18 10:26:25.088 UTC [68] LOG: checkpoint complete: wrote 2489 buffers (1.9%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.098 s, sync=0.178 s, total=0.297 s; sync files=2471, longest=0.003 s, average=0.001 s; distance=17648 kB, estimate=17648 kB
2025-02-18 10:26:25.117 UTC [59] LOG: database system is shut down

실패

Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake assets:precompile:build’ failed with return #<Process::Status: pid 1136 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn’
exec failed with the params {“cd”=>“$home”, “tag”=>“build”, “hook”=>“assets_precompile_build”, “cmd”=>[“su discourse -c ‘bundle exec rake assets:precompile:build’”]}
bootstrap failed with exit code 1
** 부트스트랩 실패 ** 이전의 오류 메시지가 더 있을 수 있으므로 위로 스크롤하여 확인하십시오.
./discourse-doctor가 문제를 진단하는 데 도움이 될 수 있습니다.
5e2c50cc49948daebea3d0a08243a0c0fecc7160db84b4c4e0b995d0ab4b38c9

이 오류로 인해 보트스트랩을 설치하는 방법을 모르겠습니다.

이 에러가 발생했을 때 Namecheap에서 A 레코드 호스트가 @가 아니었기 때문이었습니다.

마지막으로 Discourse를 설치했을 때 전파가 1시간 이내에 완료되었기 때문에, 위 방법은 포트가 접근 불가능한 경우를 확인하는 좋은 방법입니다.