Repository navigation
vm-update: maszyna na szablon z aplikacji; alarm zawieszonej wysyłki - #36
Merged
Merged
Conversation
… hanging upload Lima embeds the template's files into ~/.lima/<machine>/lima.yaml when the machine is created and boots from that copy, so a newer template never reached an existing machine (the template's comment said otherwise). vm-update replaces the copy (keeping the old one next to it) and restarts twice: the first boot rewrites the units, the second runs them. It refuses during a backup, on a machine without vm.env, and when the template would change the disk, CPU or memory. vm-status says when the machine's template is older than the app's. The steps moved the live cmsmb on 27.10.2026. A cut network left eight uploads "in progress" for 47 min with no error line. Bands in progress and none uploaded for 15 min is now reported by vm-status and backup-health (upload-stalled). limactl start waits 50 min, as vm-setup does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AU1MhxJW1e9oTB2XvjX8WT
…" 30 min Tried on a throwaway machine on 28.10.2026: with the network dropped mid-upload the alarm came after 16 min, and the upload resumed by itself 80 s after the network was back - the message says so, restart only as the fallback. The same template's first boot took 1 min that morning, 30 min the day before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AU1MhxJW1e9oTB2XvjX8WT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Co
cloudmachine-agent vm-update— Lima osadza pliki szablonu w~/.lima/<maszyna>/lima.yamlprzy tworzeniu i startuje z tej kopii, więc nowy szablon z wydania nigdy nie trafiał do istniejącej maszyny (komentarz wcmsmb.yamltwierdził inaczej - poprawiony).vm-update: odmawia w trakcie kopii TM, bezvm.env, i gdy szablon zmienia dysk/CPU/pamięć/typ VM; podmienia kopię (stara zostaje jakolima.yaml.before-<data>), dwa restarty (pierwszy przepisuje jednostki, drugi je uruchamia), sprawdza usługi. Te same kroki przeniosły żywącmsmb27.10.vm-status:Template: this app's / OLDER than this app's - run: cloudmachine-agent vm-update.vm-status(kod 1) ibackup-health(upload-stalled). Log bez żadnej wysyłki nie alarmuje (nowa maszyna).VMLayout.start:limactl start --timeout 50mjak w vm-setup. vm/README: sekcja „Updating the machine”, pierwszy rozruch „do ~30 min”.Testy
swift test: 309 zielonych,swift-format lint --strictczysto.cmtestz szablonu wydania 1.3.17 (pierwszy rozruch tym razem 1 min):vm-status= OLDER →vm-update30 s, usługi aktywne, kopialima.yaml.before-*,Template: this app's; drugie wywołanie = „already runs”.iptables DROPna 443 → po 16 minvm-statusHANGS (rc 1),backup-health„The upload to Google Drive hangs”; po zdjęciu blokady wysyłka wróciła sama w 80 s, alarm zgasł.cmsmb(tylko odczyt):Template: OLDER(zmieniony komentarz szablonu) - po wdrożeniu do przeniesieniavm-updatew przerwie między kopiami.🤖 Generated with Claude Code
https://claude.ai/code/session_01AU1MhxJW1e9oTB2XvjX8WT