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
Selector shows wrong checksums #3
Comments
I started looking at this a while back but was thrown off by the missing (freifunk-berlin specific) installation/usage instructions. |
@Akira25 since I wrote the collect.py script, is there something I can help with? |
@mwarning maybe you can. Really nice, that you provide us with in that issue. :) @khanku I just added some hacky shell-scripts, that where on the firmware-selector-machine, but no added in the versioning-system. The whole process is a bit hacky and messy. Probably the collect.py-script can do it all alone with just minor adjustments, but I didn't have had the time to read it all through now. First thing to notice, we kind of "misuse" the version-pulldown menue to provide different flavors of the firmware too. For deployment we currently do at that way:
Everything quite hacky, I know. I'm sorry, that I didn't had the time to make it proper. |
The whole stuff with linking files into another direction comes from a time, where I hadn't root access to the machine, but only to that specific directory. So I was not able to adjust the webservers config accordingly. That will be better in the near future. (freifunk-berlin/ansible@3bb08c1 line 39 and after). |
I think that is the crux of the issue. IIRC the checksum that's shown is always the one from the first flavour. The scripts you added should help troubleshooting. |
It's weird: it works on my machine(tm)!
Those are the correct checksums that can be found at https://firmware.berlin.freifunk.net/stable/1.2.1/tunneldigger/ipq40xx/mikrotik/sha256sums and https://firmware.berlin.freifunk.net/stable/1.2.1/notunnel/ipq40xx/mikrotik/sha256sums respectively. Now if I go to https://selector.berlin.freifunk.net/ I can see that both https://selector.berlin.freifunk.net/1.2.1/tunneldigger/ipq40xx/mikrotik/mikrotik_sxtsq-5-ac.json and https://selector.berlin.freifunk.net/1.2.1/notunnel/ipq40xx/mikrotik/mikrotik_sxtsq-5-ac.json have the same checksum. And the same build timestamp (up to the second) which makes me think they're the same file. Since the differences between |
you can find the original data freely readable beneath the images at http://firmware.berlin.freifunk.net/, which maps to The copied data (fetched by collect.py) is accessable at https://selector.berlin.freifunk.net/1.2.1/, which maps to |
in result, the original data from |
This prevents the same flavour from always being picked by the scan function and resolves freifunk-berlin#3.
I believe I've found the issue: when passed a local URI |
This prevents the same flavour from always being picked by the scan function and resolves #3.
This prevents the same flavour from always being picked by the scan function and resolves #3.
The selector shows wrong checksums for the images. In fact, it shows the checksums of only one image-type, even if we select the other one. So at least for half of the images, there get correct checksums displayed.
when this bug is fixed, we can drop e7fe664
The text was updated successfully, but these errors were encountered: