Hot answers tagged

7 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....
user avatar
  • 1,508
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.
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!
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 ...
user avatar
3 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 ...
user avatar
  • 31
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" ...
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 ...
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 ...
user avatar
  • 41
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.
user avatar
  • 51
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 ...
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
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.
user avatar
  • 677
2 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 ...
user avatar
2 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
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 ...
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 ...
user avatar
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/...
user avatar
  • 313
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, ...
user avatar
  • 195
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 ...
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.
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 ...
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 ...
user avatar
  • 1,226
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-...
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 ...
user avatar
  • 1,181
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-...
user avatar
  • 321
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 ...
user avatar
  • 195
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 ...
user avatar
1 vote
Accepted

nix-shell stuck on Building library for hnix

So the solution was simply to install nix-darwin https://github.com/LnL7/nix-darwin simply follow the instruction on the github page above, and now I can access my nix-shell
user avatar
1 vote
Accepted

How to compile plutus source code locally?

You appear to be having issues resolving the dependencies for that particular build of Plutus. In fact, all Cardano builds depend on libsystemd (on Linux). If you have incompatible versions of ...
user avatar
  • 201
1 vote

How to compile plutus source code locally?

Try in the nix-shell try this: cabal update cabal build btw: first time building with cabal can take up some time
user avatar

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