Files above about 5kb fail to load in tramp mode, with the error:
tramp-file-name-handler: Invalid base64 data
Loading smaller files works fine:
Tramp: Inserting ‘/scp:server:small_file’...
Tramp: Encoding remote file ‘/scp:server:small_file’ with ‘base64 <%s’...done
Tramp: Decoding local file ‘/tmp/tramp.13491uQF.py’ with ‘base64-decode-region’...done
Tramp: Inserting ‘/scp:server:small_file’...done
But with larger files I get this:
Tramp: Inserting ‘/scp:server:larger_file’...
Tramp: Encoding remote file ‘/scp:server:larger_file’ with ‘(gzip <%s | base64)’...done
Tramp: Decoding local file ‘/tmp/tramp.13491iyp.py’ with ‘(lambda (beg end) (base64-decode-region beg end) (let ((coding-system-for-write (quote binary)) (coding-system-for-read (quote binary)) (default-directory (tramp-compat-temporary-file-directory))) (apply (quote tramp-call-process-region) [scp nil kronos larger_file nil] (point-min) (point-max) (car (split-string gzip -d)) t t nil (cdr (split-string gzip -d)))))’...failed
Tramp: Inserting ‘/scp:server:larger_file’...failed
tramp-file-name-handler: Invalid base64 data
I've checked the gzip command on the remote server, it seems to be working. Can I get tramp to keep the intermediate files around so I can inspect them? How else can I debug this?