Hot answers tagged

8 votes

I'm having issues with nix-shell

It may help to use IOHK's binary caches. You can set these up globally for your system by adding/creating these lines in /etc/nix/nix.conf: substituters = https://hydra.iohk.io https://iohk....
Matthias Sieber's user avatar
  • 1,557
5 votes

nix-shell did not create the server/client directories

This is documentation drift. Those two applications have moved to the plutus-apps repository. If you do the same exact steps cloning plutus-apps instead of plutus repository, it will work.
Samuel Leathers's user avatar
4 votes

Plutus Pioneer Program - Lecture #1- Cabal Build error

I had a similar issue and solved it by running nix-shell in the plutus library, then navigating to the plutus-pioneer/code/week01 and running cabal update. I hope this helps!
Isaac Padberg's user avatar
4 votes
Accepted

Need help installing pioneer-based code on intel Mac (Big Sur)

In step 7, there should be a 2nd line instructing you clone the plutus-apps. Change plutus.git to plutus-apps.git in step 7 to clone it, then run the playground nix-build from the top of that second ...
Hysteria's user avatar
4 votes

Nix is building ghc during on nix build command (How to fix the cache?)

It may be the case that you edited your nix.conf file after you launched nix-daemon. You would need to kill and start the daemon again to pick up the updated nix.conf: $ sudo pkill nix-daemon and ...
Sophos's user avatar
  • 41
3 votes
Accepted

What is the GC_DONT_GC=1 variable for when running the Plutus Playground locally?

GC_DONT_GC=1 disables the boehm garbage collector in nix. There are edge cases that our nix expressions can hit, which cause nix to segfault. Disabling the garbage collector in nix "fixes" ...
angerman's user avatar
  • 359
3 votes
Accepted

nix-shell did not create the server/client directories

It looks like those folders are not in the git repo. I am running into same problem. I am following instructions for MacOS from here: https://docs.plutus-community.com/docs/setup/MacOS.html And didn't ...
perezda's user avatar
  • 167
3 votes

nix installation issue on Fedora 35

Fixed. I had the Cardano node previously installed which involves compiling and installing libsodium. What I did was go into the libsodium folder and sudo make libsodium uninstall Then re-ran nix ...
drock00's user avatar
  • 41
3 votes

Disk Space of Cardano node & Cardano DB-sync

The database for db-sync at chain tip is over 100GB. Syncing on epoch 254. So far in total they have taken 88 GB of disk space. Yep and by the time you get to epoch 323 (current tip) the database ...
Erik de Castro Lopo's user avatar
3 votes
Accepted

Disk Space of Cardano node & Cardano DB-sync

As an FYI, the mainnet node DB/chain itself is currently using 41GB of disk on Linux. $du -h db 38G db/immutable 2.9G db/ledger 163M db/volatile 41G db
MC_Brisbane - JUST Pool's user avatar
2 votes

Error with cabal build using plutus-starter-devcontainer on macOS Big Sur

This issue was resolved by updating VSCode to August 2021 release (v1.60.0) and increasing Docker Memory to 6GB.
Brandon's user avatar
  • 151
2 votes

How to set plutus-apps NixOS options on Mac

If you're using an M1 Mac follow these instructions https://github.com/renzwo/cardano-plutus-apps-install-m1/blob/main/README.md You should probably uninstall Nix first though (scroll to the bottom of ...
Alex's user avatar
  • 21
2 votes

How long Cardano node takes to be installed?

You're missing the binary cache setup referenced here most likely: https://github.com/input-output-hk/cardano-node/blob/master/doc/getting-started/building-the-node-using-nix.md#iohk-binary-cache
Samuel Leathers's user avatar
2 votes

I'm having issues with nix-shell

There are multiple different types of nix.conf files in the $PATH, even when I made one globally. So What I initial did was replace all of them with the IOHK's binary caches, and from there it worked.
KIJIRI's user avatar
  • 687
2 votes
Accepted

Configuring Nix Cardano Node for pre-production / preview

You can go to Cardano Testnet - Getting Started. It will explain how to set up your node for Preview and Pre-Production Testnet, complete with the configuration files. There are also different value ...
Dani Ihza Farrosi's user avatar
2 votes
Accepted

Error when executing nix-shell in plutus-apps

There are two ways of fixing this issue: Temporary Add --experimental-features 'nix-command flakes' when calling the nix-shell command. Permanent Edit either ~/.config/nix/nix.conf or /etc/nix/nix....
Falcon Stakepool's user avatar
2 votes

plutus-apps nix-shell on Mac M2 segmentation fault

After days of spelunking the internet, I found a comment in IOG ask-nix-os suggesting to use GC_DONT_GC=1 nix-shell and that solved the problem. As of today, if you follow all the steps in my issue ...
Woodland Pools's user avatar
1 vote

Why does building cardano-node require unreasonable amounts of disk space?

When using Nix, you need to download and install a huge amount of Nix related stuff that is not required if you are not using Nix. I am sure you have heard the expression "the only reason I have ...
Erik de Castro Lopo's user avatar
1 vote
Accepted

How Do you generate the Cabal and Nix files for a new project?

Once inside the nix-shell, it assumes that the correct dependencies have already been loaded especially if you have built it on top of the newly cloned plutus-apps repo. The nix files necessary are ...
omegafer's user avatar
  • 106
1 vote

How long Cardano node takes to be installed?

if you want to install Cardano Node, building the node : this commands will actually build/compile the node and will take around 40-45 minutes. cd ~/git git clone https://github.com/input-output-hk/...
TTS17's user avatar
  • 346
1 vote

Error starting /plutus-apps client and connecting to localhost macOS

When starting the client server on macOS use GC_DONT_GC=1 npm run start. That is, include GC_DONT_GC=1 in front of the command npm run start. Then, open a browser tab to http://localhost:8009/ and, ...
TheStophe's user avatar
  • 400
1 vote

macOS Monterey i7, what is the best `nix.conf` file to use?

macOS nix setup on x86_64 (Intel, AMD) and aarch64 (Apple Silicon) should be identical. Running the installer from the official website, should get you a proper install. You do want to add the iohk ...
angerman's user avatar
  • 359
1 vote

Is nix on an Intel Mac too problematic?

No, it is not. In fact I'm running the plutus-playground-server and plutus-playground-client on an x86_64-darwin machine with nix right now.
angerman's user avatar
  • 359
1 vote

How to set plutus-apps NixOS options on Mac

I followed steps 4-6 in https://docs.plutus-community.com/docs/setup/MacOS.html and those worked for me (I have an Intel Mac - Big Sur). You could try them and see if they work for you. Those steps ...
Steve Mason's user avatar
1 vote

Haskell Language Server - linker error: symbol sqlite3_fts3_may_be_corrupt

I've found out that the issue comes from the playground stuff. (don't ask me why...) Commenting the lines [360 .. 365], 24 and 28, the problem goes away. Note that doing this, the old friend GHC Core ...
kindofdev's user avatar
  • 1,294
1 vote
Accepted

Installing on WLS2 - error: experimental Nix feature 'nix-command' is disabled

Previously there was another plutus repository, now they made an update with another name plutus-apps, the execution of the command must be updated so that it points to that reference of the plutus-...
Miguel Suescun's user avatar
1 vote

What is minimum RAM for running plutus-playground-server on Ubuntu VirtualBox?

As all answers, it depends on your setup. Currently I run the plutus-playground-server setup on a VM with 8gb of ram available (but the playground only uses 1gb of that space). The thing to consider ...
Fermat's user avatar
  • 1,862
1 vote
Accepted

nix installation failure on mac with "curl: (60) SSL certificate problem: certificate has expired"

This is not really Cardano question, but seems your Mac has problem with certificates. Quick fix will be just to add -k, like this: sh <(curl -k -L https://nixos.org/nix/install) --darwin-use-...
os11k's user avatar
  • 396
1 vote

Sandbox error when running nix build on macOS

I found this /etc/nix/nix.conf to work for my macOS i7 Monterey (v12.1). It was recommended to turn the sandbox FALSE because 'not recommended' per Ref #1 below. build-users-group = nixbld ...
TheStophe's user avatar
  • 400
1 vote
Accepted

nix-build alonzo mainnet

You're doing the right thing. "syncProgress" refers to the percentage of the chain you've synced. Once you get to around 70% it will say "Shelley" and only the most recent epoch ...
Mitchell Turner's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible