Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest Docker image throws MODULE_NOT_FOUND error

See original GitHub issue
  • The involved route, with all required and optional parameters N/A
  • What is expected Latest docker image 2021-08-12 runs without an error.
  • What is actually happening Throws error at start:
> rsshub@1.0.0 start /app
> node lib/index.js

  throw err;

Error: Cannot find module 'module-alias'
Require stack:
- /app/lib/app.js
- /app/lib/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
    at Function.Module._load (internal/modules/cjs/loader.js:745:27)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (/app/lib/app.js:1:21)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Module.require (internal/modules/cjs/loader.js:961:19) {
  requireStack: [ '/app/lib/app.js', '/app/lib/index.js' ]
npm ERR! errno 1
npm ERR! rsshub@1.0.0 start: `node lib/index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the rsshub@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-08-12T22_31_13_401Z-debug.log
  • Self-deployment information
Env Value
OS Ubuntu 20.04 & 21.04
Node version
if Docker, version podman 3.2.3
  • Additional info (logs errors etc)

I am using podman to run the container/compose file, but the same error does not appear in 2021-07-13 with the same set up. It seems to be a docker image issue. Feel free to test with “proper” docker setup.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

NeverBehavecommented, Aug 14, 2021


nekolrcommented, Aug 13, 2021

重新拉了一下 latest,还是有这个问题

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError and import errors in Docker container
I've just come across another thread on StackOverflow which seems to have resolved my issue. I can leave the import statements as I ......
Read more >
No module named 'packaging' with latest docker image · Issue ...
While running the ansible playbooks on AWX it is throwing "ModuleNotFoundError" error for 'packaging'. On the other hand playbooks are ...
Read more >
Debugging ImportError and ModuleNotFoundErrors in your ...
Your code runs fine on your computer, but when you try to package it with Docker you keep getting ImportError s or ModuleNotFoundError...
Read more >
ModuleNotFoundError: No module named 'docker-image-py'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'docker-image-py' How to remove the Mo.
Read more >
How to Fix ModuleNotFoundError and ImportError
Module imports can certainly frustrate people and especially those who are fairly new to Python. Since I keep seeing relevant questions on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found