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

Virtualbox fails on Unstable to build #29982

Closed
sjau opened this issue Oct 1, 2017 · 8 comments
Closed

Virtualbox fails on Unstable to build #29982

sjau opened this issue Oct 1, 2017 · 8 comments

Comments

@sjau
Copy link

sjau commented Oct 1, 2017

Issue description

I have VBox and Extensions in my configuration.nix. It fails to build now on unstable

checking for getc_unlocked... yes
checking for getcwd... yes       
checking for getegid... yes      
checking for geteuid... yes      
checking for getgid... yes       
checking for getuid... yes       
checking for mempcpy... yes      
checking for munmap... yes       
checking for putenv... yes       
checking for setenv... yes       
checking for setlocale... yes    
checking for stpcpy... yes       
checking for strcasecmp... yes   
checking for strdup... yes       
checking for strtoul... yes      
checking for tsearch... yes      
checking for __argz_count... yes 
checking for __argz_stringify... yes                              
checking for __argz_next... yes  
checking for __fsetlocking... yes
checking for iconv... yes        
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... tar: Skipping to next header                                                                 

bzip2: Data integrity error when decompressing.                   
        Input file = (stdin), output file = (stdout)              

It is possible that the compressed file(s) have become corrupted. 
You can use the -tvv option to test integrity of such files.      

You can use the `bzip2recover' program to attempt to recover      
data from undamaged sections of corrupted files.                  

tar: Child returned status 2     
tar: Error is not recoverable: exiting now                        
do not know how to unpack source archive /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2                       
builder for ‘/nix/store/0ipjp7m8758c517g661a17fssvffxwpb-virtualbox-5.1.26.drv’ failed with exit code 1                              
cannot build derivation ‘/nix/store/nwz38h1zm19gm3rr27mf7i66v2v3hda5-nixos-system-subi-18.03pre116572.9824ca6975.drv’: 1 dependencies couldn't be built

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)

18.03pre116347.272c0bf88c (Impala)

  • Nix version: (run nix-env --version)

nix-env (Nix) 1.11.15

  • Nixpkgs version: (run nix-instantiate --eval "<nixpkgs>" -A lib.nixpkgsVersion)

"18.03pre116572.9824ca6975"

  • Sandboxing enabled: (run grep build-use-sandbox /etc/nix/nix.conf)

build-use-sandbox = false

@orivej
Copy link
Contributor

orivej commented Oct 1, 2017

Does it fail if you try to build again?

@sjau
Copy link
Author

sjau commented Oct 1, 2017

yes, tried about 10x or so.... even wiped everything and started over...

@orivej
Copy link
Contributor

orivej commented Oct 1, 2017

What is the output of these commands?

ls -l /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2
sha256sum /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2

@sjau
Copy link
Author

sjau commented Oct 1, 2017

root@subi:~# ls -l /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2
-r--r--r-- 1 root root 115915813  1. Jan 1970  /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2
root@subi:~# sha256sum /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2
ec31ee7d8f31b74daa680b2dc93de081a8c383877db3d041f56a1ffc4322b0ee  /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2

@orivej
Copy link
Contributor

orivej commented Oct 1, 2017

Does this print anything?

nix-store --verify-path /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2

@sjau
Copy link
Author

sjau commented Oct 1, 2017

root@subi:~# nix-store --verify-path /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2
path ‘/nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2’ was modified! expected hash ‘a0efe0b41a32c4e6623e22eabd62feb116a2b13faf2f6a5048d712f6ca59bc1b’, got ‘98f9d2a9c048e5cf292f233cc93833e8962ba3a1ef6af8faf04db0f05b837db9’
root@subi:~# 

@orivej
Copy link
Contributor

orivej commented Oct 1, 2017

Please remove this file and build again:

sudo nix-store --delete --ignore-liveness /nix/store/r9pdz70s6rjn1w8zm6sncgg2l6mwys6p-VirtualBox-5.1.26.tar.bz2

VirtualBox sources have not been updated since July. The size of your file is correct, but the hash sum is wrong. My guess is that you had that file cached for a while and then it got corrupted without any action from nix tools. You may also want to check health status of your disk and integrity of the file systems.

@sjau
Copy link
Author

sjau commented Oct 1, 2017

ssd is fine as is the filesystem.

But deleteing seems to have worked...

@sjau sjau closed this as completed Oct 1, 2017
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

2 participants