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: Cannot find module '../cassandraSchemas/cassandra-tables' #27

Open
tomyc opened this issue Aug 24, 2018 · 1 comment
Open

Error: Cannot find module '../cassandraSchemas/cassandra-tables' #27

tomyc opened this issue Aug 24, 2018 · 1 comment

Comments

@tomyc
Copy link

tomyc commented Aug 24, 2018

Hi,
My first try with Devicehive Cassandra plugin and I'm facing a problem as follows:

Recreating devicehive-plugin-cassandra-node_schema_1 ... done
Recreating devicehive-plugin-cassandra-node_plugin_1 ... done
Attaching to devicehive-plugin-cassandra-node_schema_1, devicehive-plugin-cassandra-node_plugin_1
schema_1  | > [email protected] schema /usr/src/app
schema_1  | > node ./plugin/cassandraSchema/index.js
schema_1  |
schema_1  | module.js:557
schema_1  |     throw err;
schema_1  |     ^
schema_1  |
schema_1  | Error: Cannot find module '../cassandraSchemas/cassandra-tables'

and then:

devicehive-plugin-cassandra-node_schema_1 exited with code 1
plugin_1  |
plugin_1  | > [email protected] start /usr/src/app
plugin_1  | > node ./plugin/index.js
plugin_1  |
plugin_1  | module.js:557
plugin_1  |     throw err;
plugin_1  |     ^
plugin_1  |
plugin_1  | Error: Cannot find module '../cassandraSchemas/cassandra-tables'

I was going with steps described in section "How it works".
Thanks in advice for your helpful posts.

Regards,
Tom

@tomyc
Copy link
Author

tomyc commented Aug 26, 2018

Temporary solution:
in my case with docker-compose version 1.22.0, volumes cassandraConfig and cassandraSchema are not mapped. I haven't investigated the reason for such a problem. So the temporary solution is to copy mentioned directories to the plugin directory and editing files plugin/CassandraPluginService.js and plugin/cassandraSchema/index.js to reflect the changes of the path to the directories.

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

1 participant