vercel-community / php

🐘 PHP Runtime for ▲ Vercel Serverless Functions (support 7.4-8.3)
https://php.vercel.app
MIT License
1.26k stars 291 forks source link

Error when deploy it to Vercel "No such file or directory" #555

Open DiamondTrack opened 3 months ago

DiamondTrack commented 3 months ago

Bug report

Description

[15:05:35.411] Running build in Washington, D.C., USA (East) – iad1 [15:05:35.611] Cloning github.com/DiamondTrack/the-aldi (Branch: main, Commit: bda78d4) [15:05:35.639] Skipping build cache, deployment was triggered without cache. [15:05:43.575] Cloning completed: 7.964s [15:05:44.059] Running "vercel build" [15:05:44.509] Vercel CLI 34.2.8 [15:05:45.374] > Installing Builder: vercel-php@0.7.0 [15:05:48.570] 🐘 Downloading user files [15:05:48.571] 🐘 Downloading PHP runtime files [15:05:48.573] 🐘 Installing Composer dependencies [START] [15:05:48.854] php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory [15:05:48.856] Error: Exited with 127 [15:05:48.857] at ChildProcess. (/vercel/path0/.vercel/builders/node_modules/vercel-php/dist/utils.js:182:24) [15:05:48.857] at ChildProcess.emit (node:events:518:28) [15:05:48.857] at ChildProcess.emit (node:domain:488:12) [15:05:48.857] at ChildProcess._handle.onexit (node:internal/child_process:294:12) [15:05:48.885] Error: Command "vercel build" exited with 1 [15:05:48.955] Command "vercel build" exited with 1 [15:05:48.990]

BintangDeveloper commented 3 months ago

Had the same problem as mine, but still no solution.

oregdesign commented 3 months ago

try this.. in your project dashboard go to, setting > general > node.js version ( change to 18x ) and hit the "save" button and redeploy.

maverickdude commented 2 months ago

I'm having this issue as well.

dextermb commented 2 months ago

try this.. in your project dashboard go to, setting > general > node.js version ( change to 18x ) and hit the "save" button and redeploy.

Downgrading from Node 20 to 18 seems to resolve my issue for now.

FojoBass commented 2 months ago

try this.. in your project dashboard go to, setting > general > node.js version ( change to 18x ) and hit the "save" button and redeploy.

Downgrading from Node 20 to 18 seems to resolve my issue for now.

But how? I can't seem to locate the "node.js version" option in my settings.