質問編集履歴

2

タイトル変更

2022/09/10 10:08

投稿

horihorihori
horihorihori

スコア2

test CHANGED
@@ -1 +1 @@
1
- docker-composeでLoadError: Error loading the 'postgresql' Active Record adapter.となりDB作成できない
1
+ docker-composeでActiveRecord::ConnectionNotEstablished: fe_sendauth: no password suppliedとなりDB作成できない
test CHANGED
File without changes

1

エラー内容の変更

2022/09/10 05:30

投稿

horihorihori
horihorihori

スコア2

test CHANGED
File without changes
test CHANGED
@@ -9,22 +9,24 @@
9
9
  ### 発生している問題・エラーメッセージ
10
10
  `http://localhost:3000/`にアクセスした結果が下の画像です。
11
11
 
12
- ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-09-10/1078673c-d52c-4761-a091-d36cd3c8e756.png)
12
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-09-10/012a65ed-b283-4bb0-bc56-1597bdaefb55.png)
13
13
 
14
14
  ```
15
15
  エラーメッセージ
16
- $ docker-compose run api rails db:create
16
+ $ docker-compose run api rails db:create
17
17
 
18
18
  Creating test-backend_api_run ... done
19
19
  Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
20
+ fe_sendauth: no password supplied
21
+ Couldn't create 'test_development' database. Please check your configuration.
20
22
  rails aborted!
21
- LoadError: Error loading the 'postgresql' Active Record adapter. Missing a gem it depends on? can't activate pg (~> 1.1), already activated pg-0.18.4. Make sure all dependencies are added to Gemfile.
23
+ ActiveRecord::ConnectionNotEstablished: fe_sendauth: no password supplied
22
24
 
23
25
 
24
26
  Caused by:
25
- Gem::LoadError: can't activate pg (~> 1.1), already activated pg-0.18.4. Make sure all dependencies are added to Gemfile.
27
+ PG::ConnectionBad: fe_sendauth: no password supplied
26
28
 
27
- Tasks: TOP => db:create => db:load_config
29
+ Tasks: TOP => db:create
28
30
  (See full trace by running task with --trace)
29
31
  ERROR: 1
30
32
  ```