Tiny Core Base > CorePlus
[Solved] Unable to start the CUPS web interface
t18:
Added logs.
Juanito:
Does the directory /usr/local/etc/cups/ppd exist?
t18:
--- Quote from: Juanito on April 14, 2025, 06:29:20 AM ---Does the directory /usr/local/etc/cups/ppd exist?
--- End quote ---
Yes, since I've copied my ppd file into it.
What doesn't exist is the /usr/local/share/cups/model/ (please see error_log) in which it seems to look for the ppd file.
So I've made it manually and copied my file into that. No error returned, but it doesn't work yet.
Rich:
Hi t18
I found these lines from error_log interesting:
--- Code: ---E [14/Apr/2025:08:22:28 +0000] [CGI] Unable to scan \"@LOCAL\"!
E [14/Apr/2025:08:23:18 +0000] [cups-driverd] Unable to open \"/usr/local/share/cups/model/mnt/sda2/Generic-GDI_Printer-gdi.ppd\" - No such file or directory
E [14/Apr/2025:08:23:18 +0000] [Client 5] Returning HTTP Forbidden for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/Samsung_ML-1210) from localhost
E [14/Apr/2025:08:24:27 +0000] [cups-driverd] Unable to open \"/usr/local/share/cups/model/home/tc/Generic-GDI_Printer-gdi.ppd\" - No such file or directory
--- End code ---
Line 1 seems to suggest difficulty accessing localhost.
I noticed this note in libcups.tcz.info:
--- Code: ---Comments: common unix printing system libraries
----------
howto print from a cups client to cups server
create a file of the form:
$ cat /usr/local/etc/cups/client.conf
ServerName 192.168.1.200
replace 192.168.1.200 with the ip address of your cups server
and modify hosts as follows:
$ cat /etc/hosts
127.0.0.1 cups_client localhost localhost.local
192.168.1.200 cups_server cups_server.local
replace cups_client and cups_server with the hostnames from your client/server
--- End code ---
Lines 2 and 4 contain paths that look a little odd:
--- Code: ---/usr/local/share/cups/model/mnt/sda2/Generic-GDI_Printer-gdi.ppd
^^^^^^^^___ odd part
/usr/local/share/cups/model/home/tc/Generic-GDI_Printer-gdi.ppd
^^^^^^^___ odd part
--- End code ---
Line 3 suggests a permission error, possibly related to
line 1, or maybe the /printers/ directory itself:
--- Code: ---ipp://localhost:631/printers/Samsung_ML-1210
--- End code ---
t18:
Ok, I'm using a local printer connected to the USB port, so I thought it's not necessary to configure the network.
I have now enabled the debug loglevel and issued th following commands:
--- Code: ---sudo /usr/local/etc/init.d/cups start
sudo mkdir /usr/local/share/cups/model/
sudo cp /home/tc/Generic-GDI_Printer-gdi.ppd /usr/local/share/cups/model/
sudo lpinfo -v
sudo lpadmin -p Samsung_ML-1210 -E -v usb://Samsung/ML-1210 -m Generic-GDI_Printer-gdi.ppd
sudo cupsaccept Samsung_ML-1210
sudo cupsenable Samsung_ML-1210
sudo lpstat -p Samsung_ML-1210 -l
sudo lpoptions -d Samsung_ML-1210
sudo lpstat -d
--- End code ---
This is the access_log file:
--- Code: ---localhost - - [16/Apr/2025:21:07:35 +0000] "POST / HTTP/1.1" 200 1641 CUPS-Get-Devices -
localhost - - [16/Apr/2025:21:07:50 +0000] "POST / HTTP/1.1" 200 27781 CUPS-Get-PPD -
localhost - - [16/Apr/2025:21:07:50 +0000] "POST /admin/ HTTP/1.1" 401 27845 CUPS-Add-Modify-Printer successful-ok
localhost - root [16/Apr/2025:21:07:50 +0000] "POST /admin/ HTTP/1.1" 200 27845 CUPS-Add-Modify-Printer successful-ok
localhost - - [16/Apr/2025:21:07:58 +0000] "POST /admin/ HTTP/1.1" 401 157 CUPS-Accept-Jobs successful-ok
localhost - root [16/Apr/2025:21:07:58 +0000] "POST /admin/ HTTP/1.1" 200 157 CUPS-Accept-Jobs successful-ok
localhost - - [16/Apr/2025:21:08:04 +0000] "POST /admin/ HTTP/1.1" 401 157 Resume-Printer successful-ok
localhost - root [16/Apr/2025:21:08:04 +0000] "POST /admin/ HTTP/1.1" 200 157 Resume-Printer successful-ok
localhost - - [16/Apr/2025:21:09:13 +0000] "POST /printers/Samsung_ML-1210 HTTP/1.1" 200 336 Create-Job successful-ok
localhost - - [16/Apr/2025:21:09:13 +0000] "POST /printers/Samsung_ML-1210 HTTP/1.1" 200 1341 Send-Document successful-ok
--- End code ---
Printing a file via: lp myfile.txt doesn't work (Filter failed).
Attached is the error_log file.
I haven't found any explanation about the "(cups-brf) stopped with status 13" error.
Any hints?
Many thanks
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version