notea-org / notea

📒 Self hosted note taking app stored on S3
2.07k stars 377 forks source link

Trying to run at desk #144

Closed Ecleptic closed 2 years ago

Ecleptic commented 2 years ago

When running the application, I get this error and googling does not seem to help me get around it.

{
  name: 'NoSuchKey',
  message: 'The specified key does not exist.',
  status: 500,
  stack: 'NoSuchKey: The specified key does not exist.\n' +
    '    at deserializeAws_restXmlNoSuchKeyResponse (~/projects/notea/node_modules/@aws-sdk/client-s3/dist-cjs/protocols/Aws_restXml.js:6154:23)\n' +
    '    at deserializeAws_restXmlGetObjectCommandError (~/projects/notea/node_modules/@aws-sdk/client-s3/dist-cjs/protocols/Aws_restXml.js:4353:25)\n' +
    '    at runMicrotasks (<anonymous>)\n' +
    '    at processTicksAndRejections (internal/process/task_queues.js:97:5)\n' +
    '    at async ~/projects/notea/node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js:7:24\n' +
    '    at async ~/projects/notea/node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js:11:20\n' +
    '    at async StandardRetryStrategy.retry (~/projects/notea/node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js:51:46)\n' +
    '    at async ~/projects/notea/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/flexibleChecksumsMiddleware.js:56:20\n' +
    '    at async ~/projects/notea/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:6:22\n' +
    '    at async StoreS3.getObject (webpack-internal:///(api)/./libs/server/store/providers/s3.ts:82:28)'
}
tecc commented 2 years ago

That's interesting. What object storage software are you using? I'm guessing it could be fixed by changing line 18 in libs/server/store.ts to include err.name, but I may be entirely wrong.

Ecleptic commented 2 years ago

All I've done is the steps in the readme: docker-compose up -d yarn dev

I assume it's a volume permission issue? I am not terribly familiar with docker.

Ecleptic commented 2 years ago

changing line 18 to include err.name did help me create a file, however typing in the body got me a new error. Which I am looking up now. SCR-20220914-lhi

Ecleptic commented 2 years ago

What version of node do you use?

tecc commented 2 years ago

I use node 16.

Ecleptic commented 2 years ago

That wasn't it. 😆

Ecleptic commented 2 years ago

https://github.com/ueberdosis/tiptap/issues/577

This error references the issue. and this did work when I did a yarn install

Ecleptic commented 2 years ago

we may need to update node packages to address this.

tecc commented 2 years ago

Perhaps. I'll have to properly look into it later, since I'm slightly busy at the moment.

tecc commented 2 years ago

Okay, update on this issue: Since I can't test it myself at this moment, I wonder if downgrading prosemirrror-model to ^1.8.1 - I perused a bit through the lockfiles of both rich-markdown-editor and Notea, and it might be caused by having a too new version for the editor library. The main reason I'm suggesting this is that rich-markdown-editor has been archived for nearly a year, and as such may not work with the later versions of Prosemirror. If not that, it might be that the prosemirror versions used are incompatible with each other. This is all speculative though.

tecc commented 2 years ago

Quick update on this issue: I tested it with the changes I made in #146, and it works fine.