4 ms·
Argh! This is a bug. Has been fixed in master (https://github.com/pigshell/pigshell/commit/f402ef445977015afd0f6a9ea2b10e9facfa6a9e https://github.com/pigshell/
by tubelite 12y ago
Argh! This is a bug. Has been fixed in master (https://github.com/pigshell/pigshell/commit/f402ef445977015afd0f6a9ea2b10e9facfa6a9e https://github.com/pigshell/pigshell/commit/f402ef445977015a...)
As a workaround in 0.6.2, please use a trailing slash in the name of the mount point. ( /dir/ rather than /dir)
Alternately, use http://pigshell.com/v/0.6.3-pre4/ http://pigshell.com/v/0.6.3-pre4/ which would have the fix.
- progman 12y agoUnfortunately these suggestions don't work also. Could the problem be in psty.py? Or is my Python 2.7 obsolete? There is a strange error message in psty: EXCEPT timestamp out of range for platform time_t Traceback (most recent call last): File "psty.py", line 404, in send_head self.send_header("Last-Modified", self.date_time_string(entry["mtime"])) File "/usr/lib/python2.7/BaseHTTPServer.py", line 468, in date_time_string year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp) ValueError: timestamp out of range for platform time_t
- tubelite 12y agoThis is a new bug. I'm guessing it got exposed because you have a 32-bit machine, and I've been testing so far on 64-bit. Edit line 404 of psty.py as follows: - self.send_header("Last-Modified", self.date_time_string(entry["mtime"])) + self.send_header("Last-Modified", self.date_time_string(entry["mtime"] / 1000)) If it still doesn't work, maybe we can continue the conversation on the google groups forum?
- progman 12y agoI have a 64-bit machine but your fix works great :-) Thanks for this, and thanks for sharing your amazing pigshell!