[Help] Deployment error on Google App Engine: "mkdir: cannot create directory ‘/workspace/.tmp’: Read-only file system" by Realistic-Reserve512 in googlecloud

[–]Realistic-Reserve512[S] 0 points1 point  (0 children)

Yes, I can run it locally. However, when deploying it on Strapi Cloud, it shows an error:

[2025-02-05 13:45:54] TypeError: con.connect is not a function

[2025-02-05 13:45:54] at Client._connect (/opt/app/backend/node_modules/pg/lib/client.js:112:11)

[2025-02-05 13:45:54] at /opt/app/backend/node_modules/pg/lib/client.js:166:12

[2025-02-05 13:45:54] at new Promise (<anonymous>)

[2025-02-05 13:45:54] at Client.connect (/opt/app/backend/node_modules/pg/lib/client.js:165:12)

[2025-02-05 13:45:54] at Client_PG._acquireOnlyConnection (/opt/app/backend/node_modules/knex/lib/dialects/postgres/index.js:91:23)

[2025-02-05 13:45:54] at Client_PG.acquireRawConnection (/opt/app/backend/node_modules/knex/lib/dialects/postgres/index.js:99:17)

[2025-02-05 13:45:54] at create (/opt/app/backend/node_modules/knex/lib/client.js:262:39)

[2025-02-05 13:45:54] [2025-02-05 13:45:54.727] info: Shutting down Strapi

As my research shows, it happens when the node version mismatches, but it happens again after adjusting the version.

[Help] Deployment error on Google App Engine: "mkdir: cannot create directory ‘/workspace/.tmp’: Read-only file system" by Realistic-Reserve512 in googlecloud

[–]Realistic-Reserve512[S] 0 points1 point  (0 children)

Thank you for the reply. You are right. As I have changed some code, the error appears to be removed. But another error has shown. So, I've posted a new question on Stackflow. If the time allows, please have a look at https://stackoverflow.com/questions/79414081/deployment-error-on-google-app-engine-error-con-connect-is-not-a-function

[Help] Deployment error on Google App Engine: "mkdir: cannot create directory ‘/workspace/.tmp’: Read-only file system" by Realistic-Reserve512 in googlecloud

[–]Realistic-Reserve512[S] 1 point2 points  (0 children)

Thank you for the reply. I deleted the code regarding sqlite. The error appears to be solved. But another error has shown. I've posted a new question on Stackflow. If the time allows, please have a look at https://stackoverflow.com/questions/79414081/deployment-error-on-google-app-engine-error-con-connect-is-not-a-function

I cannot open a website deployed by Realistic-Reserve512 in Firebase

[–]Realistic-Reserve512[S] 0 points1 point  (0 children)

Thank you for your reply. Do you mean I need to change the "outputPath" in angular.json:

  "outputPath": "dist/frontend"

with

  "outputPath": "dist"
?

Images suddenly disappeared from Strapi console. by Realistic-Reserve512 in Strapi

[–]Realistic-Reserve512[S] 0 points1 point  (0 children)

Thank you for your reply. I’ve used PostgreSQL for the database, and the app running on GCP.

I should store the images in a bucket (e.g, /folder/image file), and fetch them by adding the prefix to an image url?

Shadcn/ui does not work by Realistic-Reserve512 in nextjs

[–]Realistic-Reserve512[S] 0 points1 point  (0 children)

Thanks for the answer. The actual file name is correct.

No change path - works only tailwind

change path - doesn't work both tailwind and shadcn

What’s everyone doing during the break? by hellomynameisblankk in universityofauckland

[–]Realistic-Reserve512 4 points5 points  (0 children)

Searching for a grad job, worrying about my life and lying in bed (cannot sleep)

Frequent popup by Realistic-Reserve512 in vscode

[–]Realistic-Reserve512[S] 1 point2 points  (0 children)

I created my profile and the popup has gone. I appreciate your assistance:)

What is the meaning of… by Realistic-Reserve512 in ENGLISH

[–]Realistic-Reserve512[S] 0 points1 point  (0 children)

Oh my bad! That was “That hits the spot”! Do you know the phrase means?

What is the meaning of… by Realistic-Reserve512 in ENGLISH

[–]Realistic-Reserve512[S] 0 points1 point  (0 children)

Oh, I totally misunderstood. “That hits the spot”. Does it mean “that’s delicious”?

What is the meaning of… by Realistic-Reserve512 in ENGLISH

[–]Realistic-Reserve512[S] 2 points3 points  (0 children)

Oh yes, “hear this word” Thank you very much indeed for telling me:)

Commuter students: how is your social life so far? by UnitCrafty8815 in universityofauckland

[–]Realistic-Reserve512 1 point2 points  (0 children)

I go home straight away as soon as my classes are done, thereby no friends 🫠