cachix/cachix-action

Binary not found by action

matthiasbeyer opened this issue · 6 comments

Today I started to get the following errors:

https://github.com/matthiasbeyer/config-rs-ng/actions/runs/4302078748/jobs/7500099497

That I do not understand. Does someone know what went wrong and how I can fix it?

@domenkozar this blocks our GHA jobs. Workaround is to not use this action but to install the cachix via nixpkgs.

The problem lies in the install script having some weird binary at the beginning:

$ curl https://cachix.org/api/v1/install | hexdump -c | head -n 40
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10240  100 10240    0     0  66829      0 --:--:-- --:--:-- --:--:-- 66928
0000000   .   /  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000010  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0000060  \0  \0  \0  \0   0   0   0   0   5   5   5  \0   0   1   7   7
0000070   7   7   6  \0   0   1   7   7   7   7   6  \0   0   0   0   0
0000080   0   0   0   0   0   0   0  \0   0   0   0   0   0   0   0   0
0000090   0   0   1  \0   0   1   0   7   7   4  \0       5  \0  \0  \0
00000a0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0000100  \0   u   s   t   a   r          \0   n   o   b   o   d   y  \0
0000110  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000120  \0  \0  \0  \0  \0  \0  \0  \0  \0   n   o   g   r   o   u   p
0000130  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0000200   .   /   d   e   f   a   u   l   t   .   n   i   x  \0  \0  \0
0000210  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0000260  \0  \0  \0  \0   0   0   0   0   4   4   4  \0   0   1   7   7
0000270   7   7   6  \0   0   1   7   7   7   7   6  \0   0   0   0   0
0000280   0   0   0   3   6   2   2  \0   0   0   0   0   0   0   0   0
0000290   0   0   1  \0   0   1   3   1   4   3  \0       0  \0  \0  \0
00002a0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0000300  \0   u   s   t   a   r          \0   n   o   b   o   d   y  \0
0000310  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000320  \0  \0  \0  \0  \0  \0  \0  \0  \0   n   o   g   r   o   u   p
0000330  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0000400   {       s   y   s   t   e   m       ?       b   u   i   l   t
0000410   i   n   s   .   c   u   r   r   e   n   t   S   y   s   t   e
0000420   m  \n   ,       o   n   l   y   F   r   o   m   S   o   u   r
0000430   c   e       ?       f   a   l   s   e  \n   }   :  \n  \n   l
0000440   e   t  \n           m   k   F   a   k   e   D   e   r   i   v
0000450   a   t   i   o   n       =       a   t   t   r   s   :       o
0000460   u   t   p   u   t   s   :  \n                   l   e   t  \n
0000470                                   o   u   t   p   u   t   N   a
0000480   m   e   s       =       b   u   i   l   t   i   n   s   .   a
0000490   t   t   r   N   a   m   e   s       o   u   t   p   u   t   s
00004a0   ;  \n                                   c   o   m   m   o   n
00004b0       =       a   t   t   r   s       /   /       o   u   t   p

We resolved the issue by using the latest install-nix-action. Like here: https://github.com/wireapp/wire-server/pull/3115/files

We've ran into the same issue. Upgrading to latest install-nix-action also fixed the problem here 👍

Yep, Problem fixed for me as well.