NodeOS / NodeOS

Lightweight operating system using Node.js as userspace

Home Page:http://node-os.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

genext2fs: couldn't allocate a block (no free space)

luii opened this issue · comments

Successfully built Layer-3 image 'usersfs'
npm WARN The package bin-man is included as both a dev and production dependency.
npm WARN The package bin-nsh is included as both a dev and production dependency.
npm WARN The package bin-pwd is included as both a dev and production dependency.
npm WARN The package davius is included as both a dev and production dependency.
npm WARN The package dhcpjs is included as both a dev and production dependency.
npm WARN The package loadtest is included as both a dev and production dependency.
npm WARN The package logon is included as both a dev and production dependency.
npm WARN The package node-wget is included as both a dev and production dependency.
npm WARN The package nodeos-cross-toolchain is included as both a dev and production dependency.
npm WARN The package nodeos-nodegit is included as both a dev and production dependency.
npm WARN The package nodeos-nodejs is included as both a dev and production dependency.
npm WARN The package nodeos-reverse-proxy is included as both a dev and production dependency.
npm WARN The package npm is included as both a dev and production dependency.
npm WARN The package ntp-client is included as both a dev and production dependency.
npm WARN The package palmtree is included as both a dev and production dependency.
npm WARN The package performance is included as both a dev and production dependency.
npm WARN The package pstree is included as both a dev and production dependency.
npm WARN The package slap is included as both a dev and production dependency.

added 5 packages, removed 48 packages and updated 10 packages in 103.939s
genext2fs: couldn't allocate a block (no free space)

/home/philipp/Dokumente/git/NodeOS/node_modules/tar2ext/server.js:25
  if(err) throw err
          ^
1
Error building '/home/philipp/Dokumente/git/NodeOS/out/x86_64/pc/qemu'
npm ERR! code ELIFECYCLE
npm ERR! errno 72
npm ERR! NodeOS@1.0.0-RC3 build: `scripts/build`
npm ERR! Exit status 72
npm ERR!
npm ERR! Failed at the NodeOS@1.0.0-RC3 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/philipp/.npm/_logs/2018-01-04T19_41_31_296Z-debug.log

Im getting this error on npm run build because i've added nodeos-nodegitto my usersfs and the folder is about 63,5MB big so i think its just too big.
@piranna do you have a way to adjust the usersfs to a more capable size?

Script has size hardcoded, anyway for usersfs it should automatically calculate the correct size...

that's strange... then why does it says this?

The problem is happening at https://github.com/piranna/tar2ext/blob/494a2ad4aaa8d83da6751b3edeb9932d75bba27a/server.js#L25. I can only think about someway files size is being incorrectly calculated, but if you say the folder is 63.5MB, maybe it's too much close to the limit to also host the FAT table and calculated size should be increased...

Maybe could it be possible to estimate in advance the size of the FAT table and add it to the disksize?

ok i looked into the nocona.tar.gz and saw that the nodeos-nodegit folder is ~550MB big, because i've the nodejs and cross toolchain actually in the nodeos user folder ._.

Resolved, it was actually the thing i said above removed and now it works!