Product: PowerShell Universal
Version: 5.0.8
I just installed PowerShell Universal 5.0.8 on a Debian 12 system to try it out. I followed the installation instructions very closely, but it looks like that causes a problem. The instructions show unzipping into a PSU folder, and then starting Universal.Server from the parent of the PSU folder: ./PSU/Universal.Server
. When I did this I found I was able to setup an admin user and password, but after that I got the error, “Object reference not set to an instance of an object.”
Instead I had to change into the PSU directory and start Universal.Server from there: ./Universal.Server
. Just to be safe I modified the PSU systemd service script to set a WorkingDirectory as well, since setting the working directory doesn’t seem to be optional.
I also had to create to the directory /usr/share/PowerShellUniversal
and make sure the psuniversal user had permission to write to this directory. Even after that I still get an error in the log every time I start the PowerShell Universal service. Note the mixed use of forward and backward slashes in the path. Here’s an example:
2024-09-28T19:43:30.1821820Z Caught exception while emitting to sink Serilog.Sinks.File.RollingFileSink:
System.UnauthorizedAccessException: Access to the path '/usr/share\PowerShellUniversal\log20240928.txt' is denied.
Finally for testing I created an app at the URL /myapp. Within that app, I created a page at the URL /mypage using the “Create App Page” button in the admin interface. I haven’t been able to figure out how to view /mypage from the browser. I can edit the code, but I get “Page Not found” for every URL I’ve tried in the browser. There are lots of examples in the documentation of creating pages using the New-UDPage
, but how do I access a page I created through the admin interface? Is this another path problem with the Linux version?
Thanks,
Alan