functionsにて全ての関数が500エラーを返すようになった

星川 健太 0 評価のポイント
2025-04-19T00:39:42.47+00:00

*子タグにはAzure functionsを入れたかったのですが、選択肢がAzure SQL データベースしかなかったため指定しています。

<事象>
現在prismaを使った構成でazure functionsを構築しています。

2025/04/19 3:20に理由不明な原因でfunctionsの再起動が発生し、その後以下apiにアクセスすると常に以下のエラーが発生するようになりました。

[error] Worker uncaught exception (learn more: https://go.microsoft.com/fwlink/?linkid=2097909 ): PrismaClientInitializationError: Prisma Client could not locate the Query Engine for runtime "debian-openssl-1.1.x". This happened because Prisma Client was generated for "debian-openssl-3.0.x", but the actual deployment required "debian-openssl-1.1.x". Add "debian-openssl-1.1.x" to `binaryTargets` in the "schema.prisma" file and run `prisma generate` after saving it: generator client { provider = "prisma-client-js" binaryTargets = ["native", "debian-openssl-1.1.x"] } The following locations have been searched: /home/site/wwwroot/node_modules/.prisma/client /home/site/wwwroot/node_modules/@prisma/client /home/runner/work/ep-monitor/ep-monitor/src/backend/node_modules/@prisma/client /tmp/prisma-engines /home/site/wwwroot/prisma at za (/home/site/wwwroot/node_modules/@prisma/client/runtime/library.js:64:805) at async Object.loadLibrary (/home/site/wwwroot/node_modules/@prisma/client/runtime/library.js:111:10084) at async _r.loadEngine (/home/site/wwwroot/node_modules/@prisma/client/runtime/library.js:112:448) at async _r.instantiateLibrary (/home/site/wwwroot/node_modules/@prisma/client/runtime/library.js:111:12599)

<質問内容>
・特に直近でデプロイや構成の変更などは行っていないのですが、Azure側のメンテナンスのための再起動後に、functionsの実行環境が変わってしまうことなどはあるのでしょうか?

もしその他ログなど必要であればご教授下さい。
何卒よろしくお願い致します。

コミュニティ センター | 監視されない

お客様の回答

質問作成者は回答に "承認済み"、モデレーターは "推奨" とマークできます。これにより、ユーザーは作成者の問題が回答によって解決したことを把握できます。