Running Anvil Locally as Administrator Account

Hi there,

I’m trying to develop locally by following this guide but ran into this issue:

So, digging that error, I found this thread.

Forgive me for this question as I’ve never had to do this with other apps, but how do I do what’s proposed in the solution above?

I’m on Windows 10 with VS Code as the IDE. I have only one user on my PC, so naturally it’s also the admin account. I’m genuinely not planning on having a second user account on my PC just for this.

So I tried running these commands in PowerShell as well as the built in Terminal within VSCode (same thing), to no avail. It’s still throwing the same error.

Or perhaps there’s some way to run the postgres even though I’m admin? Really prefer not to provision my own postgres if possible.

Surely someone else uses this same stack too!

Further things I’ve tried:
Anvil App Server; Failed to start built-in Postgres database - Anvil Q&A - Anvil Community Forum

Installed vcredist from the post, restarted, and ran anvil-server-app to no avail. And then ran

minus the commas, and that ran fine. Then did a anvil-server-app and came back with the same error as the initial issue.

Hi @dl1.

It’s unlikely that this is actually a permissions issue on Windows.

Can you check the .anvil-data\postgres.log file? Those logs should hopefully include more info as to what’s going on.

Hi,

have yoou found any solution for that error? I’am facing it as well and tried out the other possible solutions from other posts but nothing worked…

Would be very helpful!

Best regards