m0ngr31 / DailyNotes

App for taking notes and tracking tasks on a daily basis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't save any entry: "There was an error saving. Please try again."

glennrice opened this issue · comments

I just came across this and wanted to give it a go but can't seem to get it to save any notes.

I even tried setting the /app/config folder and the app.db to 777 but still get the same message pop up in the web interface whenever I click the save icon.

Apart from that the docker image appears to be running fine and I can create a user and login fine.

Is there something I've missed? Or even a log file somewhere on the docker that I have missed?

I have the same problem. I'm using docker on arch linux and this docker-compose:

services: 
  server:
    image: m0ngr31/dailynotes
    ports:
      - 5000:5000
    volumes:
      - ./volume:/app/config
    environment: 
      API_SECRET_KEY: asdfsadfsadf
      DB_ENCRYPTION_KEY: asdfasdfasdf

I'm also on Arch Linux and I'm using docker-compose but it works fine. Did your try to run it without specifying the keys in the environment?
Can you send the logs of docker compose?

I'd have to see what the logs look like, and what your config is

I downgraded python to 3.6.9 and it fixed my save issues.

commented

This happens with the error message "IV needs to be 16 bytes long" or something - it's because the kind of AES encryption used requires a 16-byte long encryption passphrase. Delete both the .env file and the app.db file from the config folder, use encryption keys that are exactly 16 characters long, and you should be fine.

Sorry for the delayed response, got busy with other things.

I tried the suggestion from @ethereal-engineer and that fixed the problem. Seems to be running perfectly now. Thanks for the help.