mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[GH-ISSUE #1269] Bug: print causes the io error 9: Bad file descriptor when exporting static html #781
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#781
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 @sasasqt on GitHub (Nov 10, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1269
Describe the bug
these commands
throw an error
I changed
print(output)toand the problem was resolved. i guess
import sys; sys.stdout = open('stdout.txt', 'w')would also work.i suspected that the stdout pipe got filled up causing the error and i can not reliably reproduce this error
std flush before print also seems to mitigate this problem
Env:
my archivebox is on a low budget vps, and the archive folder is actually remote mounted google drive folder.
Steps to reproduce
Screenshots or log output
ArchiveBox version
@sasasqt commented on GitHub (Nov 10, 2023):
btw how to specify the latest snapshot first in
--sortwhen outputing static html?--sort=timestampdoes the opposite@pirate commented on GitHub (Nov 14, 2023):
I need the output of
archivebox versionto help, please edit your post and add it.use
--sort=-timestamp