AVAVAVAVA
@AVAVAVAVA

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

laravelで作成したアプリをfly.ioにデプロイ。データ保存でエラ−500

解決したいこと

laravelでアプリを作りfly.ioにデプロイ。データを保存する所で発生したエラー500を解消したいです。

発生している問題・エラー

スクリーンショット 2024-02-09 22.53.40.png

該当するソースコード

PHP, Vue.js, postgreSQL

「作成」ボタンをクリックした際に呼び出される関数

CreatePrize () {
                if (!this.submitName || !this.submitCate || !this.submitPPB || !this.submitSPB) {
                    this.errors = [];

                    if (!this.submitName) {
                        this.errors.push('景品名を入力してください');
                    }

                    if (!this.submitCate) {
                        this.errors.push('カテゴリを入力してください');
                    }

                    if (!this.submitPPB) {
                        this.errors.push('箱単価を入力してください');
                    }

                    if (!this.submitSPB) {
                        this.errors.push('入り数を入力してください');
                    }

                    return false;
                }

console.log(this.submitName);
console.log(this.submitCate);
console.log(this.submitPPB);
console.log(this.submitSPB);
                const url = 'https://pcs-app.fly.dev/create';
                axios.post(url, {
                    name: this.submitName,
                    category: this.submitCate,
                    pricePerBox: this.submitPPB,
                    snpPerBox: this.submitSPB,
                    img: this.submitImg

                }).then((response) => {
console.log('レスポンス');
                    this.createdPrizes.push(
                        {
                            name: this.submitName,
                            category: this.submitCate,
                            pricePerBox: this.submitPPB,
                            snpPerBox: this.submitSPB
                        }
                    );
                    this.submitName =
                    this.submitCate =
                    this.submitPPB =
                    this.submitSPB =
                    this.submitImg = '';

                }).catch((error) => {
console.log('エラーキャッチ');
                    console.log(error);
                });
            },

axios.postのurl先
スクリーンショット 2024-02-09 22.49.44.png
スクリーンショット 2024-02-09 22.49.57.png

自分で考えたこと

※独学で学習中です。お恥ずかしながら何が何だかわかっておりません。わからない言葉が多いため噛み砕いて説明していただけると幸いです。

1.一番最初の画像に書かれている
https://pcs-app.fly.dev/create
は{{ route('prizeCreate') }}で表示したものです。コピペしたためaxiosのurl間違っていないと思います。

2.マイグレーションできたため & 別のページでデータを取得して表示(seedしていないためデータは取得できていない)する際エラーが出ていないため、データベースの接続も問題ないかと思います。

3.submitImgが''ですがマイグレーションファイルでnullableを指定しているためnullが送られている等のエラーでもないかと思います。
スクリーンショット 2024-02-09 23.12.20.png

これ以外の原因が何も思いつかないため質問させていただきました。
必要な情報などございましたらお手数おかけいたしますがコメントお願いいたします。

解決法

fly logsでログを確認すると存在しないカラムにデータを保存していることが原因でした。
laravelは自動でupdated_atなどを保存するようです。
モデルファイルに下のを記載して解決いたしました。

public $timestamps = false;
0

2Answer

Comments

  1. @AVAVAVAVA

    Questioner

    flycts ssh console をして storage/logsを見ましたがそれらしいファイルはないです。
    ローカルは関係ないですよね?一応ローカルにはありますが行数から見て変わっていないように見えます。
    スクリーンショット 2024-02-10 23.15.51.png

  2. @AVAVAVAVA

    Questioner

    fly logsでログをみれましたがこれはエラーなのでしょうか。。。

    /Applications/MAMP/htdocs/PCS % fly logs
    2024-02-09T15:09:33Z app[e7842300b63e58] nrt [info]2024-02-09 15:09:33,354 INFO success: nginx entered RUNNING state, process has sta
    yed up for > than 1 seconds (startsecs)
    2024-02-09T15:17:11Z proxy[e7842300b63e58] nrt [info]Downscaling app pcs-app from 1 machines to 0 machines, stopping machine e7842300
    b63e58 (region=nrt, process group=app)
    2024-02-09T15:17:11Z app[e7842300b63e58] nrt [info] INFO Sending signal SIGINT to main child process w/ PID 306
    2024-02-09T15:17:11Z app[e7842300b63e58] nrt [info][09-Feb-2024 15:17:11] NOTICE: Terminating ...
    2024-02-09T15:17:11Z app[e7842300b63e58] nrt [info][09-Feb-2024 15:17:11] NOTICE: exiting, bye-bye!
    2024-02-09T15:17:11Z app[e7842300b63e58] nrt [info]2024-02-09 15:17:11,903 WARN received SIGINT indicating exit request
    2024-02-09T15:17:11Z app[e7842300b63e58] nrt [info]2024-02-09 15:17:11,903 INFO waiting for php, nginx to die
    2024-02-09T15:17:11Z app[e7842300b63e58] nrt [info]2024-02-09 15:17:11,906 INFO stopped: nginx (exit status 0)
    2024-02-09T15:17:12Z app[e7842300b63e58] nrt [info]2024-02-09 15:17:12,918 INFO stopped: php (exit status 0)
    
    2024-02-09T15:17:13Z app[e7842300b63e58] nrt [info] INFO Main child exited normally with code: 0
    2024-02-09T15:17:13Z app[e7842300b63e58] nrt [info] INFO Starting clean up.
    2024-02-09T15:17:13Z app[e7842300b63e58] nrt [info] WARN hallpass exited, pid: 307, status: signal: 15 (SIGTERM)
    2024-02-09T15:17:13Z app[e7842300b63e58] nrt [info]2024/02/09 15:17:13 listening on [fdaa:4:d64d:a7b:22e:551e:2b8b:2]:22 (DNS: [fdaa:
    :3]:53)
    2024-02-09T15:17:14Z app[e7842300b63e58] nrt [info][  464.806589] reboot: Restarting system
    2024-02-10T12:40:43Z proxy[e7842300b63e58] nrt [info]Starting machine
    2024-02-10T12:40:43Z app[e7842300b63e58] nrt [info][    0.037755] Spectre V2 : WARNING: Unprivileged eBPF is enabled with eIBRS on, d
    ata leaks possible via Spectre v2 BHB attacks!
    2024-02-10T12:40:43Z app[e7842300b63e58] nrt [info][    0.050573] PCI: Fatal: No config space access function found
    2024-02-10T12:40:43Z app[e7842300b63e58] nrt [info] INFO Starting init (commit: bfa79be)...
    2024-02-10T12:40:43Z app[e7842300b63e58] nrt [info] INFO Preparing to run: `/entrypoint` as root
    2024-02-10T12:40:43Z app[e7842300b63e58] nrt [info] INFO [fly api proxy] listening at /.fly/api
    2024-02-10T12:40:43Z app[e7842300b63e58] nrt [info]2024/02/10 12:40:43 listening on [fdaa:4:d64d:a7b:22e:551e:2b8b:2]:22 (DNS: [fdaa:
    :3]:53)
    2024-02-10T12:40:43Z runner[e7842300b63e58] nrt [info]Machine started in 422ms
    2024-02-10T12:40:44Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:44,339 CRIT Supervisor is running as root.  Privileges were not d
    ropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to av
    oid this message.
    2024-02-10T12:40:44Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:44,339 INFO Included extra file "/etc/supervisor/conf.d/fpm.conf"
     during parsing
    2024-02-10T12:40:44Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:44,340 INFO Included extra file "/etc/supervisor/conf.d/nginx.con
    f" during parsing
    2024-02-10T12:40:44Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:44,343 INFO RPC interface 'supervisor' initialized
    2024-02-10T12:40:44Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:44,343 CRIT Server 'unix_http_server' running without any HTTP au
    thentication checking
    2024-02-10T12:40:44Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:44,343 INFO supervisord started with pid 306
    2024-02-10T12:40:44Z proxy[e7842300b63e58] nrt [info]machine started in 1.439392978s
    2024-02-10T12:40:45Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:45,346 INFO spawned: 'php' with pid 334
    2024-02-10T12:40:45Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:45,348 INFO spawned: 'nginx' with pid 335
    2024-02-10T12:40:45Z app[e7842300b63e58] nrt [info][10-Feb-2024 12:40:45] NOTICE: fpm is running, pid 334
    2024-02-10T12:40:45Z app[e7842300b63e58] nrt [info][10-Feb-2024 12:40:45] NOTICE: ready to handle connections
    2024-02-10T12:40:45Z app[e7842300b63e58] nrt [info][10-Feb-2024 12:40:45] NOTICE: systemd monitor interval set to 10000ms
    2024-02-10T12:40:45Z proxy[e7842300b63e58] nrt [info]machine became reachable in 1.239314199s
    2024-02-10T12:40:46Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:46,420 INFO success: php entered RUNNING state, process has staye
    d up for > than 1 seconds (startsecs)
    2024-02-10T12:40:46Z app[e7842300b63e58] nrt [info]2024-02-10 12:40:46,420 INFO success: nginx entered RUNNING state, process has sta
    
    yed up for > than 1 seconds (startsecs)
    2024-02-10T12:40:46Z app[e7842300b63e58] nrt [info]172.16.17.130 - - [10/Feb/2024:12:40:46 +0000] "GET /create HTTP/1.1" 200 666 "-"
    "Mozilla/5.0 (compatible; DataForSeoBot/1.0; +https://dataforseo.com/dataforseo-bot)" "136.243.228.193"
    2024-02-10T12:41:42Z app[e7842300b63e58] nrt [info]172.16.17.130 - - [10/Feb/2024:12:41:42 +0000] "GET /index HTTP/1.1" 200 626 "-" "
    Mozilla/5.0 (compatible; DataForSeoBot/1.0; +https://dataforseo.com/dataforseo-bot)" "136.243.228.193"
    2024-02-10T12:41:45Z app[e7842300b63e58] nrt [info]172.16.17.130 - - [10/Feb/2024:12:41:45 +0000] "GET /delete HTTP/1.1" 200 647 "-"
    "Mozilla/5.0 (compatible; DataForSeoBot/1.0; +https://dataforseo.com/dataforseo-bot)" "136.243.228.193"
    2024-02-10T12:47:31Z proxy[e7842300b63e58] nrt [info]Downscaling app pcs-app from 1 machines to 0 machines, stopping machine e7842300
    b63e58 (region=nrt, process group=app)
    2024-02-10T12:47:31Z app[e7842300b63e58] nrt [info] INFO Sending signal SIGINT to main child process w/ PID 306
    2024-02-10T12:47:32Z app[e7842300b63e58] nrt [info]2024-02-10 12:47:32,337 WARN received SIGINT indicating exit request
    2024-02-10T12:47:32Z app[e7842300b63e58] nrt [info]2024-02-10 12:47:32,338 INFO waiting for php, nginx to die
    2024-02-10T12:47:32Z app[e7842300b63e58] nrt [info]2024-02-10 12:47:32,340 INFO stopped: nginx (exit status 0)
    2024-02-10T12:47:32Z app[e7842300b63e58] nrt [info][10-Feb-2024 12:47:32] NOTICE: Terminating ...
    2024-02-10T12:47:32Z app[e7842300b63e58] nrt [info][10-Feb-2024 12:47:32] NOTICE: exiting, bye-bye!
    2024-02-10T12:47:33Z app[e7842300b63e58] nrt [info]2024-02-10 12:47:33,349 INFO stopped: php (exit status 0)
    2024-02-10T12:47:33Z app[e7842300b63e58] nrt [info] INFO Main child exited normally with code: 0
    2024-02-10T12:47:33Z app[e7842300b63e58] nrt [info] INFO Starting clean up.
    2024-02-10T12:47:33Z app[e7842300b63e58] nrt [info] WARN hallpass exited, pid: 307, status: signal: 15 (SIGTERM)
    2024-02-10T12:47:33Z app[e7842300b63e58] nrt [info]2024/02/10 12:47:33 listening on [fdaa:4:d64d:a7b:22e:551e:2b8b:2]:22 (DNS: [fdaa:
    :3]:53)
    2024-02-10T12:47:34Z app[e7842300b63e58] nrt [info][  411.732180] reboot: Restarting system
    2024-02-10T14:13:26Z proxy[e7842300b63e58] nrt [info]Starting machine
    2024-02-10T14:13:26Z app[e7842300b63e58] nrt [info][    0.037402] Spectre V2 : WARNING: Unprivileged eBPF is enabled with eIBRS on, d
    ata leaks possible via Spectre v2 BHB attacks!
    2024-02-10T14:13:26Z app[e7842300b63e58] nrt [info][    0.049581] PCI: Fatal: No config space access function found
    2024-02-10T14:13:26Z app[e7842300b63e58] nrt [info] INFO Starting init (commit: bfa79be)...
    2024-02-10T14:13:26Z app[e7842300b63e58] nrt [info] INFO Preparing to run: `/entrypoint` as root
    2024-02-10T14:13:26Z app[e7842300b63e58] nrt [info] INFO [fly api proxy] listening at /.fly/api
    2024-02-10T14:13:26Z app[e7842300b63e58] nrt [info]2024/02/10 14:13:26 listening on [fdaa:4:d64d:a7b:22e:551e:2b8b:2]:22 (DNS: [fdaa:
    :3]:53)
    2024-02-10T14:13:26Z runner[e7842300b63e58] nrt [info]Machine started in 408ms
    2024-02-10T14:13:27Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:27,523 CRIT Supervisor is running as root.  Privileges were not d
    ropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to av
    oid this message.
    2024-02-10T14:13:27Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:27,523 INFO Included extra file "/etc/supervisor/conf.d/fpm.conf"
     during parsing
    
    2024-02-10T14:13:27Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:27,523 INFO Included extra file "/etc/supervisor/conf.d/nginx.con
    f" during parsing
    2024-02-10T14:13:27Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:27,527 INFO RPC interface 'supervisor' initialized
    2024-02-10T14:13:27Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:27,527 CRIT Server 'unix_http_server' running without any HTTP au
    thentication checking
    2024-02-10T14:13:27Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:27,527 INFO supervisord started with pid 306
    2024-02-10T14:13:27Z proxy[e7842300b63e58] nrt [info]machine started in 1.425443534s
    2024-02-10T14:13:28Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:28,530 INFO spawned: 'php' with pid 334
    2024-02-10T14:13:28Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:28,533 INFO spawned: 'nginx' with pid 335
    2024-02-10T14:13:28Z app[e7842300b63e58] nrt [info][10-Feb-2024 14:13:28] NOTICE: fpm is running, pid 334
    2024-02-10T14:13:28Z app[e7842300b63e58] nrt [info][10-Feb-2024 14:13:28] NOTICE: ready to handle connections
    2024-02-10T14:13:28Z app[e7842300b63e58] nrt [info][10-Feb-2024 14:13:28] NOTICE: systemd monitor interval set to 10000ms
    2024-02-10T14:13:28Z proxy[e7842300b63e58] nrt [info]machine became reachable in 1.051610688s
    2024-02-10T14:13:28Z app[e7842300b63e58] nrt [info]172.16.17.130 - - [10/Feb/2024:14:13:28 +0000] "GET /create HTTP/1.1" 200 666 "htt
    ps://pcs-app.fly.dev/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/
    605.1.15" "240b:13:7680:b700:1c62:dfeb:80e2:94aa"
    2024-02-10T14:13:29Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:29,867 INFO success: php entered RUNNING state, process has staye
    d up for > than 1 seconds (startsecs)
    2024-02-10T14:13:29Z app[e7842300b63e58] nrt [info]2024-02-10 14:13:29,867 INFO success: nginx entered RUNNING state, process has sta
    yed up for > than 1 seconds (startsecs)
    2024-02-10T14:13:43Z app[e7842300b63e58] nrt [info]{"message":"SQLSTATE[42703]: Undefined column: 7 ERROR:  column \"updated_at\" of
    relation \"prizes\" does not exist\nLINE 1: ...category\", \"price_per_box\", \"snp_per_box\", \"img\", \"updated_a...\n
                                                    ^ (SQL: insert into \"prizes\" (\"name\", \"category\", \"price_per_box\", \"snp_per_
    box\", \"img\", \"updated_at\", \"created_at\") values (test, test, 30000, 30, ?, 2024-02-10 23:13:43, 2024-02-10 23:13:43) returning
     \"id\")","context":{"exception":{"class":"Illuminate\\Database\\QueryException","message":"SQLSTATE[42703]: Undefined column: 7 ERRO
    R:  column \"updated_at\" of relation \"prizes\" does not exist\nLINE 1: ...category\", \"price_per_box\", \"snp_per_box\", \"img\",
    \"updated_a...\n                                                             ^ (SQL: insert into \"prizes\" (\"name\", \"category\",
    \"price_per_box\", \"snp_per_box\", \"img\", \"updated_at\", \"created_at\") values (test, test, 30000, 30, ?, 2024-02-10 23:13:43, 2
    024-02-10
    2024-02-10T14:13:43Z app[e7842300b63e58] nrt [info]23:13:43) returning \"id\")","code":42703,"file":"/var/www/html/vendor/laravel/fra
    mework/src/Illuminate/Database/Connection.php:760","previous":{"class":"PDOException","message":"SQLSTATE[42703]: Undefined column: 7
     ERROR:  column \"updated_at\" of relation \"prizes\" does not exist\nLINE 1: ...category\", \"price_per_box\", \"snp_per_box\", \"im
    g\", \"updated_a...\n                                                             ^","code":42703,"file":"/var/www/html/vendor/larave
    l/framework/src/Illuminate/Database/Connection.php:419"}}},"level":400,"level_name":"ERROR","channel":"production","datetime":"2024-0
    
    2-10T23:13:43.822888+09:00","extra":{}}
    2024-02-10T14:13:43Z app[e7842300b63e58] nrt [info]172.16.17.130 - - [10/Feb/2024:14:13:43 +0000] "POST /create HTTP/1.1" 500 44 "htt
    ps://pcs-app.fly.dev/create" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 S
    afari/605.1.15" "240b:13:7680:b700:1c62:dfeb:80e2:94aa"
    2024-02-10T14:14:04Z app[e7842300b63e58] nrt [info]172.16.17.130 - - [10/Feb/2024:14:14:04 +0000] "GET / HTTP/1.1" 200 626 "https://f
    ly.io/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15" "240b
    :13:7680:b700:1c62:dfeb:80e2:94aa"
    2024-02-10T14:14:04Z app[e7842300b63e58] nrt [info]172.16.17.130 - - [10/Feb/2024:14:14:04 +0000] "GET /getPrizeJsonData?key=&cate= H
    TTP/1.1" 200 55 "https://pcs-app.fly.dev/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)
    Version/16.6 Safari/605.1.15" "240b:13:7680:b700:1c62:dfeb:80e2:94aa"
    2024-02-10T14:14:08Z app[e7842300b63e58] nrt [info]172.16.17.130 - - [10/Feb/2024:14:14:08 +0000] "GET /create HTTP/1.1" 200 666 "htt
    ps://pcs-app.fly.dev/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/
    605.1.15" "240b:13:7680:b700:1c62:dfeb:80e2:94aa"
    2024-02-10T14:14:16Z app[e7842300b63e58] nrt [info]{"message":"SQLSTATE[42703]: Undefined column: 7 ERROR:  column \"updated_at\" of
    relation \"prizes\" does not exist\nLINE 1: ...category\", \"price_per_box\", \"snp_per_box\", \"img\", \"updated_a...\n
                                                    ^ (SQL: insert into \"prizes\" (\"name\", \"category\", \"price_per_box\", \"snp_per_
    box\", \"img\", \"updated_at\", \"created_at\") values (test, test, 30000, 30, ?, 2024-02-10 23:14:16, 2024-02-10 23:14:16) returning
     \"id\")","context":{"exception":{"class":"Illuminate\\Database\\QueryException","message":"SQLSTATE[42703]: Undefined column: 7 ERRO
    R:  column \"updated_at\" of relation \"prizes\" does not exist\nLINE 1: ...category\", \"price_per_box\", \"snp_per_box\", \"img\",
    \"updated_a...\n                                                             ^ (SQL: insert into \"prizes\" (\"name\", \"category\",
    \"price_per_box\", \"snp_per_box\", \"img\", \"updated_at\", \"created_at\") values (test, test, 30000, 30, ?, 2024-02-10 23:14:16, 2
    024-02-10
    2024-02-10T14:14:16Z app[e7842300b63e58] nrt [info]23:14:16) returning \"id\")","code":42703,"file":"/var/www/html/vendor/laravel/fra
    mework/src/Illuminate/Database/Connection.php:760","previous":{"class":"PDOException","message":"SQLSTATE[42703]: Undefined column: 7
     ERROR:  column \"updated_at\" of relation \"prizes\" does not exist\nLINE 1: ...category\", \"price_per_box\", \"snp_per_box\", \"im
    g\", \"updated_a...\n                                                             ^","code":42703,"file":"/var/www/html/vendor/larave
    l/framework/src/Illuminate/Database/Connection.php:419"}}},"level":400,"level_name":"ERROR","channel":"production","datetime":"2024-0
    2-10T23:14:16.260043+09:00","extra":{}}
    
    2024-02-10T14:14:16Z app[e7842300b63e58] nrt [info]172.16.17.130 - - [10/Feb/2024:14:14:16 +0000] "POST /create HTTP/1.1" 500 44 "htt
    ps://pcs-app.fly.dev/create" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 S
    afari/605.1.15" "240b:13:7680:b700:1c62:dfeb:80e2:94aa"
    2024-02-10T14:14:46Z app[e7842300b63e58] nrt [info]2024/02/10 14:14:46 New SSH Session - higurasi_0404@yahoo.co.jp
    2024-02-10T14:20:33Z proxy[e7842300b63e58] nrt [info]Downscaling app pcs-app from 1 machines to 0 machines, stopping machine e7842300
    b63e58 (region=nrt, process group=app)
    2024-02-10T14:20:33Z app[e7842300b63e58] nrt [info] INFO Sending signal SIGINT to main child process w/ PID 306
    2024-02-10T14:20:33Z app[e7842300b63e58] nrt [info]2024-02-10 14:20:33,697 WARN received SIGINT indicating exit request
    2024-02-10T14:20:33Z app[e7842300b63e58] nrt [info]2024-02-10 14:20:33,697 INFO waiting for php, nginx to die
    2024-02-10T14:20:33Z app[e7842300b63e58] nrt [info]2024-02-10 14:20:33,699 INFO stopped: nginx (exit status 0)
    2024-02-10T14:20:33Z app[e7842300b63e58] nrt [info][10-Feb-2024 14:20:33] NOTICE: Terminating ...
    2024-02-10T14:20:33Z app[e7842300b63e58] nrt [info][10-Feb-2024 14:20:33] NOTICE: exiting, bye-bye!
    2024-02-10T14:20:34Z app[e7842300b63e58] nrt [info]2024-02-10 14:20:34,708 INFO stopped: php (exit status 0)
    2024-02-10T14:20:35Z app[e7842300b63e58] nrt [info] INFO Main child exited normally with code: 0
    2024-02-10T14:20:35Z app[e7842300b63e58] nrt [info] INFO Starting clean up.
    2024-02-10T14:20:35Z app[e7842300b63e58] nrt [info] WARN hallpass exited, pid: 307, status: signal: 15 (SIGTERM)
    2024-02-10T14:20:35Z app[e7842300b63e58] nrt [info]2024/02/10 14:20:35 listening on [fdaa:4:d64d:a7b:22e:551e:2b8b:2]:22 (DNS: [fdaa:
    :3]:53)
    2024-02-10T14:20:36Z app[e7842300b63e58] nrt [info][  429.725775] reboot: Restarting system
    WARN The running flyctl agent (v0.1.148) is older than the current flyctl (v0.2.0).
    WARN The out-of-date agent will be shut down along with existing wireguard connections. The new agent will start automatically as nee
    ded.
    
  3. この辺りとか関連していそうですね。

    2024-02-10T14:13:43Z app[e7842300b63e58] nrt [info]{"message":"SQLSTATE[42703]: Undefined column: 7 ERROR: column "updated_at" of
    relation "prizes" does not exist\nLINE 1: ...category", "price_per_box", "snp_per_box", "img", "updated_a...\n
    ^ (SQL: insert into "prizes" ("name", "category", "price_per_box", "snp_per_
    box", "img", "updated_at", "created_at") values (test, test, 30000, 30, ?, 2024-02-10 23:13:43, 2024-02-10 23:13:43) returning
    "id")","context":{"exception":{"class":"Illuminate\Database\QueryException","message":"SQLSTATE[42703]: Undefined column: 7 ERRO
    R: column "updated_at" of relation "prizes" does not exist\nLINE 1: ...category", "price_per_box", "snp_per_box", "img",
    "updated_a...\n ^ (SQL: insert into "prizes" ("name", "category",
    "price_per_box", "snp_per_box", "img", "updated_at", "created_at") values (test, test, 30000, 30, ?, 2024-02-10 23:13:43, 2
    024-02-10
    2024-02-10T14:13:43Z app[e7842300b63e58] nrt [info]23:13:43) returning "id")","code":42703,"file":"/var/www/html/vendor/laravel/fra
    mework/src/Illuminate/Database/Connection.php:760","previous":{"class":"PDOException","message":"SQLSTATE[42703]: Undefined column: 7
    ERROR: column "updated_at" of relation "prizes" does not exist\nLINE 1: ...category", "price_per_box", "snp_per_box", "im
    g", "updated_a...\n ^","code":42703,"file":"/var/www/html/vendor/larave
    l/framework/src/Illuminate/Database/Connection.php:419"}}},"level":400,"level_name":"ERROR","channel":"production","datetime":"2024-02-10T23:13:43.822888+09:00","extra":{}}

  4. @AVAVAVAVA

    Questioner

    解決いたしました。ありがとうございました。

Comments

  1. @AVAVAVAVA

    Questioner

    ご指摘ありがとうございます。解決したため書いてクローズいたしました。

  2. 「エラーの問題をどのように解決したのか書いて」とお願いしましたが、後で検索などでそのスレッドを訪れる人のために、やっていただけませんか?

Your answer might help someone💌