After 6min 24, it fails this time with a 2MB .mp3 file
willie@gagarin:~/.safe/vault$ time safe files put ~/Downloads/B17_KBDL_Edited_for_Time.mp3
[2020-03-06T01:43:16Z ERROR safe] safe-cli error: [Error] NetDataError - Failed to PUT Sequenced Append Only Data: Error(CoreError(Request has timed out - CoreError::RequestTimeout))
real 6m24.710s
user 0m0.535s
sys 0m0.097s
willie@gagarin:~/.safe/vault$ ls -l ~/Downloads/B17_KBDL_Edited_for_Time.mp3
-rw-rw-r-- 1 willie willie 2016170 Oct 3 05:04 /home/willie/Downloads/B17_KBDL_Edited_for_Time.mp3
But a 1Mb file works OK - not quickly but its just a wee baby still
willie@gagarin:~/.safe/vault$ time safe files put ~/Downloads/WP_20170601_14_41_14_Pro.jpg
FilesContainer created at: "safe://hnyynyzc4udp1jeu65kjnw5m8rx7xte798dosq69dozpahm8kog7n7ha1nbnc"
+ /home/willie/Downloads/WP_20170601_14_41_14_Pro.jpg safe://hbwybondwan37j4b4uy8gjhtz5yitiawd6rwaxbw3pkrx7jaobxhfhph9g
real 0m44.005s
user 0m0.236s
sys 0m0.072s
willie@gagarin:~/.safe/vault$ ls -l ~/Downloads/WP_20170601_14_41_14_Pro.jpg
-rw-rw-r-- 1 willie willie 1016218 Jun 2 2017 /home/willie/Downloads/WP_20170601_14_41_14_Pro.jpg
so lets try a 1.5MB file …
willie@gagarin:~/.safe/vault$ time safe files put ~/Downloads/CP-168U.pdf
FilesContainer created at: "safe://hnyynysde4s9dq9ktfpi1ebp1cmgyf8j5a4u7d89zjuxffota1k9wrjii6bnc"
+ /home/willie/Downloads/CP-168U.pdf safe://hbkyjon1bmbzimuug5kgc7zgh68skqzbeb4m6jjf5fpg6padb3oh4jr66b
real 0m37.465s
user 0m0.259s
sys 0m0.045s
Slightly faster for a larger file. Obv the file type matters so lets get sensible and instead of picking something roughly the correct size from ~/Downloads lets Do It Right and copy @maz 's method.
It seems the maximum size it will handle is between 1.5 - 2 Mb.
Or is it?
At least this time it fails faster
willie@gagarin:~/.safe/vault$ dd if=/dev/urandom of=/tmp/rand.dat bs=1k count=1500
1500+0 records in
1500+0 records out
1536000 bytes (1.5 MB, 1.5 MiB) copied, 0.0417652 s, 36.8 MB/s
willie@gagarin:~/.safe/vault$ time safe files put /tmp/rand.dat
[2020-03-06T02:22:25Z ERROR safe] safe-cli error: [Error] NetDataError - Failed to PUT Sequenced Append Only Data: Error(CoreError(Operation forbidden - CoreError::OperationForbidden))
real 0m34.721s
user 0m0.237s
sys 0m0.045s
I tried rand.dat sizes of 1.75MB and 1.625MB, they both timed out around the 6min mark.
Next step will be to set logging to DEBUG and increase rand.dat size until it fails again. I’ll zip up the logs and sent to the devs if it helps.
Mods - should this now move to support?