Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build as tar fills up storage space with the output archive #2915

Open
licaon-kter opened this issue Oct 21, 2020 · 0 comments
Open

Build as tar fills up storage space with the output archive #2915

licaon-kter opened this issue Oct 21, 2020 · 0 comments

Comments

@licaon-kter
Copy link

licaon-kter commented Oct 21, 2020

Debian Buster, RPi1, armv6
MongooseIM version: cd1606b
Erlang/OTP version: Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 10.2.4

Describe the issue.

$ ./rebar3 as prod tar
...
src/just_tls.erl:42: Warning: ssl:ssl_accept/2: deprecated; use ssl:handshake/2 instead

===> Starting relx build process ...
===> Resolving OTP Applications from directories:
          /home/pi/mongooseim/_build/prod/lib
          /usr/lib/erlang/lib
===> Resolved mongooseim-4.0.0
===> Including Erts from /usr/lib/erlang
===> release successfully created!
===> Starting relx build process ...
===> Resolving OTP Applications from directories:
          /home/pi/mongooseim/_build/prod/lib
          /usr/lib/erlang/lib
          /home/pi/mongooseim/_build/prod/rel
===> Resolved mongooseim-4.0.0
===> Tarball generation error for error reason {badmatch,{error,enospc}}

Strange, let's see:

$ ls -la _build/prod/rel/mongooseim/mongooseim-4.0.0.tar.gz
-rw-r--r-- 1 pi pi 16429252608 oct 20 21:31 _build/prod/rel/mongooseim/mongooseim-4.0.0.tar.gz

...oh wait, 16 what?

I did modify something in rebar.lock (ref. #2811 )

 {<<"re2">>,
  {git,"https://github.com/tuncer/re2.git",
       {ref,"bfe0bb5baa0202e7618dcdbea050dad30f237298"}},
  1},

Let's verify the archive

$ LC_ALL=en_US tar -t -v -f _build/prod/rel/mongooseim/mongooseim-4.0.0.tar.gz>list.txt
tar: Skipping to next header
tar: Archive contains '`\217\366\331\212\324~\220\324\331\276\236' where numeric off_t value expected
tar: Archive contains '~6\r\253]\355\244\352*\366\a\220' where numeric off_t value expected
...
more of these errors, left it for a while it outputted about 7 of those but didn't actually finish, had to ^C

Contents of tar.gz: list.txt

/LE: ./rebar3 as prod release builds fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant