-
Notifications
You must be signed in to change notification settings - Fork 38
Unable to start Upload Session #69
Comments
Files are not yet supported in the standalone config, but this is something we have on our high priority todo. |
Will this also work/ be available for the self hosting version? Because I’m also not able to upload files, but the upload button is present in the desktop app and in the mobile apps |
I think this can be closed as resolved. There is clear section about get this configured in documentation: I've got it working! 🙂
Then set standard proxy for your domain and port Of Course - you need to activate subscription for your account and set quota size as explain in docs: https://docs.standardnotes.com/self-hosting/subscriptions
and:
But please be aware of: #83 |
One thing I didn't see mentioned here that tripped me up is how to set this up while using a reverse proxy. I finally got it working and wanted to share the magic ingredient. The Standard Notes Files Server needs its own entry in your reverse proxy conf file. I gave mine its own subdomain, so I have these domains: Standard Notes domain: https://snotes.MYDOMAIN.com In case it helps anyone, this is my nginx reverse proxy code. Notice the entry for notes and the entry for files. Also, everything pertaining to HTTPS was written there by Certbot, so if you're copying this code, remove the lines of code (or chunks of code) that say "managed by Certbot".
So, that was step one. Then, the Update the Do NOT include the port (3125) after the domain name in this config file. Doing so will cause your reverse proxy to send the request to the wrong place and it will fail. Just use the subdomain and let the reverse proxy send it to port 3125. |
Thanks for sharing! |
Service Versions (please complete the following information):
Paste the output of
./server.sh version
. For example:Describe the issue
After setting up the instance and being able to create notes and so on, I tried to attach a file to a note but ran into an error. I've given the rights via the sql command so the user is allowed to perform the action (paid plan).
The Errors in the application:
"Unable to start upload session"
"There was an error while uploading the file"
The server logs give the following errors:
auth-standalone | query: SELECT
setting
.uuid
ASsetting_uuid
,setting
.name
ASsetting_name
,setting
.value
ASsetting_value
,setting
.server_encryption_version
ASsetting_server_encryption_version
,setting
.created_at
ASsetting_created_at
,setting
.updated_at
ASsetting_updated_at
,setting
.sensitive
ASsetting_sensitive
,setting
.user_subscription_uuid
ASsetting_user_subscription_uuid
FROMsubscription_settings
setting
WHEREsetting
.name
= ? ANDsetting
.user_subscription_uuid
= ? ORDER BY updated_at DESC LIMIT 1 -- PARAMETERS: ["FILE_UPLOAD_BYTES_LIMIT","9204ade1-da9b-11ec-834a-0242ac120002"]auth-standalone | {"message":"Error: secretOrPrivateKey must have a value\n at module.exports (/var/www/node_modules/jsonwebtoken/sign.js:107:20)\n at TokenEncoder.encodeExpirableToken (/var/www/node_modules/@standardnotes/auth/dist/Domain/Encoder/TokenEncoder.js:10:40)\n at CreateValetToken.execute (/var/www/dist/src/Domain/UseCase/CreateValetToken/CreateValetToken.js:82:46)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async ValetTokenController.create (/var/www/dist/src/Controller/ValetTokenController.js:36:40)","level":"error"}
api-gateway-standalone | {"level":"error","message":"Could not pass the request to http://auth:3000/valet-tokens on underlying service: undefined"}
I've followed the wiki and used the server.sh script to set everything up, the only thing I've changed were the secrets and the nginx config for the ssl certificates.
The text was updated successfully, but these errors were encountered: