You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time I tried to rerun an IHP app on Mac OS I got the 'Problems found while compiling' error message. After some debugging help from some kind people in the IHP Slack we figured out that the problem is Postgres, namely that the data directory has invalid permissions.. The solution to this is sudo chmod <path to data directory in the ihp project> and then typing your password. The catch is however that this has to be done every time the app is stopped and restarted which is certainly cumbersome. Finding a way to fix this permanently would be great.
Detailed steps to reproduce:
Mac OS (currently Ventura, but some earlier versions also had this)
Install Nix according to IHP docs: sh <(curl -L https://nixos.org/nix/install)
Install IHP according to IHP docs: nix-env --install ihp-new
Create IHP project: ihp-new blog
Start server: cd blog then devenv up (or ./start). Everything should be working fine at this point.
Stop server.
Start server again. This is where you get the 'Problems found while compiling error'.
Do make postgres. This is where you will get the above permission error which will include the path to the data directory in question.
Do sudo chmod <path to data directory> and type in your password.
Start server again. Everything will work fine.
Stop and start the server again. Get the 'Problems while compiling' error again.
The text was updated successfully, but these errors were encountered:
Every time I tried to rerun an IHP app on Mac OS I got the 'Problems found while compiling' error message. After some debugging help from some kind people in the IHP Slack we figured out that the problem is Postgres, namely that the data directory has invalid permissions.. The solution to this is
sudo chmod <path to data directory in the ihp project>
and then typing your password. The catch is however that this has to be done every time the app is stopped and restarted which is certainly cumbersome. Finding a way to fix this permanently would be great.Detailed steps to reproduce:
sh <(curl -L https://nixos.org/nix/install)
nix-env --install ihp-new
ihp-new blog
cd blog
thendevenv up
(or./start
). Everything should be working fine at this point.make postgres
. This is where you will get the above permission error which will include the path to the data directory in question.sudo chmod <path to data directory>
and type in your password.The text was updated successfully, but these errors were encountered: