Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory #69

Open
sleakchat opened this issue Aug 14, 2024 · 2 comments

Comments

@sleakchat
Copy link

Getting this error using a TiDB mysql db:

/var/task/node_modules/serverlesswp/php-files/php: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory Error: Timed out waiting for: tcp:127.0.0.1:8000 at /var/task/node_modules/wait-on/lib/wait-on.js:131:31 at doInnerSub (/var/task/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:22:31) at outerNext (/var/task/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js:17:70) at OperatorSubscriber._this._next (/var/task/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21) at Subscriber.next (/var/task/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18) at AsyncAction.<anonymous> (/var/task/node_modules/rxjs/dist/cjs/internal/observable/timer.js:28:28) at AsyncAction._execute (/var/task/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js:79:18) at AsyncAction.execute (/var/task/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js:67:26) at AsyncScheduler.flush (/var/task/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js:38:33) at listOnTimeout (node:internal/timers:573:17)

Anybody knows whats going wrong here? Thanks!

@erikksuzuki
Copy link

I have some troubleshooting experience with TiDB on Vercel:

After deploying to Vercel, change Node.js version is v18.0 in "General Settings"
In the project's function settings, change "Function Region" to match your database location
Change "Function Max Duration" from 10 seconds to 25 seconds
Replace line 46 in the wp-config.php file in your code repository with:
define( 'DB_COLLATE', 'utf8mb4_general_ci' );

In the "Deployments" tab find your most recent deployment and click the three-dot menu to redeploy the app.

@HallexCosta
Copy link

If you don´t wants to change the General Settings you can define the node version directly in package.json, with { engines": { "node": "18.x" } }

Example:

{
  "name": "serverlesswp-wordpress-starter",
  "version": "1.0.0",
  "description": "",
  "license": "MIT",
  "dependencies": {
    "serverlesswp": "^0.1.2"
  },
  "engines": { "node": "18.x" } 
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants