On Tue, 15 Mar 2005 02:12:13 +0200, Ignas Mikalajunas ignas.mikalajunas@gmail.com wrote:
Just started newest tbnl 0.4 and uploaded 180mb file. Yet the name of the file is "[en] Shrek 3D [2004].avi" so i am geting "http://localhost/tbnl/test/files/%5Ben%5D+Shrek+3D+%5B2004%5D.avi?path=%2Ftm..." as a download link which leads to an error when trying to download it ...
Error in function LISP::FD-STREAM-READ-N-BYTES: Error reading #<Stream for file "/tmp/tbnl/test/tbnl-test-1">: Bad address
though the file in that place exists ...
The backtrace is attached in a file.
You didn't say which Lisp and OS you were using but I guess it's CMUCL, right?
I don't think the name of the file matters, I guess the file is simply too big to be served by TBNL. See this message:
http://common-lisp.net/pipermail/tbnl-devel/2005-March/000221.html
If you think this is not the cause for the error try this (with or without TBNL loaded):
(with-open-file (file "/path/to/tbnl-test-1" :direction :input :element-type '(unsigned-byte 8)) (let* ((len (file-length file)) (buf (make-array len :element-type '(unsigned-byte 8)))) (read-sequence buf file) 'OK))
Does that work? Can you check (with diff) whether tbnl-test-1 and the file you uploaded are identical?
Cheers, Edi.