Printing: Difference between revisions
imported>Makefu No edit summary |
imported>StijnDW Add a Troubleshooting section |
||
Line 83: | Line 83: | ||
[[Category:Configuration]][[Category:Hardware]] | [[Category:Configuration]][[Category:Hardware]] | ||
=Troubleshooting= | |||
===Upgrade Required=== | |||
Described in: [https://github.com/NixOS/nixpkgs/issues/23993 Github issue 23993]<br /> | |||
'''Problem'''<br /> | |||
Using the cups web interface, the page tells you "Upgrade Required" and then redirects you to a page that fails to load.<br /> | |||
'''Cause'''<br /> | |||
When you are using http and cups wants authentication it will redirect you to a https version by default.<br /> | |||
In order to use https it needs ssl keys. However it is possible that cups fails to generate these keys, and then the page will fail to load.<br /> | |||
'''Solution'''<br /> | |||
Either we can help cups to get ssl keys, or we can tell it to not use https at all.<br /> | |||
''Generating ssl keys:''<br /> | |||
First make sure the directory /etc/cups/ssl exists:<br /> | |||
<code>sudo mkdir -p /etc/cups/ssl</code><br /> | |||
Try restarting cups and using the web interface again. This might be enough to get it working.<br /> | |||
If this didn't help, then check if cups has generated ssl keys in /etc/cups/ssl<br /> | |||
''Disabling ssl:''<br /> | |||
Edit your <code>/etc/nixos/configuration.nix</code> and add the following lines:<br /> | |||
<code><pre>services.printing.extraConf = '' | |||
DefaultEncryption Never | |||
'';</pre></code> | |||
===Unable to launch Ghostscript: gs: No such file or directory=== | |||
Described in: [https://github.com/NixOS/nixpkgs/issues/20806 Github issue 20806]<br /> | |||
'''Problem'''<br /> | |||
When printing, cups will report an error: Unable to launch Ghostscript: gs: No such file or directory<br /> | |||
'''Cause'''<br /> | |||
Some drivers use the ghostscript binary.<br /> | |||
Cups will look for the binary path in it's config file: cupsd.conf<br /> | |||
This file is normally a link. But it can be overwritten, and consequentially become outdated.<br /> | |||
'''Solution'''<br /> | |||
You could try to manually fix the path variable in /var/lib/cups/cupsd.conf<br /> | |||
Alternatively you could try to delete the file and run <code>sudo nixos-rebuild switch</code> |