ddvk / remarkable-update

force a full factory reset / re-update / upgrade
MIT License
172 stars 18 forks source link

Error Updating #6

Open pr0fsmith opened 3 years ago

pr0fsmith commented 3 years ago

I get an error when attempting to downgrade from 2.7.1.53 to 2.7.0.51 on the rM2. The following is the output on the rM2. Any ideas why it's giving an error?

root@reMarkable:/# journalctl -u update-engine -f -- Logs begin at Tue 2021-06-01 15:22:06 UTC. -- Jun 02 19:48:59 reMarkable update_engine[889]: I20210602 19:48:59.361387 889 omaha_request_action.cc:584] Payload size = 67056686 bytes Jun 02 19:48:59 reMarkable update_engine[889]: I20210602 19:48:59.361629 889 omaha_request_action.cc:610] Found 1 action(s). Processing the postinstall action. Jun 02 19:48:59 reMarkable update_engine[889]: I20210602 19:48:59.361757 889 payload_state.cc:208] Payload backoff logic is disabled. Can proceed with the download Jun 02 19:48:59 reMarkable update_engine[889]: I20210602 19:48:59.361888 889 action_processor.cc:99] ActionProcessor::ActionComplete: finished OmahaRequestAction, starting OmahaResponseHandlerAction Jun 02 19:48:59 reMarkable update_engine[889]: I20210602 19:48:59.361940 889 omaha_response_handler_action.cc:45] Using Url 0 as the download url this time Jun 02 19:48:59 reMarkable update_engine[889]: E20210602 19:48:59.366096 889 payload_processor.cc:540] prefs->GetInt64(kPrefsUpdateStateNextOperation, &next_operation) && next_operation != kUpdateStateOperationInvalid && next_operation > 0 failed. Jun 02 19:48:59 reMarkable update_engine[889]: I20210602 19:48:59.373196 889 omaha_response_handler_action.cc:94] Using this install plan: Jun 02 19:48:59 reMarkable update_engine[889]: I20210602 19:48:59.373294 889 install_plan.cc:57] InstallPlan: , new_update, url: http://evon-ThinkPad-X1-Carbon:8000/updates/2.7.0.51_reMarkable2.signed, payload size: 67056686, payload hash: +fGmveJ5GNtEd5iBQyseN+eMm2yl7grdRrVitKJnx40=, partition_path: /dev/mmcblk2p2, kernel_path: , postinst_args: NEW_VERSION=2.7.0.51, old_partition_path: /dev/mmcblk2p3, old_kernel_path: Jun 02 19:48:59 reMarkable update_engine[889]: I20210602 19:48:59.373908 889 action_processor.cc:99] ActionProcessor::ActionComplete: finished OmahaResponseHandlerAction, starting FilesystemCopierAction Jun 02 19:48:59 reMarkable update_engine[889]: I20210602 19:48:59.374161 889 filesystem_copier_action.cc:335] Filesystem size: 283115520 Jun 02 19:49:14 reMarkable update_engine[889]: I20210602 19:49:14.911382 889 filesystem_copier_action.cc:310] Hash: EaNYv4cIcEIATctXVn78Pr9CO2u10s3dIVC2uiwAeNc= Jun 02 19:49:14 reMarkable update_engine[889]: I20210602 19:49:14.911690 889 action_processor.cc:99] ActionProcessor::ActionComplete: finished FilesystemCopierAction, starting KernelCopierAction Jun 02 19:49:14 reMarkable update_engine[889]: I20210602 19:49:14.911749 889 action_processor.cc:99] ActionProcessor::ActionComplete: finished KernelCopierAction, starting OmahaRequestAction Jun 02 19:49:14 reMarkable update_engine[889]: I20210602 19:49:14.912370 889 omaha_request_action.cc:280] Posting an Omaha request to http://192.168.1.30:8000 Jun 02 19:49:14 reMarkable update_engine[889]: I20210602 19:49:14.912427 889 omaha_request_action.cc:281] Request: <?xml version="1.0" encoding="UTF-8"?> Jun 02 19:49:14 reMarkable update_engine[889]: <request protocol="3.0" version="2.7.1.53" requestid="{14a59703-62e1-4f5f-883a-606baaecec88}" sessionid="{b62c0a1f-0a9e-4087-8360-86225a8a8127}" updaterversion="0.4.2" installsource="ondemandupdate" ismachine="1"> Jun 02 19:49:14 reMarkable update_engine[889]: <os version="codex 3.1.3" platform="reMarkable2" sp="2.7.1.53_armv7l" arch="armv7l"></os> Jun 02 19:49:14 reMarkable update_engine[889]: <app appid="{98DA7DF2-4E3E-4744-9DE6-EC931886ABAB}" version="2.7.1.53" track="Prod" ap="Prod" bootid="{83a7d5b8-ced7-4659-b677-ba297150e94c}" oem="RM110-109-71290" oemversion="3.1.3" alephversion="2.7.1.53" machineid="ac4e502f95d146a4beefee8ce044e240" lang="en-US" board="" hardware_class="" delta_okay="false" nextversion="2.7.0.51" brand="" client="" > Jun 02 19:49:14 reMarkable update_engine[889]: <event eventtype="13" eventresult="1"></event> Jun 02 19:49:14 reMarkable update_engine[889]: </app> Jun 02 19:49:14 reMarkable update_engine[889]: </request> Jun 02 19:49:14 reMarkable update_engine[889]: I20210602 19:49:14.912462 889 libcurl_http_fetcher.cc:50] Starting/Resuming transfer Jun 02 19:49:14 reMarkable update_engine[889]: I20210602 19:49:14.912626 889 libcurl_http_fetcher.cc:163] Setting up curl options for HTTP Jun 02 19:49:14 reMarkable update_engine[889]: I20210602 19:49:14.913126 889 libcurl_http_fetcher.cc:466] Setting up timeout source: 1 seconds. Jun 02 19:49:15 reMarkable update_engine[889]: E20210602 19:49:15.432080 889 libcurl_http_fetcher.cc:264] Unable to get http response code: Empty reply from server Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.432796 889 libcurl_http_fetcher.cc:295] Transfer resulted in an error (0), 0 bytes downloaded Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.433135 889 libcurl_http_fetcher.cc:297] Error buffer: Empty reply from server Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.433377 889 omaha_request_action.cc:670] Omaha request response: Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.433600 889 action_processor.cc:99] ActionProcessor::ActionComplete: finished OmahaRequestAction, starting DownloadAction Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.433827 889 install_plan.cc:57] InstallPlan: , new_update, url: http://evon-ThinkPad-X1-Carbon:8000/updates/2.7.0.51_reMarkable2.signed, payload size: 67056686, payload hash: +fGmveJ5GNtEd5iBQyseN+eMm2yl7grdRrVitKJnx40=, partition_path: /dev/mmcblk2p2, kernel_path: , postinst_args: NEW_VERSION=2.7.0.51, old_partition_path: /dev/mmcblk2p3, old_kernel_path: Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.434185 889 update_attempter.cc:443] Download status: active Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.434617 889 multi_range_http_fetcher.cc:34] starting first transfer Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.435056 889 multi_range_http_fetcher.cc:68] starting transfer of range 0+? Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.435408 889 libcurl_http_fetcher.cc:50] Starting/Resuming transfer Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.435822 889 libcurl_http_fetcher.cc:163] Setting up curl options for HTTP Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.436558 889 libcurl_http_fetcher.cc:466] Setting up timeout source: 1 seconds. Jun 02 19:49:15 reMarkable update_engine[889]: E20210602 19:49:15.451444 889 libcurl_http_fetcher.cc:264] Unable to get http response code: Could not resolve host: evon-ThinkPad-X1-Carbon Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.451771 889 libcurl_http_fetcher.cc:295] Transfer resulted in an error (0), 0 bytes downloaded Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.451831 889 libcurl_http_fetcher.cc:297] Error buffer: Could not resolve host: evon-ThinkPad-X1-Carbon Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.451865 889 multi_range_http_fetcher.cc:185] Received transfer complete. Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.451895 889 multi_range_http_fetcher.cc:130] TransferEnded w/ code 0 Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.451925 889 multi_range_http_fetcher.cc:173] Done w/ all transfers Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.454236 889 update_attempter.cc:443] Download status: inactive Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.454335 889 action_processor.cc:81] ActionProcessor::ActionComplete: DownloadAction action failed. Aborting processing. Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.454376 889 action_processor.cc:87] ActionProcessor::ActionComplete: finished last action of type DownloadAction Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.454407 889 update_attempter.cc:313] Processing Done. Jun 02 19:49:15 reMarkable update_engine[889]: E20210602 19:49:15.454546 889 update_attempter.cc:685] Update failed. Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.454591 889 payload_state.cc:104] Updating payload state for error code: 9 (kActionCodeDownloadTransferError) Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.454628 889 payload_state.cc:287] Incrementing the URL failure count Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.454658 889 payload_state.cc:454] Current URL (Url0)'s Failure Count = 3 Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.455826 889 action_processor.cc:41] ActionProcessor::StartProcessing: OmahaRequestAction Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.456686 889 omaha_request_action.cc:280] Posting an Omaha request to http://192.168.1.30:8000 Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.456743 889 omaha_request_action.cc:281] Request: <?xml version="1.0" encoding="UTF-8"?> Jun 02 19:49:15 reMarkable update_engine[889]: <request protocol="3.0" version="2.7.1.53" requestid="{2afbc372-6cf1-44cc-a0b1-562fb09c8f6d}" sessionid="{b62c0a1f-0a9e-4087-8360-86225a8a8127}" updaterversion="0.4.2" installsource="ondemandupdate" ismachine="1"> Jun 02 19:49:15 reMarkable update_engine[889]: <os version="codex 3.1.3" platform="reMarkable2" sp="2.7.1.53_armv7l" arch="armv7l"></os> Jun 02 19:49:15 reMarkable update_engine[889]: <app appid="{98DA7DF2-4E3E-4744-9DE6-EC931886ABAB}" version="2.7.1.53" track="Prod" ap="Prod" bootid="{83a7d5b8-ced7-4659-b677-ba297150e94c}" oem="RM110-109-71290" oemversion="3.1.3" alephversion="2.7.1.53" machineid="ac4e502f95d146a4beefee8ce044e240" lang="en-US" board="" hardware_class="" delta_okay="false" nextversion="2.7.0.51" brand="" client="" > Jun 02 19:49:15 reMarkable update_engine[889]: <event eventtype="3" eventresult="0" errorcode="268435465"></event> Jun 02 19:49:15 reMarkable update_engine[889]: </app> Jun 02 19:49:15 reMarkable update_engine[889]: </request> Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.456782 889 libcurl_http_fetcher.cc:50] Starting/Resuming transfer Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.456950 889 libcurl_http_fetcher.cc:163] Setting up curl options for HTTP Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.457592 889 libcurl_http_fetcher.cc:466] Setting up timeout source: 1 seconds. Jun 02 19:49:15 reMarkable update_engine[889]: E20210602 19:49:15.468027 889 libcurl_http_fetcher.cc:264] Unable to get http response code: Empty reply from server Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.468266 889 libcurl_http_fetcher.cc:295] Transfer resulted in an error (0), 0 bytes downloaded Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.468322 889 libcurl_http_fetcher.cc:297] Error buffer: Empty reply from server Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.468349 889 omaha_request_action.cc:670] Omaha request response: Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.468386 889 action_processor.cc:78] ActionProcessor::ActionComplete: finished last action of type OmahaRequestAction Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.468412 889 action_processor.cc:87] ActionProcessor::ActionComplete: finished last action of type OmahaRequestAction Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.468436 889 update_attempter.cc:313] Processing Done. Jun 02 19:49:15 reMarkable update_engine[889]: I20210602 19:49:15.468472 889 update_attempter.cc:317] Error event sent.

ddvk commented 3 years ago

make sure you can resolve and pong envon-thinkpad-carbon-x1 from the rm, if not add the name/ ip to /etc/hosts

pr0fsmith commented 3 years ago

Yes i pinged the host successfully and i see activity on the host when i attempt to update. Do you want the output of the host as well?

Jun. 3, 2021 5:59:28 a.m. ddvk @.***>:

make sure you can resolve and pong envon-thinkpad-carbon-x1 from the rm, if not add the name/ ip to /etc/hosts

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub[https://github.com/ddvk/remarkable-update/issues/6#issuecomment-853747340], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AM5FBGCSAENNTJSL6XXSRLDTQ5G77ANCNFSM457LXI6A]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAA/CAYAAABXXxDfAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAABcSURBVGgF7dABDQAAAMKg909tDwcRKAwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDgZGA+QwABeHisFQAAAABJRU5ErkJggg==###24x24:true###][Tracking image][https://github.com/notifications/beacon/AM5FBGA2GY4DHN32ESUE7NTTQ5G77A5CNFSM457LXI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGLRSNDA.gif]

ddvk commented 3 years ago

sure, paste the host logs.

also in the previous log there is: Could not resolve host: evon-ThinkPad-X1-Carbon

pr0fsmith commented 3 years ago

HOST LOG

https://susepaste.org/93170966

pr0fsmith commented 3 years ago

SOLVED: Adding the host IP to line 46 of serve.py fixed the issue

ddvk commented 3 years ago

sorry, didn't have much time. The fix you did still indicates that the tablet couldnt resolve / use: http://evon-ThinkPad-X1-Carbon:8000/. I could add a param to the script so that the ip could be specifed as well.

pr0fsmith commented 3 years ago

I am willing to test the new script of youd like. It looks like the problem only occurs when it comes time to download the update. Before that point i can see activity on the tablet and on the host which tells me that the host and the tablet are communicating.

Thanks for your help and work on this.

Jun. 7, 2021 3:06:51 a.m. ddvk @.***>:

sorry, didn't have much time. The fix you did still indicates that the tablet couldnt resolve / use: http://evon-ThinkPad-X1-Carbon:8000/. I could add a param to the script so that the ip could be specifed as well.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub[https://github.com/ddvk/remarkable-update/issues/6#issuecomment-855653915], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AM5FBGEBC26DALXKHRCQYJTTRRVYXANCNFSM457LXI6A]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAA/CAYAAABXXxDfAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAABcSURBVGgF7dABDQAAAMKg909tDwcRKAwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDgZGA+QwABeHisFQAAAABJRU5ErkJggg==###24x24:true###][Tracking image][https://github.com/notifications/beacon/AM5FBGCLYBK3RLBYX2M4BG3TRRVYXA5CNFSM457LXI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGMAD4GY.gif]