This worked well for me!
Be sure to change directory out of the drive you want to unmount first!
Just to keep it all together here is what you need to do -
sudo nano /etc/wsl.conf
Paste this into the open file -
Then paste and enter these one at a time into Terminal -
sudo rm /...
The issue is because wkhtmltopdf wasn't installed on the right server. I need to install the package inside the nitro server by ssh into the root of the container.
Here is the steps,
nitro ssh --root
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.10/main/ wkhtmltopdf=0.12.
wkhtmltopdf=0.12.6-r0 is the version.
You might need ...
Alec Ritson's comment solved the problem. His advice was to try
In other words, I had to add index.php to the URL (after public but before admin) and then everything worked fine.
Was the value you got from which whtmlopdf $whtmlopdf? Return code 127 is
Value 127 is returned by /bin/sh when the given command is not found within your PATH system variable and it is not a built-in shell command. In other words, the system doesn't understand your command, because it doesn't know where to find the binary you're trying to call.
Turns out it WAS a file encoding issue. It was UTF BOM (?), and had a weird hidden character right at the beginning of the file. I was able to open the file up in Notepad++ (Thanks Brad) and was able to convert the file to "normal" UTF8.
All fixed. The solution was to add these mount options to /etc/wsl.conf to allow metadata support. Also had to rename (or delete) /storage/cpresources and clear cache.
From Microsoft on permissions in WSL:
In more testing, I was able to eliminate the "Can't bind to LDAP server!" error message from Craft by removing both: Account Suffix and Admin Account Suffix settings from the ADLDAP parameter control panel.
In my particular setup, I left all parameters empty in the 'optional' section of the parameter control panel, with the exception of the port ('389') and '...