Comment 1 for bug 2061756

Revision history for this message
Olivier Gayot (ogayot) wrote : Re: HTTP Error 409 (Conflict) when attempting to refresh

In all the reports, there is a duplicate call to POST /refresh, which is likely what causes the second snapd call to return 409:

2024-03-17 13:38:50,609 DEBUG urllib3.connectionpool:452 http://localhost:None "POST /v2/snaps/ubuntu-desktop-installer HTTP/1.1" 202 81
2024-03-17 13:38:50,612 DEBUG root:30 finish: subiquity/Refresh/POST/start_update: SUCCESS: change id: 4
2024-03-17 13:38:50,613 DEBUG root:30 finish: subiquity/Refresh/POST: SUCCESS: 200 "4"
2024-03-17 13:38:50,619 DEBUG root:30 start: subiquity/Refresh/progress_GET:
2024-03-17 13:38:50,737 DEBUG urllib3.connectionpool:452 http://localhost:None "GET /v2/changes/4 HTTP/1.1" 200 None
2024-03-17 13:38:50,759 DEBUG root:30 finish: subiquity/Refresh/progress_GET: SUCCESS: 200 {"id": "4", "kind": "refresh-snap", "summary": "Refresh \"ubuntu-desktop-inst...
2024-03-17 13:38:51,766 DEBUG root:30 start: subiquity/Refresh/progress_GET:
2024-03-17 13:38:51,782 DEBUG urllib3.connectionpool:452 http://localhost:None "POST /v2/snaps/ubuntu-desktop-installer HTTP/1.1" 409 259
2024-03-17 13:38:51,785 ERROR root:30 finish: subiquity/Refresh/POST/start_update: FAIL: 409 Client Error: Conflict for url: http+unix://%2Frun%2Fsnapd.socket/v2/snaps/ubuntu-desktop-installer