masaya7 / museum_app

0 stars 0 forks source link

Fly.ioエラー #41

Open masaya7 opened 1 year ago

masaya7 commented 1 year ago

環境

rails7 ruby3.2.2

達成したいこと

新規投稿時に発生するエラーを解消したい

どこまでできているか

ゲストログインすることはできています。

エラー内容

Image from Gyazo

該当のソースコード

ソースコード1

2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info][7cf73e5c-ebc4-4d3f-885a-c2aff49f268d] Errno::EACCES (Permission denied @ dir_s_mkdir - /rails/public/uploads/tmp/1691972190-51176982556796-0001-9982):
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info][7cf73e5c-ebc4-4d3f-885a-c2aff49f268d]
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info][7cf73e5c-ebc4-4d3f-885a-c2aff49f268d] app/controllers/posts_controller.rb:16:in `create'
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]ERROR No such file or directory (os error 2)
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:35.423389 #255]  INFO -- : [712850c2-99cd-4054-b495-712f201589d1] Started GET "/posts/new" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:35 +0000

権限の問題とのことなので、確認したところ

% ls -la /rails/public/uploads/tmp                                    
ls: /rails/public/uploads/tmp: No such file or directory

となり、ファイルが存在しなかった。 参照HP 同様の問題で解決できたもの chmod 777とは →解消

ソースコード2

2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:35.532069 #255]  INFO -- : [a7bff490-c876-4a17-b741-cba7e005bde8] Started GET "/assets/controllers" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:35 +0000
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]F, [2023-08-14T00:16:35.532677 #255] FATAL -- : [a7bff490-c876-4a17-b741-cba7e005bde8]
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info][a7bff490-c876-4a17-b741-cba7e005bde8] ActionController::RoutingError (No route matches [GET] "/assets/controllers"):
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info][a7bff490-c876-4a17-b741-cba7e005bde8]
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]ERROR No such file or directory (os error 2)
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:36.767099 #255]  INFO -- : [b2ae62da-c1c3-4654-8258-afb98902f496] Started GET "/posts/new" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:36 +0000
% ls -la /assets/controllers
ls: /assets/controllers: No such file or directory

直接はないが以下のサイトよりimportmapを設定する際に作成されている。 /assets/controllersはここにある pin_all_from "app/javascript/controllers", under: "controllers", preload: trueをimportmap.rbに追記 → デプロイ先でも/assets/controllersが表示されるが、エラーが残る

Image from Gyazo →アセットパイプラインの問題。本番環境にjacascrptがいっていない。

ログを読む

% bin/devで発生を確認したエラーの対処法 Rails7で'rails new'するさいにBootstrapを指定するとエラーが発生してしまう

 % bin/dev
18:30:24 web.1  | started with pid 39617
18:30:24 js.1   | started with pid 39618
18:30:24 css.1  | started with pid 39619
18:30:25 js.1   | yarn run v1.22.19
18:30:25 css.1  | yarn run v1.22.19
18:30:25 css.1  | warning package.json: No license field
18:30:25 js.1   | warning package.json: No license field
18:30:25 css.1  | $ nodemon --watch ./app/assets/stylesheets/ --ext scss --exec "yarn build:css"
18:30:25 js.1   | $ esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --watch
18:30:25 js.1   | [watch] build finished, watching for changes...
18:30:25 js.1   | ✘ [ERROR] Could not resolve "@hotwired/turbo-rails"
18:30:25 js.1   | 
18:30:25 js.1   |     app/javascript/application.js:4:7:
18:30:25 js.1   |       4 │ import "@hotwired/turbo-rails"
18:30:25 js.1   |         ╵        ~~~~~~~~~~~~~~~~~~~~~~~
18:30:25 js.1   | 
18:30:25 js.1   |   You can mark the path "@hotwired/turbo-rails" as external to exclude it from the bundle, which will remove this error.
18:30:25 js.1   | 

/* yarn add @hotwired/turbo-rails で解消*/
% fly deploy
~~~
WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
  - 0.0.0.0:3000
Found these processes inside the machine with open listening sockets:
  PROCESS        | ADDRESSES                              
-----------------*----------------------------------------
  /.fly/hallpass | [fdaa:2:93d2:a7b:d829:942b:e281:2]:22  

Creating a second machine to increase service availability
  Machine e2865113b71948 [app] update finished: success
Finished launching new machines

NOTE: The machines for [app] have services with 'auto_stop_machines = true' that will be stopped when idling

Visit your newly deployed app at https://museum-app.fly.dev/

0.0.0.0:3000にアドレスを変更するという警告が出ていたので、やり方を検索。 postgresqlをautostartに設定することで解消できるらしい。 同様の問題で解決済 PostgreSQLインストール

% brew services start postgresql
Warning: Formula postgresql was renamed to postgresql@14.
Error: Formula `postgresql@14` is not installed.
/*バージョン14がないというエラーが出たので従う*/
% brew services start postgresql
Warning: Formula postgresql was renamed to postgresql@14.
==> Successfully started `postgresql@14` (label: homebrew.mxcl.postgresql@14)

公式:autostart にする

fly.toml

[http_service]
  internal_port = 3000
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  processes = ["app"]

なってる??

ソースコード3

2023-08-14T00:24:24Z app[148ed5d5a16528] nrt [info]=== puma shutdown: 2023-08-14 00:24:24 +0000 ===
2023-08-14T00:24:24Z app[148ed5d5a16528] nrt [info]- Goodbye!
2023-08-14T00:24:24Z app[148ed5d5a16528] nrt [info]Exiting
2023-08-14T00:24:24Z app[148ed5d5a16528] nrt [info] INFO Sending signal SIGINT to main child process w/ PID 255
2023-08-14T00:24:24Z app[148ed5d5a16528] nrt [info] INFO Main child exited normally with code: 0
2023-08-14T00:24:24Z app[148ed5d5a16528] nrt [info] INFO Starting clean up.
2023-08-14T00:24:24Z app[148ed5d5a16528] nrt [info] WARN hallpass exited, pid: 256, status: signal: 15 (SIGTERM)
2023-08-14T00:24:24Z app[148ed5d5a16528] nrt [info]2023/08/14 00:24:24 listening on [fdaa:2:93d2:a7b:ff:156b:696c:2]:22 (DNS: [fdaa::3]:53)
2023-08-14T00:24:25Z app[148ed5d5a16528] nrt [info][  478.855399] reboot: Restarting system

ログ全文

fly logs  
2023-08-14T00:16:26Z app[148ed5d5a16528] nrt [info] INFO [fly api proxy] listening at /.fly/api
2023-08-14T00:16:26Z app[148ed5d5a16528] nrt [info]2023/08/14 00:16:26 listening on [fdaa:2:93d2:a7b:ff:156b:696c:2]:22 (DNS: [fdaa::3]:53)
2023-08-14T00:16:26Z proxy[148ed5d5a16528] nrt [info]machine started in 454.126003ms
2023-08-14T00:16:29Z app[148ed5d5a16528] nrt [info]=> Booting Puma
2023-08-14T00:16:29Z app[148ed5d5a16528] nrt [info]=> Rails 7.0.6 application starting in production
2023-08-14T00:16:29Z app[148ed5d5a16528] nrt [info]=> Run `bin/rails server --help` for more startup options
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]Puma starting in single mode...
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]* Puma version: 5.6.6 (ruby 3.2.2-p53) ("Birdie's Version")
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]*  Min threads: 5
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]*  Max threads: 5
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]*  Environment: production
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]*          PID: 255
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]* Listening on http://0.0.0.0:3000
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]Use Ctrl-C to stop
2023-08-14T00:16:30Z proxy[148ed5d5a16528] nrt [info]machine became reachable in 3.38714714s
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:30.349034 #255]  INFO -- : [7cf73e5c-ebc4-4d3f-885a-c2aff49f268d] Started POST "/posts" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:30 +0000
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:30.351735 #255]  INFO -- : [7cf73e5c-ebc4-4d3f-885a-c2aff49f268d] Processing by PostsController#create as HTML
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:30.351900 #255]  INFO -- : [7cf73e5c-ebc4-4d3f-885a-c2aff49f268d]   Parameters: {"authenticity_token"=>"[FILTERED]", "post"=>{"image"=>#<ActionDispatch::Http::UploadedFile:0x00007f96a818b000 @tempfile=#<Tempfile:/tmp/RackMultipart20230814-255-bnlyq4.png>, @content_type="image/png", @original_filename="sample.png", @headers="Content-Disposition: form-data; name=\"post[image]\"; filename=\"sample.png\"\r\nContent-Type: image/png\r\n">, "title"=>"sample", "body"=>"sample", "status"=>"published"}, "commit"=>"OK"}
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:30.514910 #255]  INFO -- : [7cf73e5c-ebc4-4d3f-885a-c2aff49f268d] Completed 500 Internal Server Error in 163ms (ActiveRecord: 33.2ms | Allocations: 18083)
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info]F, [2023-08-14T00:16:30.515608 #255] FATAL -- : [7cf73e5c-ebc4-4d3f-885a-c2aff49f268d]
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info][7cf73e5c-ebc4-4d3f-885a-c2aff49f268d] Errno::EACCES (Permission denied @ dir_s_mkdir - /rails/public/uploads/tmp/1691972190-51176982556796-0001-9982):
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info][7cf73e5c-ebc4-4d3f-885a-c2aff49f268d]
2023-08-14T00:16:30Z app[148ed5d5a16528] nrt [info][7cf73e5c-ebc4-4d3f-885a-c2aff49f268d] app/controllers/posts_controller.rb:16:in `create'
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]ERROR No such file or directory (os error 2)
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:35.423389 #255]  INFO -- : [712850c2-99cd-4054-b495-712f201589d1] Started GET "/posts/new" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:35 +0000
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:35.424209 #255]  INFO -- : [712850c2-99cd-4054-b495-712f201589d1] Processing by PostsController#new as HTML
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:35.429303 #255]  INFO -- : [712850c2-99cd-4054-b495-712f201589d1]   Rendered posts/new.html.erb within layouts/application (Duration: 2.5ms | Allocations: 1992)
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:35.435210 #255]  INFO -- : [712850c2-99cd-4054-b495-712f201589d1]   Rendered layout layouts/application.html.erb (Duration: 8.5ms | Allocations: 4478)
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:35.435666 #255]  INFO -- : [712850c2-99cd-4054-b495-712f201589d1] Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.9ms | Allocations: 5701)
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:35.532069 #255]  INFO -- : [a7bff490-c876-4a17-b741-cba7e005bde8] Started GET "/assets/controllers" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:35 +0000
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info]F, [2023-08-14T00:16:35.532677 #255] FATAL -- : [a7bff490-c876-4a17-b741-cba7e005bde8]
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info][a7bff490-c876-4a17-b741-cba7e005bde8] ActionController::RoutingError (No route matches [GET] "/assets/controllers"):
2023-08-14T00:16:35Z app[148ed5d5a16528] nrt [info][a7bff490-c876-4a17-b741-cba7e005bde8]
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]ERROR No such file or directory (os error 2)
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:36.767099 #255]  INFO -- : [b2ae62da-c1c3-4654-8258-afb98902f496] Started GET "/posts/new" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:36 +0000
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:36.768098 #255]  INFO -- : [b2ae62da-c1c3-4654-8258-afb98902f496] Processing by PostsController#new as HTML
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:36.770931 #255]  INFO -- : [b2ae62da-c1c3-4654-8258-afb98902f496]   Rendered posts/new.html.erb within layouts/application (Duration: 2.1ms | Allocations: 985)
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:36.780116 #255]  INFO -- : [b2ae62da-c1c3-4654-8258-afb98902f496]   Rendered layout layouts/application.html.erb (Duration: 11.3ms | Allocations: 2312)
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:36.780488 #255]  INFO -- : [b2ae62da-c1c3-4654-8258-afb98902f496] Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 3.3ms | Allocations: 2549)
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:36.883715 #255]  INFO -- : [4eee8daf-6e3c-4e35-af8e-06a33013e640] Started GET "/assets/controllers" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:36 +0000
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info]F, [2023-08-14T00:16:36.884293 #255] FATAL -- : [4eee8daf-6e3c-4e35-af8e-06a33013e640]
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info][4eee8daf-6e3c-4e35-af8e-06a33013e640] ActionController::RoutingError (No route matches [GET] "/assets/controllers"):
2023-08-14T00:16:36Z app[148ed5d5a16528] nrt [info][4eee8daf-6e3c-4e35-af8e-06a33013e640]
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info]ERROR No such file or directory (os error 2)
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:37.574315 #255]  INFO -- : [b1b211cb-f953-417a-a237-14ffb61990e3] Started GET "/posts/new" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:37 +0000
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:37.575032 #255]  INFO -- : [b1b211cb-f953-417a-a237-14ffb61990e3] Processing by PostsController#new as HTML
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:37.576942 #255]  INFO -- : [b1b211cb-f953-417a-a237-14ffb61990e3]   Rendered posts/new.html.erb within layouts/application (Duration: 1.4ms | Allocations: 985)
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:37.585964 #255]  INFO -- : [b1b211cb-f953-417a-a237-14ffb61990e3]   Rendered layout layouts/application.html.erb (Duration: 10.4ms | Allocations: 2312)
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:37.586286 #255]  INFO -- : [b1b211cb-f953-417a-a237-14ffb61990e3] Completed 200 OK in 11ms (Views: 5.4ms | ActiveRecord: 5.5ms | Allocations: 2548)
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:37.703279 #255]  INFO -- : [f33f81a5-dbca-4829-bea5-d1a0dfeee8de] Started GET "/assets/controllers" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:37 +0000
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info]F, [2023-08-14T00:16:37.703861 #255] FATAL -- : [f33f81a5-dbca-4829-bea5-d1a0dfeee8de]
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info][f33f81a5-dbca-4829-bea5-d1a0dfeee8de] ActionController::RoutingError (No route matches [GET] "/assets/controllers"):
2023-08-14T00:16:37Z app[148ed5d5a16528] nrt [info][f33f81a5-dbca-4829-bea5-d1a0dfeee8de]
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.254126 #255]  INFO -- : [13149112-7977-4e46-a679-fe6d90d8d3a4] Started DELETE "/logout" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:47 +0000
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.254927 #255]  INFO -- : [13149112-7977-4e46-a679-fe6d90d8d3a4] Processing by SessionsController#destroy as HTML
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.254957 #255]  INFO -- : [13149112-7977-4e46-a679-fe6d90d8d3a4]   Parameters: {"authenticity_token"=>"[FILTERED]"}
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.260282 #255]  INFO -- : [13149112-7977-4e46-a679-fe6d90d8d3a4] Redirected to https://museum-app.fly.dev/
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.260494 #255]  INFO -- : [13149112-7977-4e46-a679-fe6d90d8d3a4] Completed 303 See Other in 5ms (ActiveRecord: 0.9ms | Allocations: 1150)
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.282050 #255]  INFO -- : [0a14c8ec-70cf-46bf-b4d8-b097fec39d33] Started GET "/" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:47 +0000
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.282919 #255]  INFO -- : [0a14c8ec-70cf-46bf-b4d8-b097fec39d33] Processing by ToppageController#top as HTML
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.287493 #255]  INFO -- : [0a14c8ec-70cf-46bf-b4d8-b097fec39d33]   Rendered toppage/top.html.erb within layouts/application (Duration: 2.7ms | Allocations: 2307)
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.289735 #255]  INFO -- : [0a14c8ec-70cf-46bf-b4d8-b097fec39d33]   Rendered layout layouts/application.html.erb (Duration: 5.0ms | Allocations: 3127)
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.290055 #255]  INFO -- : [0a14c8ec-70cf-46bf-b4d8-b097fec39d33] Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms | Allocations: 3745)
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:47.884343 #255]  INFO -- : [f10b0e24-9462-4c6e-97fb-c8801386783d] Started GET "/assets/controllers" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:47 +0000
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info]F, [2023-08-14T00:16:47.885022 #255] FATAL -- : [f10b0e24-9462-4c6e-97fb-c8801386783d]
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info][f10b0e24-9462-4c6e-97fb-c8801386783d] ActionController::RoutingError (No route matches [GET] "/assets/controllers"):
2023-08-14T00:16:47Z app[148ed5d5a16528] nrt [info][f10b0e24-9462-4c6e-97fb-c8801386783d]
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.331866 #255]  INFO -- : [c9dcdde2-5c3e-463b-932c-5d4c00423c92] Started POST "/guest_login" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:50 +0000
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.332820 #255]  INFO -- : [c9dcdde2-5c3e-463b-932c-5d4c00423c92] Processing by GuestSessionsController#create as HTML
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.332856 #255]  INFO -- : [c9dcdde2-5c3e-463b-932c-5d4c00423c92]   Parameters: {"authenticity_token"=>"[FILTERED]"}
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.339502 #255]  INFO -- : [c9dcdde2-5c3e-463b-932c-5d4c00423c92] Redirected to https://museum-app.fly.dev/index
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.339836 #255]  INFO -- : [c9dcdde2-5c3e-463b-932c-5d4c00423c92] Completed 302 Found in 7ms (ActiveRecord: 1.9ms | Allocations: 699)
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]ERROR No such file or directory (os error 2)
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.361393 #255]  INFO -- : [c9bf5fd8-3afb-4e8a-9f84-5b05181ad6aa] Started GET "/index" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:50 +0000
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.362392 #255]  INFO -- : [c9bf5fd8-3afb-4e8a-9f84-5b05181ad6aa] Processing by PostsController#index as HTML
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.370490 #255]  INFO -- : [c9bf5fd8-3afb-4e8a-9f84-5b05181ad6aa]   Rendered posts/index.html.erb within layouts/application (Duration: 5.0ms | Allocations: 481)
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.373977 #255]  INFO -- : [c9bf5fd8-3afb-4e8a-9f84-5b05181ad6aa]   Rendered layout layouts/application.html.erb (Duration: 8.5ms | Allocations: 1986)
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.374246 #255]  INFO -- : [c9bf5fd8-3afb-4e8a-9f84-5b05181ad6aa] Completed 200 OK in 12ms (Views: 5.5ms | ActiveRecord: 3.4ms | Allocations: 2417)
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:50.797275 #255]  INFO -- : [ad5110ed-b896-4907-b692-ea217048ae6a] Started GET "/assets/controllers" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:50 +0000
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info]F, [2023-08-14T00:16:50.797822 #255] FATAL -- : [ad5110ed-b896-4907-b692-ea217048ae6a]
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info][ad5110ed-b896-4907-b692-ea217048ae6a] ActionController::RoutingError (No route matches [GET] "/assets/controllers"):
2023-08-14T00:16:50Z app[148ed5d5a16528] nrt [info][ad5110ed-b896-4907-b692-ea217048ae6a]
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info]ERROR No such file or directory (os error 2)
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:53.011550 #255]  INFO -- : [b9ff08dc-bb15-4f0a-9327-e4a1715415ad] Started GET "/posts/new" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:53 +0000
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:53.012383 #255]  INFO -- : [b9ff08dc-bb15-4f0a-9327-e4a1715415ad] Processing by PostsController#new as HTML
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:53.014661 #255]  INFO -- : [b9ff08dc-bb15-4f0a-9327-e4a1715415ad]   Rendered posts/new.html.erb within layouts/application (Duration: 1.7ms | Allocations: 998)
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:53.023150 #255]  INFO -- : [b9ff08dc-bb15-4f0a-9327-e4a1715415ad]   Rendered layout layouts/application.html.erb (Duration: 10.2ms | Allocations: 2319)
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:53.023488 #255]  INFO -- : [b9ff08dc-bb15-4f0a-9327-e4a1715415ad] Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 5.2ms | Allocations: 2546)
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:16:53.118338 #255]  INFO -- : [2415b464-3b49-4815-8329-e53e92e4fb42] Started GET "/assets/controllers" for 2a09:8280:1::69:5561 at 2023-08-14 00:16:53 +0000
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info]F, [2023-08-14T00:16:53.119182 #255] FATAL -- : [2415b464-3b49-4815-8329-e53e92e4fb42]
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info][2415b464-3b49-4815-8329-e53e92e4fb42] ActionController::RoutingError (No route matches [GET] "/assets/controllers"):
2023-08-14T00:16:53Z app[148ed5d5a16528] nrt [info][2415b464-3b49-4815-8329-e53e92e4fb42]
2023-08-14T00:17:05Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:17:05.973065 #255]  INFO -- : [aa197e4e-ec5e-48e8-9938-31e95d281365] Started POST "/posts" for 2a09:8280:1::69:5561 at 2023-08-14 00:17:05 +0000
2023-08-14T00:17:05Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:17:05.973912 #255]  INFO -- : [aa197e4e-ec5e-48e8-9938-31e95d281365] Processing by PostsController#create as HTML
2023-08-14T00:17:05Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:17:05.974038 #255]  INFO -- : [aa197e4e-ec5e-48e8-9938-31e95d281365]   Parameters: {"authenticity_token"=>"[FILTERED]", "post"=>{"image"=>#<ActionDispatch::Http::UploadedFile:0x00007f96a80e9ca0 @tempfile=#<Tempfile:/tmp/RackMultipart20230814-255-aime0f.png>, @content_type="image/png", @original_filename="sample.png", @headers="Content-Disposition: form-data; name=\"post[image]\"; filename=\"sample.png\"\r\nContent-Type: image/png\r\n">, "title"=>"sample", "body"=>"sample", "status"=>"published"}, "commit"=>"OK"}
2023-08-14T00:17:05Z app[148ed5d5a16528] nrt [info]I, [2023-08-14T00:17:05.989440 #255]  INFO -- : [aa197e4e-ec5e-48e8-9938-31e95d281365] Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.8ms | Allocations: 1294)
2023-08-14T00:17:05Z app[148ed5d5a16528] nrt [info]F, [2023-08-14T00:17:05.990164 #255] FATAL -- : [aa197e4e-ec5e-48e8-9938-31e95d281365]
2023-08-14T00:17:05Z app[148ed5d5a16528] nrt [info][aa197e4e-ec5e-48e8-9938-31e95d281365] Errno::EACCES (Permission denied @ dir_s_mkdir - /rails/public/uploads/tmp/1691972225-61794424660434-0002-1245):
2023-08-14T00:17:05Z app[148ed5d5a16528] nrt [info][aa197e4e-ec5e-48e8-9938-31e95d281365]
2023-08-14T00:17:05Z app[148ed5d5a16528] nrt [info][aa197e4e-ec5e-48e8-9938-31e95d281365] app/controllers/posts_controller.rb:16:in `create'