Giter Site home page Giter Site logo

Comments (12)

bjarneo avatar bjarneo commented on June 16, 2024

Do this happen only for the newest version?

from hemmelig.app.

tryallthethings avatar tryallthethings commented on June 16, 2024

I was running the exact same configuration with the previous release and didn't see this issue there.

from hemmelig.app.

bjarneo avatar bjarneo commented on June 16, 2024

I am quite not sure why this is happening to you. Tried to upgrade my own instance to the latest release without any issue, 🤔

from hemmelig.app.

tryallthethings avatar tryallthethings commented on June 16, 2024

But did you have the same env variables for creating the root user as well?

from hemmelig.app.

bjarneo avatar bjarneo commented on June 16, 2024

Yes, I never change those. But that user will only be created on the first run. Not each time you restart / start the container. As long as the database is mounted correctly

from hemmelig.app.

tryallthethings avatar tryallthethings commented on June 16, 2024

I can pretty much force the error by adding the env values back and restart the container. Can we get additional logs to debug this?

from hemmelig.app.

bjarneo avatar bjarneo commented on June 16, 2024

Sure. Can you open a PR and add the logs you need?

from hemmelig.app.

tryallthethings avatar tryallthethings commented on June 16, 2024

I have no clue how to debug this. I was asking if we can enable some additional logging, so one of the devs can look into it.

from hemmelig.app.

bjarneo avatar bjarneo commented on June 16, 2024

There are no more logs to enable. It has to be manually added to the code. What devs? This is an open source tool mainly maintained by me. Occasionally people are contributing to the project.

from hemmelig.app.

bjarneo avatar bjarneo commented on June 16, 2024

Did you try to move the database and let the instance create a fresh one? To verify if that solves the issue. This seems to be not related to the application itself, but the data saved to the database.

from hemmelig.app.

bjarneo avatar bjarneo commented on June 16, 2024

I managed to reproduce this when testing locally:

  1. I was signed in with the default user and password
  2. I fetched the production database (which does not contain that user)
  3. Tried to create a secret.

What happens on 3. is that when you try to create a secret, and you are signed in with a user that does not exist in the database, then it tries to attach your user to the secret -> to the database. The matching will fail.

from hemmelig.app.

tryallthethings avatar tryallthethings commented on June 16, 2024

I just tested it with the latest version and the issue is gone now. You might be correct with your assumption, as I had trouble with the database and kept recreating it while still being signed in with the old version. Good catch and thanks!

from hemmelig.app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.