- Concerning the error I had: it only occurs on the account which owns safe://docs.to-do:
-
See safe://misc.draw2 for the output of the hanging safenetwork-fuse command and the
find
-output. I don’t know how to recreate the error (for another account), so no added value to put it in test-safedrive.sh. This error also occurred with different versions of Npm and Node.js. -
‘
find ~/SAFE/_webMounts/docs.to-do
’ does work. -
I then copied this folder like this:
$ rsync -a ~/SAFE/_webMounts/docs.to-do /tmp
$ cd /tmp/docs.to-do
$ ls -lRt
.:
total 20
drwxr-xr-x 2 draw draw 4096 Nov 22 23:25 js
drwxr-xr-x 2 draw draw 4096 Nov 22 23:25 css
-rw-r–r-- 1 draw draw 3140 Nov 1 17:33 index.html
-rw-r–r-- 1 draw draw 3111 Nov 1 17:33 favicon.png
-rw-r–r-- 1 draw draw 1150 Nov 1 17:33 favicon.ico
./js:
total 276
-rw-r–r-- 1 draw draw 4653 Nov 1 17:38 safe.js
-rw-r–r-- 1 draw draw 264100 Nov 1 17:33 vue.js
-rw-r–r-- 1 draw draw 4848 Nov 1 17:33 app.js
./css:
total 8
-rw-r–r-- 1 draw draw 8096 Nov 1 17:33 index.css
Ps the ‘-a’ arg of rsync stands for ‘archive’, which, among others, means recursive and keeping timestamps of files and directories. I see that the files keep the original timestamps, but the directories not. Is it possible to also keep the original timestamp of the dirs? That would be 2 november in this case.
I did the same for www.to-do. And then uploaded these 2 sites, with the web-hosting-manager to another account → safe://www.te-de and safe://docs.te-de. Under this account ‘find
(or ls
) ~/SAFE/_public/te-de/root-docs
’ does work.
- Concerning Npm/Node.js version combinations, with the n command, I switched between the following 2 combinations:
Npm v6.4.1 and Node.js v11.2.0: doesn’t work (‘nmp install
’ of safenetworkjs gives an error).
Npm v5.6.0 and Node.js v8.11.3: works
I then switched back to npm v6.4.1 (with ‘sudo npm install npm@latest -g
’ ), while keeping the same version of Node.js (v8.11.3), which worked like before.
→ Probably a problem with more recent Node.js versions.
- I tried your
test-safedrive.sh
1 on Alpha 2 (nothing tested with mock) with npm v6.4.1 and node v8.11.3.
I had to restart, because I had to install thetree
cmd. Then, after +400 Account status and 18,5 minutes I got the ‘all tests passed’ . I did see 1 error in the output logging of the script:
./test-safedrive.sh: line 196: /home/draw/SAFE/_public/tests/data1/testing-safedrive/del-dir/foo: No such file or directory