mailchain / mailchain-legacy

Using Mailchain, blockchain users can now send and receive rich-media HTML messages with attachments via a blockchain address.
https://mailchain.xyz
Apache License 2.0
143 stars 51 forks source link

Windows configuration - Application setup issue #705

Closed sa3664 closed 3 years ago

sa3664 commented 3 years ago

Describe the bug I am receiving the below error while doing the application setup in my local windows system :

Error: Could not config mailbox store: During db.vlog.open: Value log truncate required to run DB. This might result in data loss

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://github.com/mailchain/mailchain/blob/master/DEVELOPMENT_GUIDE.md'
  2. Go to "Add account" and run "go run cmd/mailchain/main.go account add --protocol=ethereum --key-type="secp256k1" --private-key=YOUR_PRIVATE_KEY".
  3. After adding an account, scroll down to "Serve" and run "go run cmd/mailchain/main.go serve".
  4. See error

What version of Mailchain are you using ? $ mailchain version Version: v0.0.69

Expected behavior The expected behavior should be a running instance of mailchain application in local.

Screenshots image

Desktop (please complete the following information):

Additional context N/A

robdefeo commented 3 years ago

Hi @sa3664 can you take a look at PR #707 and see if this fix resolves the issue you were having. I don't have a windows machine handy to test on.

sa3664 commented 3 years ago

Hello @robdefeo I tried the fix from PR #707 , however, was receiving the below error on two different windows machines :

image

Upon researching, I found a recommendation on the official badger GitHub repo on the below link :

https://github.com/dgraph-io/badger/issues/246

The working solution is available in PR #708