mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[GH-ISSUE #1107] Bug: Internal Server Error: /admin/core/snapshot/ – KeyError: 'title_str' occurs when portions of URL are longer than your filesystem allows #2205
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#2205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bitjson on GitHub (Feb 25, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1107
Describe the bug
It seems like I've run into the same issue from https://github.com/ArchiveBox/ArchiveBox/issues/617,
/admin/core/snapshot/renders aServer Error (500).The error persists when I restart the server, but the error resolves if I move the offending files out of the archive (a
.htmland a.origfile).Steps to reproduce
I added a URL with depth=1, and it also archived
https://ide.bitauth.com/import-template/eJw1j29rgzAQxr-KhL20GtNajYjg2kFfjK3D7dU6JCYXdMw_mFgGxe--RNcXx9397rmHuxt6ULyGlqEE1VoPKvH9qtFs0rXH-9Zfh8q3ADrdcKabvttoaIcfpmFzxd4q8b5V3yEXCVB8bAarMpYGdKwFUx2KBb9MrfMOSpuBtdMNKJTcZhetW7axJdO8LgcmbPtvUKzUORt6lxucBiTKnDTInNdzmR-Pl87k4pSTcH_pUvwbh5hWcUC2GAdUECZohG3IiAZCVoLHnMlwJ0Me0p3kYksiDpJKAEHwngfZYvj09pE_o9neOQ1DP2owp32ix8OpJJjgEofoy0VXGNXyN57_ADMdb0Q=Screenshots or log output
ArchiveBox version
@pirate commented on GitHub (Feb 25, 2023):
Sorry no good solution for this at the moment. Filename lengths are enforced by your filesystem and are out of the control of ArchiveBox. It's a fundamental limit of using the filesystem to store URLs for the wget downloads (only affects the wget extractor through, all the other methods are fine).
There are filesystems that let you use longer names IIRC, but that's probably too much to ask for you to switch 😉
We could add error handling for this in the backend just so it doesn't throw a 500, but we're always going to have issues with these files and the nicer error doesn't really change the fact that your FS cant handle writing and reading path fragments beyond the max length limit.
@berezovskyi commented on GitHub (May 27, 2023):
For anyone wondering how to fix their system: