Sitelet https://github.com/redis-stack/redis-stack/issues/616
Skip to content

Error Running entrypoint.sh - Cannot Find Module /share/redisinsight/api/dist/src/main.js #616

Description

@diegocastrum

I am encountering an error when running the entrypoint.sh script for the Redis stack. The error message indicates that the module /share/redisinsight/api/dist/src/main.js cannot be found.

Error: Cannot find module '/share/redisinsight/api/dist/src/main.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Steps to Reproduce

  1. Run the entrypoint.sh script with the current configuration.
  2. Observe the error message indicating the missing module.

Expected Behavior

The script should run without errors and start the Redis stack successfully (including the RedisInsight).

Possible Cause

The error suggests that the file /share/redisinsight/api/dist/src/main.js is missing or the path is incorrect.

Suggested Fix

If the path is incorrect, update the entrypoint.sh script to point to the correct location of the main.js file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions