offspot / imager-service

Create Kiwix Hotspot microSD cards online
https://imager.kiwix.org/
GNU General Public License v3.0
14 stars 6 forks source link

Writer gets mixed up between drive A and B #168

Closed Popolechien closed 4 years ago

Popolechien commented 4 years ago

I've started an order (#5f436c2e006) and after a little while I receive two emails, one asking to insert a microSD card into slot A and another one for slot B Capture d’écran 2020-08-24 à 14 20 58

Capture d’écran 2020-08-24 à 14 13 27

(both emails are sent at the same time and I only had one order going)

When I do click on B, I get a confirmation thanking me for the inserting in Slot A Screenshot_20200824_141343 and then a few minutes later the creation fails. I cannot go to activate slot B creation as the page is marked as not available (presumably because the order has been considered received and the process moved on, see #74)

rgaudin commented 4 years ago

OK, I don't know why you received two different emails ; that's funny.

It appears that the writing is currently in progress on Slot A, after an incorrect attempt without a card (possibly when you clicked the first time). I'd like to remind you that the slot assignation is absolutely not guarantee across reboots… and that the machine rebooted a few days ago, following a power outage. It may be that the slots are now inverted compared to what those were in the past. Please relabel the slots on your side as this will stay like this at least until next reboot.

I'm leaving this open for now as the two emails stuff remains unexplained.

kelson42 commented 4 years ago

I'd like to remind you that the slot assignation is absolutely not guarantee across reboots…

@rgaudin Do we have a ticket for this? This is really error prone. We should think about a solution to this problem IMO.

rgaudin commented 4 years ago

I'd like to remind you that the slot assignation is absolutely not guarantee across reboots…

@rgaudin Do we have a ticket for this? This is really error prone. We should think about a solution to this problem IMO.

I think it's documented. We discussed this when implementing : it's not possible to identify those USB devices (car readers) as nothing distinguishes them (same serial number). Usb fd order based on physical port is not guaranteed neither (linux kernel)

Popolechien commented 4 years ago

@rgaudin Ok thanks for the clarification. In an interesting plot twist, I just received a confirmation email that the task on slot A was successfully completed and ready to ship (and it looks like the card was, in fact, successfully created, I just tested it) o_0

kelson42 commented 4 years ago

@rgaudin We should open a ticket just to discuss this. I remember the discussion about it but I believe we should have a trace and ultimatively find a solution to that problem (maybe the solution is changing the HW or maybe using one or two slots which have different serials...).

kelson42 commented 4 years ago

I don't believe we neet this ticket anymore