-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Version reports 1.0.21, but 1.0.18 is checked out. #55
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
Where is the tamper conclusion coming from? both medusa/common.py and CHANGELOG.md claims 1.0.21. We do indeed not use git to grab the version, and rather the source-code tarball. |
We don't We just grab the github release tarball: https://github.com/linuxserver/docker-medusa/blob/master/Dockerfile#L30-L32 |
We do not set/use/need that environment variable at all |
And that leads to this behavior where the container chooses to identify as an older cached version |
Honestly it's quite silly to rely on git commits for version checks on stable releases. It's appropriate for development releases and dev purposes but not stable releases for public consumption. I realize various FOSS projects used to do that back in the day, including for webgui based updates, but most have moved on to proper versioning for stable releases. With that said, we don't support internal update mechanisms via the gui. We used to go out of our way to try and disable those when it used to be common. These days it's rare so we no longer bother. In short, if you're using our docker image, don't use web gui update mechanisms. The update instructions as well as instructions for checking the app version within containers are both described in the readme:
With regards to the |
That test is at best flakey. There is no commit tied to a release on github(it can be tied to a git tag, which does have a commit associated). |
The issue here is i use persistent storage mounted (medusa configuration) and that has indexed commit derived from prior version set and cached that. I am using the container :latest container 1:1. One needs to set |
Isn't the indexed commit stored in the config file? Can't you just remove it as it never should have been set in our container to begin with? It's a side effect of migrating from either a different image or bare metal to our container and should be part of the migration steps. |
You're basically suggesting I go do surgery to my config file every iteration of the container that edits common.py to change the version to a higher increment, instead of just setting the enviroment variable to prevent this behavior from happening? |
We haven't exposed the commit SHA for years in Medusa. So how it even knew which to put there is a mystery. The time for that 43rd commit in Medusa tracks with when Truecharts decided to be less shitty by rebranding containers, who knows what they did to the images, maybe they set the env once. |
a live test of my database is that it bricked editing a config file to set the commit hash, and reapplying backups don't work. It's a fickle webserver from a stagnant codebase. The container itself runs. |
I'm in a meeting and I haven't used or looked into Medusa in a loong time so I'm going by what you said.
I'm assuming you're talking about a migration related issue. Because when I put up a container just now, an update check tells me I'm already on latest and it also tells me the docker message Rox posted above. Also like Rox said, we are not the ones publishing helm charts. Who knows what they did in the past. |
oh well, my database is already lost so guess i have to rebuild new anyway and assume this is a former truecharts thing, and just reopen a new issue if it turns out not to be. |
Is there an existing issue for this?
Current Behavior
Branch: master
Commit: b8bec48d5036a4d9084d762e2d2ffca9c711f2f3
Version: 1.0.21
https://github.com/pymedusa/Medusa/releases/tag/v1.0.18 = pymedusa/Medusa@b8bec48
Expected Behavior
expected behavior is for pymedusa/Medusa@34a67cf to be checked out, not pymedusa/Medusa@b8bec48
also docker container flag seems to be unset, and there's no git within the container.
Steps To Reproduce
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: