Closed sbonaime closed 2 weeks ago
I have the same error if I remove the config-default.json file. So my problem is that I don't know how to give to singularity the config-default.json path
If I bind git/nodeODM to /var/www , I have another error :
singularity run --compat --writable-tmpfs -B $PWD:/var/www node
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module 'minimist'
Require stack:
- /var/www/config.js
- /var/www/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object.<anonymous> (/var/www/config.js:21:12)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/var/www/config.js', '/var/www/index.js' ]
}
I found a solution I don't understand but it is working ! I just made a shell connect to the node image
singularity shell --bind $PWD:/var/www nodeodm_latest.sif
Singularity> cd /var/www
npm install --production
exit
and then I am able to run it !
singularity run --bind $PWD:/var/www nodeodm_latest.sif
I will make another tutorial for clusterODM , NodeODM later, HPC and singularity
On an HPC system I want to start on nodeODM with singularity in a start.slurm file
I run this script with
and here is the log
I did not modify the config-default.json is
I got the nodeodm and clusterodm with singularity pull --force --disable-cache docker://opendronemap/nodeodm:latest and singularity pull --force --disable-cache docker://opendronemap/cluster:latest I then rename nodeodm to node I think it is a different problem as #33