mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-27 10:06:00 +03:00
[GH-ISSUE #1588] Support: Need to add -T argument when piping files into docker compose run ... #3965
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#3965
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 @comatory on GitHub (Nov 9, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1588
Originally assigned to: @pirate on GitHub.
Provide a screenshot and describe the bug
I am following these instructions to import Pinboard JSON but it fails with error:
I've also tried running this command:
I get:
Nothing is archived.
Steps to reproduce
Logs or errors
ArchiveBox Version
How did you install the version of ArchiveBox you are using?
Docker (or other container system like podman/LXC/Kubernetes or TrueNAS/Cloudron/YunoHost/etc.)
What operating system are you running on?
Linux (Ubuntu/Debian/Arch/Alpine/etc.)
What type of drive are you using to store your ArchiveBox data?
data/is on a local SSD or NVMe drivedata/is on a spinning hard drive or external USB drivedata/is on a network mount (e.g. NFS/SMB/CIFS/etc.)data/is on a FUSE mount (e.g. SSHFS/RClone/S3/B2/OneDrive, etc.)Docker Compose Configuration
ArchiveBox Configuration
@pirate commented on GitHub (Nov 12, 2024):
It's a common gotcha with Docker Compose. When piping anything into
docker compose run ...you have to add-Tlike so:docker compose run -T archivebox add < some_file.txtI updated the Quickstart docs you linked to include it.
@comatory commented on GitHub (Nov 12, 2024):
@pirate Thanks a lot, not a docker expert so that is definitely helpful. However, it still won't ingest the links.
I tried two approaches, the first one:
1. docker compose run
I
catthe*-import.txtfile and I see the file is not empty. It seems like it's not a valid JSON though because the format is:(each link is
{}object). I don't think JSON files can contain just array, they usually need to be enclosed with{}, so not sure if that can be the issue.2. running archivebox add inside the container
First I enter the running container:
docker compose exec -it --user=archivebox archivebox /bin/bashI ented
data/folder and then I try to run the command in there:I end up with same output:
Do you think the format of the pinboard archive can be the issue?
By the way, this is not a dealbreaker to me, I can just transform the file into a list of URLs but I wanted to keep the tags and bring them over to my archivebox instance.
@pirate commented on GitHub (Nov 12, 2024):
I recommend using the Pinboard RSS XML or Netscape format export instead of JSON https://pinboard.in/howto/#export, we have a dedicated parser for it:
@comatory commented on GitHub (Nov 12, 2024):
Interesting, the
.xmlnetted me the same results but HTML export seems to work.