unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Error: cannot close compressed log file
@ 2022-05-09 10:50 Emmanuel Medernach
  2022-05-10 17:52 ` zimoun
  0 siblings, 1 reply; 8+ messages in thread
From: Emmanuel Medernach @ 2022-05-09 10:50 UTC (permalink / raw)
  To: help-guix

Hello,

When trying to install a custom package the build stop after downloading 
the source code with this error:

guix install: error: cannot close compressed log file (gzip error = -1)

I verified the archive file downloaded is fine, please help me how to 
debug this ?

Thanks in advance,

Best regards,

Emmanuel Medernach



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error: cannot close compressed log file
  2022-05-09 10:50 Error: cannot close compressed log file Emmanuel Medernach
@ 2022-05-10 17:52 ` zimoun
  2022-05-12  9:34   ` Emmanuel Medernach
  0 siblings, 1 reply; 8+ messages in thread
From: zimoun @ 2022-05-10 17:52 UTC (permalink / raw)
  To: Emmanuel Medernach, help-guix

Hi,

On Mon, 09 May 2022 at 12:50, Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr> wrote:

> When trying to install a custom package the build stop after downloading 
> the source code with this error:
>
> guix install: error: cannot close compressed log file (gzip error = -1)

Well, I guess this message comes from ’nix/libstore/build.cc’:

--8<---------------cut here---------------start------------->8---
void DerivationGoal::closeLogFile()
{
    if (gzLogFile) {
	int err;
	err = gzclose(gzLogFile);
	gzLogFile = NULL;
	if (err != Z_OK) throw Error(format("cannot close compressed log file (gzip error = %1%)") % err);
    }
--8<---------------cut here---------------end--------------->8---

which seems very unexpected. :-)


> I verified the archive file downloaded is fine, please help me how to 
> debug this ?

Could share the package definition?
Are you using Guix System or Guix on the top of a foreign distro?
Have you tweaked the option ’--log-compression’ from ’guix-daemon’?


Cheers,
simon




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error: cannot close compressed log file
  2022-05-10 17:52 ` zimoun
@ 2022-05-12  9:34   ` Emmanuel Medernach
  2022-05-13  8:30     ` zimoun
  0 siblings, 1 reply; 8+ messages in thread
From: Emmanuel Medernach @ 2022-05-12  9:34 UTC (permalink / raw)
  To: zimoun, help-guix


Le 10/05/2022 à 19:52, zimoun a écrit :
> Hi,
>
> On Mon, 09 May 2022 at 12:50, Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr> wrote:
>
>> When trying to install a custom package the build stop after downloading
>> the source code with this error:
>>
>> guix install: error: cannot close compressed log file (gzip error = -1)
> Well, I guess this message comes from ’nix/libstore/build.cc’:
>
> --8<---------------cut here---------------start------------->8---
> void DerivationGoal::closeLogFile()
> {
>      if (gzLogFile) {
> 	int err;
> 	err = gzclose(gzLogFile);
> 	gzLogFile = NULL;
> 	if (err != Z_OK) throw Error(format("cannot close compressed log file (gzip error = %1%)") % err);
>      }
> --8<---------------cut here---------------end--------------->8---
>
> which seems very unexpected. :-)
>
Yes, none of my partitions were full. I don't know.

After a guix gc it works again, I don't understand what was the problem 
as there was no logs :/

Best regards,

Emmanuel Medernach



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error: cannot close compressed log file
  2022-05-12  9:34   ` Emmanuel Medernach
@ 2022-05-13  8:30     ` zimoun
  2023-02-08  9:58       ` Emmanuel Medernach
  0 siblings, 1 reply; 8+ messages in thread
From: zimoun @ 2022-05-13  8:30 UTC (permalink / raw)
  To: Emmanuel Medernach, help-guix

Hi,

On jeu., 12 mai 2022 at 11:34, Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr> wrote:

>> --8<---------------cut here---------------start------------->8---
>> void DerivationGoal::closeLogFile()
>> {
>>      if (gzLogFile) {
>> 	int err;
>> 	err = gzclose(gzLogFile);
>> 	gzLogFile = NULL;
>> 	if (err != Z_OK) throw Error(format("cannot close compressed log file (gzip error = %1%)") % err);
>>      }
>> --8<---------------cut here---------------end--------------->8---

[...]

> After a guix gc it works again, I don't understand what was the problem 
> as there was no logs :/

I do not know either.  Maybe something wrong with a log file and this
log file had been removed by GC.

Yes, now it is impossible to understand why that happened.  Feel free to
report similar errors if they appear again.


Cheers,
simon


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error: cannot close compressed log file
  2022-05-13  8:30     ` zimoun
@ 2023-02-08  9:58       ` Emmanuel Medernach
  2023-02-08 13:48         ` Simon Tournier
  0 siblings, 1 reply; 8+ messages in thread
From: Emmanuel Medernach @ 2023-02-08  9:58 UTC (permalink / raw)
  To: help-guix

Hello,

The problem reappeared:

$ guix pack -RR -C bzip2 -f tarball --manifest=manifest.scm
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 
100.0%
The following derivation will be built:
   /gnu/store/5v24idd80hl29cwxijmj4dd13v6vdqa1-....tar.bz2.drv

building /gnu/store/5v24idd80hl29cwxijmj4dd13v6vdqa1-...tar.bz2.drv...
-guix pack: error: cannot close compressed log file (gzip error = -1)

None of my filesystem is empty and guix gc does not solve the problem 
this time :(

What could be done about it ?

Cheers,

Emmanuel

Le 13/05/2022 à 10:30, zimoun a écrit :
> Hi,
>
> On jeu., 12 mai 2022 at 11:34, Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr> wrote:
>
>>> --8<---------------cut here---------------start------------->8---
>>> void DerivationGoal::closeLogFile()
>>> {
>>>       if (gzLogFile) {
>>> 	int err;
>>> 	err = gzclose(gzLogFile);
>>> 	gzLogFile = NULL;
>>> 	if (err != Z_OK) throw Error(format("cannot close compressed log file (gzip error = %1%)") % err);
>>>       }
>>> --8<---------------cut here---------------end--------------->8---
> [...]
>
>> After a guix gc it works again, I don't understand what was the problem
>> as there was no logs :/
> I do not know either.  Maybe something wrong with a log file and this
> log file had been removed by GC.
>
> Yes, now it is impossible to understand why that happened.  Feel free to
> report similar errors if they appear again.
>
>
> Cheers,
> simon


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error: cannot close compressed log file
  2023-02-08  9:58       ` Emmanuel Medernach
@ 2023-02-08 13:48         ` Simon Tournier
  2023-02-08 14:57           ` Emmanuel Medernach
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Tournier @ 2023-02-08 13:48 UTC (permalink / raw)
  To: Emmanuel Medernach, help-guix

Hi,

On mer., 08 févr. 2023 at 10:58, Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr> wrote:

> $ guix pack -RR -C bzip2 -f tarball --manifest=manifest.scm
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
> substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 
> 100.0%
> The following derivation will be built:
>    /gnu/store/5v24idd80hl29cwxijmj4dd13v6vdqa1-....tar.bz2.drv
>
> building /gnu/store/5v24idd80hl29cwxijmj4dd13v6vdqa1-...tar.bz2.drv...
> -guix pack: error: cannot close compressed log file (gzip error = -1)
>
> None of my filesystem is empty and guix gc does not solve the problem 
> this time :(

By empty, do you mean full?  It is not an issue about free space, right?

Could you share the Guix revision (guix describe), guix-daemon version
and the manifest.scm file?

Cheers,
simon


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error: cannot close compressed log file
  2023-02-08 13:48         ` Simon Tournier
@ 2023-02-08 14:57           ` Emmanuel Medernach
  2023-02-09  7:33             ` Emmanuel Medernach
  0 siblings, 1 reply; 8+ messages in thread
From: Emmanuel Medernach @ 2023-02-08 14:57 UTC (permalink / raw)
  To: Simon Tournier, help-guix


Le 08/02/2023 à 14:48, Simon Tournier a écrit :
> Hi,
>
> On mer., 08 févr. 2023 at 10:58, Emmanuel Medernach <Emmanuel.Medernach@iphc.cnrs.fr> wrote:
>
>> $ guix pack -RR -C bzip2 -f tarball --manifest=manifest.scm
>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
>> substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
>> 100.0%
>> The following derivation will be built:
>>     /gnu/store/5v24idd80hl29cwxijmj4dd13v6vdqa1-....tar.bz2.drv
>>
>> building /gnu/store/5v24idd80hl29cwxijmj4dd13v6vdqa1-...tar.bz2.drv...
>> -guix pack: error: cannot close compressed log file (gzip error = -1)
>>
>> None of my filesystem is empty and guix gc does not solve the problem
>> this time :(
> By empty, do you mean full?  It is not an issue about free space, right?

Hi Simon,

Yes sorry I meant no filesystem is full

I think this is because /tmp partition is filled during the copying 
store items phase.

Is it possible to configure Guix to use another partition than /tmp ?

> Could you share the Guix revision (guix describe), guix-daemon version
> and the manifest.scm file?

I am using a custom channel:

https://gitlab.in2p3.fr/reprovip/reprovip-guix/-/blob/master/GUIX/FSL/compilation/v0.1/channels.scm

$ guix describe
Generation 11   Nov 07 2022 14:39:35    (current)
   guix 348f70b
     repository URL: https://git.savannah.gnu.org/git/guix.git
     branch: master
     commit: 348f70b9f429b19df6251a2c177291f4c606a495
   nonguix d4f3c4b
     repository URL: https://gitlab.com/nonguix/nonguix
     branch: master
     commit: d4f3c4b57e05fd3286722ed44b6500093c632258
   guix-hpc 1a6af9f
     repository URL: https://gitlab.inria.fr/guix-hpc/guix-hpc.git
     branch: master
     commit: 1a6af9f0154f57dc5a31bf535bb09db63e3a8d03
   guix-hpc-non-free 85a4cf1
     repository URL: https://gitlab.inria.fr/guix-hpc/guix-hpc-non-free.git
     branch: master
     commit: 85a4cf183c1d3f5232ace249a770df506cd722cf

$ guix-daemon --version
guix-daemon (GNU Guix) 1.3.0-32.682639c

Here is the manifest:

https://gitlab.in2p3.fr/reprovip/reprovip-guix/-/blob/master/GUIX/FSL/compilation/v0.1/manifest.scm

Thanks for your help

Cheers,

Emmanuel


> Cheers,
> simon


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error: cannot close compressed log file
  2023-02-08 14:57           ` Emmanuel Medernach
@ 2023-02-09  7:33             ` Emmanuel Medernach
  0 siblings, 0 replies; 8+ messages in thread
From: Emmanuel Medernach @ 2023-02-09  7:33 UTC (permalink / raw)
  To: help-guix

Le 08/02/2023 à 15:57, Emmanuel Medernach a écrit :
>
> Le 08/02/2023 à 14:48, Simon Tournier a écrit :
>> Hi,
>>
>> On mer., 08 févr. 2023 at 10:58, Emmanuel Medernach 
>> <Emmanuel.Medernach@iphc.cnrs.fr> wrote:
>>
>>> $ guix pack -RR -C bzip2 -f tarball --manifest=manifest.scm
>>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 
>>> 100.0%
>>> substitute: updating substitutes from 
>>> 'https://bordeaux.guix.gnu.org'...
>>> 100.0%
>>> The following derivation will be built:
>>> /gnu/store/5v24idd80hl29cwxijmj4dd13v6vdqa1-....tar.bz2.drv
>>>
>>> building /gnu/store/5v24idd80hl29cwxijmj4dd13v6vdqa1-...tar.bz2.drv...
>>> -guix pack: error: cannot close compressed log file (gzip error = -1)
>>>
>>> None of my filesystem is empty and guix gc does not solve the problem
>>> this time 🙁
>> By empty, do you mean full?  It is not an issue about free space, right?
>
> Hi Simon,
>
> Yes sorry I meant no filesystem is full
>
> I think this is because /tmp partition is filled during the copying 
> store items phase.
>
> Is it possible to configure Guix to use another partition than /tmp ?

  Problem solved ! By adding TMPDIR in the environment of guix daemon 
service definition one could use another partition instead of /tmp :

https://guix.gnu.org/manual/en/html_node/Build-Environment-Setup.html

Cheers,

Emmanuel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-09  7:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09 10:50 Error: cannot close compressed log file Emmanuel Medernach
2022-05-10 17:52 ` zimoun
2022-05-12  9:34   ` Emmanuel Medernach
2022-05-13  8:30     ` zimoun
2023-02-08  9:58       ` Emmanuel Medernach
2023-02-08 13:48         ` Simon Tournier
2023-02-08 14:57           ` Emmanuel Medernach
2023-02-09  7:33             ` Emmanuel Medernach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).