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

Does not work with nix ca-derivations enabled #20

Open
Mic92 opened this issue Jul 16, 2021 · 7 comments · May be fixed by #21
Open

Does not work with nix ca-derivations enabled #20

Mic92 opened this issue Jul 16, 2021 · 7 comments · May be fixed by #21

Comments

@Mic92
Copy link
Contributor

Mic92 commented Jul 16, 2021

As @regnat reportet it does not handle /realisations, which results in http 500er errors when using it as a cache on a daemon with ca-derivations enabled.

@fogti
Copy link

fogti commented Jul 22, 2021

Is there some working alternative? I tried using nix-serve from this repo combined with NixOS/nix as a source for the underlying nix+perl-bindings, but perl does not like it: either it somehow does not find Nix/Config.pm, otherwise it appears to error out inside some Manifest.pm or such...

Died at /nix/store/qhlldk0c44ssgiipizczq4f210hlgplr-nix-perl-2.4pre20210720_dd7bcf3/lib/perl5/site_perl/5.32.1/x86_64-linux-thread-multi/Nix/Manifest.pm line 236

@Mic92
Copy link
Contributor Author

Mic92 commented Jul 23, 2021

Is there some working alternative? I tried using nix-serve from this repo combined with NixOS/nix as a source for the underlying nix+perl-bindings, but perl does not like it: either it somehow does not find Nix/Config.pm, otherwise it appears to error out inside some Manifest.pm or such...

Died at /nix/store/qhlldk0c44ssgiipizczq4f210hlgplr-nix-perl-2.4pre20210720_dd7bcf3/lib/perl5/site_perl/5.32.1/x86_64-linux-thread-multi/Nix/Manifest.pm line 236

The workaround is not enabling ca-derivations until nix-serve implements ca-derivation support.

@fogti
Copy link

fogti commented Jul 23, 2021

Is there some other nix cache which does support this? I suppose ngi0 uses S3, right?

@SuperSandro2000
Copy link
Contributor

We explicitly need this type of cache and not S3 or some other cloud provider.

@Mic92
Copy link
Contributor Author

Mic92 commented Jul 25, 2021

Maybe nix.sshServe.enable works because it's part of nix?

@SuperSandro2000
Copy link
Contributor

Is there some other nix cache which does support this? I suppose ngi0 uses S3, right?

yes, through hydra.

@thufschmitt
Copy link

Is there some other nix cache which does support this? I suppose ngi0 uses S3, right?

All the built-in store implementations support this. So ssh, ssh-ng, http(s), file, daemon and s3 stores should all be usable as a CA-aware binary cache

@thufschmitt thufschmitt linked a pull request Jul 30, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

4 participants