linkding icon indicating copy to clipboard operation
linkding copied to clipboard

Unable to make any HTML snapshots with docker latest-plus - "Check failed: VerifyChecksum(blob)."

Open owldown opened this issue 7 months ago • 1 comments

New installation with docker, using latest-plus. For any url that I try to bookmark (using the web ui, not the browser extension which I've not tried), I get the following in background_tasks.log :

2025-05-21 23:49:20,004 INFO Executing bookmarks.services.tasks._schedule_html_snapshots_task: 7a2c50c0-08a4-48f5-aa24-1bed7d0765d4
2025-05-21 23:49:20,006 INFO Create HTML snapshot for bookmark. url=https://linkding.link


#
# Fatal error in , line 0
# Check failed: VerifyChecksum(blob).
#
#
#
#FailureMessage Object: 0x7ffc2f53f490
----- Native stack trace -----

 1: 0xd437e1  [node]
 2: 0x218f481 V8_Fatal(char const*, ...) [node]
 3: 0x15906e9  [node]
 4: 0xf1c248 v8::Isolate::Initialize(v8::Isolate*, v8::Isolate::CreateParams const&) [node]
 5: 0xbd7618 node::NewIsolate(v8::Isolate::CreateParams*, uv_loop_s*, node::MultiIsolatePlatform*, node::SnapshotData const*, node::IsolateSettings const&) [node]
 6: 0xd17687 node::NodeMainInstance::NodeMainInstance(node::SnapshotData const*, uv_loop_s*, node::MultiIsolatePlatform*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) [node]
 7: 0xc7eb03 node::Start(int, char**) [node]
 8: 0x7ba607bf724a  [/lib/x86_64-linux-gnu/libc.so.6]
 9: 0x7ba607bf7305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
10: 0xbd182e _start [node]
2025-05-21 23:49:20,178 ERROR Failed to HTML snapshot for bookmark. url=https://linkding.link
Traceback (most recent call last):
  File "/etc/linkding/bookmarks/services/tasks.py", line 304, in _create_html_snapshot_task
    assets.create_snapshot(asset)
  File "/etc/linkding/bookmarks/services/assets.py", line 60, in create_snapshot
    raise error
  File "/etc/linkding/bookmarks/services/assets.py", line 37, in create_snapshot
    singlefile.create_snapshot(asset.bookmark.url, temp_filepath)
  File "/etc/linkding/bookmarks/services/singlefile.py", line 32, in create_snapshot
    raise SingleFileError("Failed to create snapshot")
bookmarks.services.singlefile.SingleFileError: Failed to create snapshot
2025-05-21 23:49:20,179 INFO bookmarks.services.tasks._schedule_html_snapshots_task: 7a2c50c0-08a4-48f5-aa24-1bed7d0765d4 executed in 0.174s

Viewing the bookmark shows no files, with the error message HTML snapshot from 05/21/2025 (failed)

I copied the .env file but didn't make any changes other than to set up a Superuser, as I'm not using any kind of auth_proxy.

owldown avatar May 22 '25 00:05 owldown

I run in a similar issue. Also trying to create HTML snapshots getting the following output as one example:

2025-06-10 08:03:21,748 INFO Enqueueing periodic task bookmarks.services.tasks._schedule_html_snapshots_task: ad9774e4-084e-4716-8605-3ad3b1d80340.
2025-06-10 08:03:25,322 INFO Executing bookmarks.services.tasks._schedule_html_snapshots_task: ad9774e4-084e-4716-8605-3ad3b1d80340
2025-06-10 08:03:25,336 INFO Create HTML snapshot for bookmark. url=https://mattmulvaney.hashnode.dev/custom-domain-for-your-oracle-23c-free-apex-ords-all-in-one-docker-container-with-nginx-proxy-manager
2025-06-10 08:04:22,050 INFO Enqueueing periodic task bookmarks.services.tasks._schedule_html_snapshots_task: e02a6f11-3504-4c2a-a5b8-44f083e34948.
2025-06-10 08:04:22,740 INFO Executing bookmarks.services.tasks._schedule_html_snapshots_task: e02a6f11-3504-4c2a-a5b8-44f083e34948
2025-06-10 08:04:23,045 WARNING Task e02a6f11-3504-4c2a-a5b8-44f083e34948 not run, unable to acquire lock schedule-html-snapshots-lock.
2025-06-10 08:05:23,199 INFO Enqueueing periodic task bookmarks.services.tasks._schedule_html_snapshots_task: 89494713-b61b-467d-babf-56e2844b4f86.
2025-06-10 08:05:25,436 ERROR Timeout expired while creating snapshot. Terminating process...
2025-06-10 08:05:28,944 INFO Executing bookmarks.services.tasks._schedule_html_snapshots_task: 89494713-b61b-467d-babf-56e2844b4f86
2025-06-10 08:05:29,049 WARNING Task 89494713-b61b-467d-babf-56e2844b4f86 not run, unable to acquire lock schedule-html-snapshots-lock.
Process exited with code null
file:///usr/lib/node_modules/single-file-cli/lib/deno-polyfill.js:86
						reject(new Error(`Process exited with code ${code}`));
						       ^

Error: Process exited with code null
    at ChildProcess.<anonymous> (file:///usr/lib/node_modules/single-file-cli/lib/deno-polyfill.js:86:14)
    at ChildProcess.emit (node:events:524:28)
    at ChildProcess._handle.onexit (node:internal/child_process:293:12)

Node.js v20.19.2
2025-06-10 08:05:30,911 ERROR Failed to HTML snapshot for bookmark. url=https://mattmulvaney.hashnode.dev/custom-domain-for-your-oracle-23c-free-apex-ords-all-in-one-docker-container-with-nginx-proxy-manager
Traceback (most recent call last):
  File "/etc/linkding/bookmarks/services/singlefile.py", line 28, in create_snapshot
    process.wait(timeout=settings.LD_SINGLEFILE_TIMEOUT_SEC)
  File "/usr/local/lib/python3.12/subprocess.py", line 1266, in wait
    return self._wait(timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/subprocess.py", line 2053, in _wait
    raise TimeoutExpired(self.args, timeout)
subprocess.TimeoutExpired: Command '['single-file', '--browser-arg="--headless=new"', '--browser-arg="--user-data-dir=./chromium-profile"', '--browser-arg="--no-sandbox"', '--browser-arg="--load-extension=uBOLite.chromium.mv3"', 'https://mattmulvaney.hashnode.dev/custom-domain-for-your-oracle-23c-free-apex-ords-all-in-one-docker-container-with-nginx-proxy-manager', '/etc/linkding/data/assets/snapshot_2025-06-10_080312_https___mattmulvaney.hashnode.dev_custom-domain-for-your-oracle-23c-free-apex-ords-all-in-one-docker-container-with-nginx-proxy-manager.tmp']' timed out after 120.0 seconds

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/etc/linkding/bookmarks/services/tasks.py", line 304, in _create_html_snapshot_task
    assets.create_snapshot(asset)
  File "/etc/linkding/bookmarks/services/assets.py", line 60, in create_snapshot
    raise error
  File "/etc/linkding/bookmarks/services/assets.py", line 37, in create_snapshot
    singlefile.create_snapshot(asset.bookmark.url, temp_filepath)
  File "/etc/linkding/bookmarks/services/singlefile.py", line 41, in create_snapshot
    raise SingleFileError("Timeout expired while creating snapshot")
bookmarks.services.singlefile.SingleFileError: Timeout expired while creating snapshot
2025-06-10 08:05:30,920 INFO bookmarks.services.tasks._schedule_html_snapshots_task: ad9774e4-084e-4716-8605-3ad3b1d80340 executed in 125.597s
2025-06-10 08:06:21,749 INFO Enqueueing periodic task bookmarks.services.tasks._schedule_html_snapshots_task: 3a149c5c-2bb1-4888-aecf-d1cd7649f776.
2025-06-10 08:06:22,862 INFO Executing bookmarks.services.tasks._schedule_html_snapshots_task: 3a149c5c-2bb1-4888-aecf-d1cd7649f776
2025-06-10 08:06:22,869 INFO bookmarks.services.tasks._schedule_html_snapshots_task: 3a149c5c-2bb1-4888-aecf-d1cd7649f776 executed in 0.007s
2025-06-10 08:07:21,749 INFO Enqueueing periodic task bookmarks.services.tasks._schedule_html_snapshots_task: 19d546ab-c623-40df-a6f0-e1fe9432296e.
2025-06-10 08:07:24,637 INFO Executing bookmarks.services.tasks._schedule_html_snapshots_task: 19d546ab-c623-40df-a6f0-e1fe9432296e
2025-06-10 08:07:24,639 INFO bookmarks.services.tasks._schedule_html_snapshots_task: 19d546ab-c623-40df-a6f0-e1fe9432296e executed in 0.002s
2025-06-10 08:08:21,748 INFO Enqueueing periodic task bookmarks.services.tasks._schedule_html_snapshots_task: 09ef48f7-97c5-4757-a249-767e1a03e6fd.
2025-06-10 08:08:26,587 INFO Executing bookmarks.services.tasks._schedule_html_snapshots_task: 09ef48f7-97c5-4757-a249-767e1a03e6fd
2025-06-10 08:08:26,589 INFO bookmarks.services.tasks._schedule_html_snapshots_task: 09ef48f7-97c5-4757-a249-767e1a03e6fd executed in 0.002s

cc13com avatar Jun 10 '25 08:06 cc13com