Answers.Body: <p>The issue is because <strong>wkhtmltopdf</strong> 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.</p>
  <p>Here is the steps,</p>
  <pre><code>nitro ssh --root 
  apk add  --no-cache --repository  http://dl-cdn.alpinelinux.org/alpine/v3.10/main/ wkhtmltopdf=0.12.6-r0
  </code></pre>
  <p><strong>wkhtmltopdf=0.12.6-r0</strong> is the version.</p>
  <p>You might need to update your package if you fail to install,</p>
  <pre><code>apk update
  </code></pre>
  <p>After your installation, you should be able to get the path,</p>
  <pre><code>which wkhtmltopdf 
  which wkhtmltoimage
  </code></pre>
  <p>In case you want to check your version, you can run the below command after getting your path,</p>
  <pre><code>/usr/bin/wkhtmltopdf --version
  </code></pre>
  <p>Here is the reference,
  <a href="https://stackoverflow.com/questions/59026248/how-to-install-wkhtmltopdf-on-docker-ruby-2-5-1-alpine-linux">https://stackoverflow.com/questions/59026248/how-to-install-wkhtmltopdf-on-docker-ruby-2-5-1-alpine-linux</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-31T13:07:09.583Z
Answers.Text: Keep in mind that this will get blown away if you ever update the container
Answers.UserDisplayName: andrew.welch
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-19T04:27:10.703Z
Answers.LastActivityDate: 2021-10-25T03:41:39.183Z
Answers.LastEditDate: 2021-10-25T03:41:39.183Z
Answers.UserDisplayName: Lee
Answers.Body: <p>To install Enupal Snapshot on Nitro 2 (could be the same for Alpine Linux distros)</p>
  <ul>
  <li>Login to nitro via ssh as root:
  <code>nitro ssh your_nitro_site_name --root</code></li>
  <li>Run the following command to install <code>wkhtmltopdf</code> and dependencies</li>
  </ul>
  <pre><code>apk --update --no-cache add \
     wkhtmltopdf \
      libgcc \
      libstdc++ \
      musl \
      qt5-qtbase \
      qt5-qtbase-x11 \
      qt5-qtsvg \
      qt5-qtwebkit \
      ttf-freefont \
      ttf-dejavu \
      ttf-droid \
      ttf-liberation \
      fontconfig \
      so:libQt5Core.so.5 \
      so:libQt5Gui.so.5 \
      so:libQt5Network.so.5 \
      so:libQt5PrintSupport.so.5 \
      so:libQt5Svg.so.5 \
      so:libQt5WebKit.so.5\
      so:libQt5WebKitWidgets.so.5\
      so:libQt5Widgets.so.5\
      so:libc.musl-x86_64.so.1\
      so:libgcc_s.so.1\
      so:libstdc++.so.6
  </code></pre>
  <ul>
  <li>On your Craft CMS dashboard go to the Enupal Snapshot settings and save the following settings:</li>
  </ul>
  <p>Absolute Binary Path of wkhtmltopdf libRequired:
  <code>/usr/bin/wkhtmltopdf</code></p>
  <p>Absolute Binary Path of wkhtmltoimage lib
  <code>/usr/bin/wkhtmltoimage</code></p>
  <ul>
  <li>Save your Settings</li>
  </ul>
  <p>This was an issue raised on Github -&gt; <a href="https://github.com/enupal/snapshot/issues/43" rel="nofollow noreferrer">#43</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-04T07:20:08.133Z
Answers.LastActivityDate: 2022-03-04T07:20:08.133Z
Answers.UserDisplayName: Andre L.
Answers.Body: <p>Was the value you got from which whtmlopdf $whtmlopdf? Return code 127 is</p>
  <blockquote>
  <p>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.
  <a href="https://stackoverflow.com/questions/1763156/127-return-code-from">https://stackoverflow.com/questions/1763156/127-return-code-from</a></p>
  </blockquote>
  <p>So I'm thinking it has something to do with that. I had a few issues getting it setup so am happy to try and help.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-15T02:24:30.183Z
Answers.Text: Basically the system not able to detect the path for whtmlopdf, which I have installed
Answers.UserDisplayName: Lee
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-13T19:31:56.827Z
Answers.LastActivityDate: 2021-07-13T19:31:56.827Z
Answers.UserDisplayName: spence
Body: <p>I keep having issues when trying to save the settings for Enupal Snapshot at Craft Nitro,
  <a href="https://i.sstatic.net/vinsr.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vinsr.png" alt="enter image description here" /></a></p>
  <p>Below is the error message I found at the log file,</p>
  <pre><code>[enupal\snapshot\Snapshot::error] Something went wrong when creating the PDF file: The exit status code '127' says something went wrong:
  stderr: &quot;sh: /usr/local/bin/wkhtmltopdf: not found
  
  [error][enupal\snapshot\Snapshot::error] Something went wrong when creating the Image file: The exit status code '127' says something went wrong:
  stderr: &quot;sh: /usr/local/bin/wkhtmltoimage: not found
  </code></pre>
  <p>I have installed the wkhtmltopdf at Ubuntu 20.04 based on the <a href="https://docs.enupal.com/enupal-snapshot/getting-started/installation-setup.html#install-wkhtmltopdf-on-ubuntu-via-command-line" rel="nofollow noreferrer">documentation</a> and get the path using 'which wkhtmltopdf', 'which wkhtmltoimage'
  <a href="https://i.sstatic.net/7urt0.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7urt0.png" alt="enter image description here" /></a></p>
  <p>I have also enabled the Public URL for the asset,
  <a href="https://i.sstatic.net/YLsRE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YLsRE.png" alt="enter image description here" /></a></p>
  <p>How can I fix this?</p>
  <p>I'm using Nitro 2 at Window 10 x64, below are my system details,</p>
  <pre><code>Ubuntu 20
  PHP version 7.4.16
  OS version  Linux 5.4.72-microsoft-standard-WSL2
  Craft Pro 3.6.13
  Enupal Snapshot 1.2.8
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-14T09:11:13.370Z
Comments.Text: I'll try to install snapshot on nitro2. I'll back to you soon
Comments.UserDisplayName: Andre L.
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-07-15T02:25:29.840Z
Comments.Text: @AndreL. Thanks.
Comments.UserDisplayName: Lee
Tags: <assets><pdf><nitro><windows><plugin-enupalpdf>
Title: Enupal Snapshot: Fail to save setting for Craft Nitro with status code '127'
ThreadText: # Enupal Snapshot: Fail to save setting for Craft Nitro with status code '127'
  
  (Asked by: username_0 on 2021-07-07)
  
  I keep having issues when trying to save the settings for Enupal Snapshot at Craft Nitro,
  [![enter image description here](https://i.sstatic.net/vinsr.png)](https://i.sstatic.net/vinsr.png)
  
  Below is the error message I found at the log file,
  
  ```
  [enupal\snapshot\Snapshot::error] Something went wrong when creating the PDF file: The exit status code '127' says something went wrong:
  stderr: "sh: /usr/local/bin/wkhtmltopdf: not found
  
  [error][enupal\snapshot\Snapshot::error] Something went wrong when creating the Image file: The exit status code '127' says something went wrong:
  stderr: "sh: /usr/local/bin/wkhtmltoimage: not found
  
  ```
  
  I have installed the wkhtmltopdf at Ubuntu 20.04 based on the [documentation](https://docs.enupal.com/enupal-snapshot/getting-started/installation-setup.html#install-wkhtmltopdf-on-ubuntu-via-command-line) and get the path using 'which wkhtmltopdf', 'which wkhtmltoimage'
  [![enter image description here](https://i.sstatic.net/7urt0.png)](https://i.sstatic.net/7urt0.png)
  
  I have also enabled the Public URL for the asset,
  [![enter image description here](https://i.sstatic.net/YLsRE.png)](https://i.sstatic.net/YLsRE.png)
  
  How can I fix this?
  
  I'm using Nitro 2 at Window 10 x64, below are my system details,
  
  ```
  Ubuntu 20
  PHP version 7.4.16
  OS version  Linux 5.4.72-microsoft-standard-WSL2
  Craft Pro 3.6.13
  Enupal Snapshot 1.2.8
  
  ```
  
  **Tags:** assets, pdf, nitro, windows, plugin-enupalpdf
  
  > **Comments:**
  > **username_1**: I'll try to install snapshot on nitro2. I'll back to you soon  
  > **username_0**: @AndreL. Thanks.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2021-07-19. Score: 3 | Accepted answer
  
  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.6-r0
  
  ```
  
  **wkhtmltopdf=0.12.6-r0** is the version.
  
  You might need to update your package if you fail to install,
  
  ```
  apk update
  
  ```
  
  After your installation, you should be able to get the path,
  
  ```
  which wkhtmltopdf 
  which wkhtmltoimage
  
  ```
  
  In case you want to check your version, you can run the below command after getting your path,
  
  ```
  /usr/bin/wkhtmltopdf --version
  
  ```
  
  Here is the reference,
  <https://stackoverflow.com/questions/59026248/how-to-install-wkhtmltopdf-on-docker-ruby-2-5-1-alpine-linux>
  
  > **Comments:**
  > **username_2**: Keep in mind that this will get blown away if you ever update the container  
  
  ---
  
  ### Answer by username_1 on 2022-03-04. Score: 1
  
  To install Enupal Snapshot on Nitro 2 (could be the same for Alpine Linux distros)
  
  * Login to nitro via ssh as root:
    `nitro ssh your_nitro_site_name --root`
  * Run the following command to install `wkhtmltopdf` and dependencies
  
  ```
  apk --update --no-cache add \
     wkhtmltopdf \
      libgcc \
      libstdc++ \
      musl \
      qt5-qtbase \
      qt5-qtbase-x11 \
      qt5-qtsvg \
      qt5-qtwebkit \
      ttf-freefont \
      ttf-dejavu \
      ttf-droid \
      ttf-liberation \
      fontconfig \
      so:libQt5Core.so.5 \
      so:libQt5Gui.so.5 \
      so:libQt5Network.so.5 \
      so:libQt5PrintSupport.so.5 \
      so:libQt5Svg.so.5 \
      so:libQt5WebKit.so.5\
      so:libQt5WebKitWidgets.so.5\
      so:libQt5Widgets.so.5\
      so:libc.musl-x86_64.so.1\
      so:libgcc_s.so.1\
      so:libstdc++.so.6
  
  ```
  
  * On your Craft CMS dashboard go to the Enupal Snapshot settings and save the following settings:
  
  Absolute Binary Path of wkhtmltopdf libRequired:
  `/usr/bin/wkhtmltopdf`
  
  Absolute Binary Path of wkhtmltoimage lib
  `/usr/bin/wkhtmltoimage`
  
  * Save your Settings
  
  This was an issue raised on Github -> [#43](https://github.com/enupal/snapshot/issues/43)
  
  
  ---
  
  ### Answer by username_3 on 2021-07-13. Score: 1
  
  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.
  > <https://stackoverflow.com/questions/1763156/127-return-code-from>
  
  So I'm thinking it has something to do with that. I had a few issues getting it setup so am happy to try and help.
  
  > **Comments:**
  > **username_0**: Basically the system not able to detect the path for whtmlopdf, which I have installed  
  
  ---
  
  