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

Keystore: Value too large for defined data type #310

Closed
malwareslayer opened this issue May 6, 2024 · 5 comments
Closed

Keystore: Value too large for defined data type #310

malwareslayer opened this issue May 6, 2024 · 5 comments

Comments

@malwareslayer
Copy link

malwareslayer commented May 6, 2024

Hello

OpenSearch instance immediately stop and error with log below with just regular docker-compose --profile malcolm up

Created opensearch keystore in /usr/share/opensearch/config/opensearch.keystore
mv: cannot create regular file './config/persist/opensearch.keystore': Value too large for defined data type
ln: failed to create symbolic link './config/opensearch.keystore': File exists

Any suggestions ?

@mmguero
Copy link
Collaborator

mmguero commented May 6, 2024

  1. Hmm... my guess is you should have run ./scripts/auth_setup to create certain files before starting Malcolm. You'll need to stop Malcolm (./scripts/stop) delete those files, as they've been created as directories now when docker started up, with a command like:
$ sudo rm -rf ./opensearch/opensearch.keystore ./logstash/certs/*.crt ./logstash/certs/*.key ./filebeat/certs/c*
  1. Then run ./scripts/auth_setup (as discussed here and here) and go through every option (select all)
  2. The suggested way to start Malcolm is to use the ./scripts/start script rather than calling docker-compose or docker compose directly, as described in the documentation. That will make sure that the necessary files are in place before docker starts and does its volume bind mounting.

@malwareslayer
Copy link
Author

Still don't do anything. I do fix just by cp /usr/share/opensearch/opensearch.keystore to <malcolm>/opensearch then delete any mount to ./opensearch .

What i find with the related error is, Docker image doesn't support big file

@mmguero
Copy link
Collaborator

mmguero commented May 15, 2024

I don't understand your last comment, my apologies. Were you able to get it running, then?

@malwareslayer
Copy link
Author

Able to get running and into dashboard, but not working, i.e: failed upload pcap in upload feature, the error still same with Value too large for defined data type

@malwareslayer
Copy link
Author

malwareslayer commented May 17, 2024

Close this issues.

Solution:
Its because my Docker builder that default to docker-desktop, taking the default volume options that created by docker-compose to incompatible with the host. Or making defined volume in docker-compose.yml.

volumes:
  nginx-log-path:
    driver: local
    driver_opts:
      type: ext4
      device: "${PWD}/nginx/logs"
      o: bind
  opensearch:
    driver: local
    driver_opts:
      type: ext4
      device: "${PWD}/opensearch"
      o: bind
  upload:
    driver: local
    driver_opts:
      type: ext4
      device: "${PWD}/pcap/upload"
      o: bind
  pcap:
    driver: local
    driver_opts:
      type: ext4
      device: "${PWD}/pcap"
      o: bind

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

2 participants