mhassan1 / redis-memory-server

Redis Server for testing. The server will allow you to connect your favorite client library to the Redis Server and run parallel integration tests isolated from each other.
MIT License
76 stars 11 forks source link

spawn EACCES on ubuntu with node 20 #34

Closed geekact closed 5 months ago

geekact commented 5 months ago

These logs may help you

2024-05-26T15:18:08.074Z RedisMS:RedisMemoryServer Called RedisMemoryServer.ensureInstance() method
2024-05-26T15:18:08.075Z RedisMS:RedisMemoryServer  - no running instance, call `start()` command
2024-05-26T15:18:08.075Z RedisMS:RedisMemoryServer Called RedisMemoryServer.start() method
2024-05-26T15:18:08.075Z RedisMS:RedisMemoryServer starting with port 33885, since undefined was locked: 33885
2024-05-26T15:18:08.075Z RedisMS:RedisMemoryServer Starting Redis instance with following options: {"port":[338](https://github.com/aomex/aomex/actions/runs/9244172932/job/25429397321#step:6:339)85,"ip":"127.0.0.1"}
2024-05-26T15:18:08.076Z RedisMS:RedisBinary RedisBinary options: {
  "downloadDir": "/home/runner/work/aomex/aomex/node_modules/.cache/redis-memory-server/redis-binaries",
  "version": "stable"
}
2024-05-26T15:18:10.988Z RedisMS:RedisBinary RedisBinary: Download lock removed
2024-05-26T15:18:10.988Z RedisMS:RedisBinary RedisBinary: redis-server binary path: "/home/runner/work/aomex/aomex/node_modules/.cache/redis-memory-server/redis-binaries/stable/redis-server"
2024-05-26T15:18:10.994Z RedisMS:RedisInstance Redis[42275]: RedisInstance: Instance has failed: Error: spawn /home/runner/work/aomex/aomex/node_modules/.cache/redis-memory-server/redis-binaries/stable/redis-server EACCES
2024-05-26T15:18:10.998Z RedisMS:RedisInstance Redis[42275]: redis-server instance closed with an non-0 code!
2024-05-26T15:18:10.998Z RedisMS:RedisInstance Redis[42275]: CLOSE: -13
2024-05-26T15:18:10.998Z RedisMS:RedisInstance Redis[42275]: RedisInstance: Instance has failed: redis-server instance closed with code "-13"
2024-05-26T15:18:11.013Z RedisMS:RedisBinary RedisBinary: Download lock removed
2024-05-26T15:18:10.998Z RedisMS:RedisBinary RedisBinary: Download lock removed
2024-05-26T15:18:10.998Z RedisMS:RedisBinary RedisBinary: redis-server binary path: "/home/runner/work/aomex/aomex/node_modules/.cache/redis-memory-server/redis-binaries/stable/redis-server"

node@20.x pnpm@9.x ubuntu@latest github actions

More information can view here: https://github.com/aomex/aomex/actions/runs/9244172932/job/25429397321

geekact commented 5 months ago

/usr/bin/ld: cannot find ../deps/jemalloc/lib/libjemalloc.a: No such file or directory collect2: error: ld returned 1 exit status make[1]: [Makefile:403: redis-server] Error 1 make: [Makefile:6: all] Error 2

https://github.com/aomex/aomex/actions/runs/9257848596/job/25466815267#step:6:400

mhassan1 commented 5 months ago

I am looking at the GitHub Actions links. I'm confused why test (ubuntu-latest, 20.9.0) is failing but test (ubuntu-latest, 22.x) is passing. The Node.js version should make no difference in the redis-server build process. One difference I see between those two runs is that test (ubuntu-latest, 22.x) spends 2 minutes on the pnpm install step, while test (ubuntu-latest, 20.9.0) spends only 2 seconds on it. Maybe something is cached incorrectly?

geekact commented 5 months ago

The job run succeed after deleting pnpm caches, and failed when re-run same job.

remove caches -> re-run -> OK -> re-run -> FAIL

mhassan1 commented 5 months ago

That seems like an issue with your GitHub Actions caching configuration. Not sure how I can help.