<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5970&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Connection to localhost:631]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5970</link>
		<description><![CDATA[The most recent posts in [SOLVED] Connection to localhost:631.]]></description>
		<lastBuildDate>Fri, 08 Sep 2023 17:58:32 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44172#p44172</link>
			<description><![CDATA[<p>@Andre4freedom: The automatic setup is called IPP. When I bought the printer and installed it, can&#039;t remember if it was under Beowulf or Chimaera, I got a bunch of entries in the cups administration, and none really worked. I was totally confused getting in contact to something I never saw before. So I switched off this IPP feature in the printer, deleted all the not working printers, and configured it the traditional way with a PPD file and an individual entry in cups. Kept this for Daedalus ...</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Fri, 08 Sep 2023 17:58:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44172#p44172</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44171#p44171</link>
			<description><![CDATA[<p>Well, problem solved.</p><p>Nemo claimed that cupsd.conf is a binary file, so initially I didn&#039;t bother to look at it. Got a hint from the German Debian forum to look at the &quot;Listen&quot; entries in the cupsd.conf. Tried to open it with geany in a root terminal, and found that the contents was plain text. Well, the &quot;Listen&quot; entries on my workstation were both identical pointing at /run/cups/cups.sock. Changed the first one to localhost:631, restarted the cups service, and voila, the problem is gone. Somehow the file was modified some time in Feb this year. There is a backup with the same timestamp which is one line longer due to a comment in line 1, the listen entries are also bad. Now I get:</p><div class="codebox"><pre><code># ss -ltnp sport 631
State                  Recv-Q                 Send-Q                                 Local Address:Port                                 Peer Address:Port                Process                                          
LISTEN                 0                      128                                        127.0.0.1:631                                       0.0.0.0:*                    users:((&quot;cupsd&quot;,pid=18184,fd=7))                
LISTEN                 0                      128                                            [::1]:631                                          [::]:*</code></pre></div><p>Crosschecked with my laptop which is working: the cupsd.conf looks different and is significantly bigger. There are lots of comments in the file, not only directives for cups like on my workstation. </p><p>Interesting troubeshooting ...</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Fri, 08 Sep 2023 17:51:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44171#p44171</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44169#p44169</link>
			<description><![CDATA[<p>Only my 2 pennies to it:<br />now I usually install Devuan (Daedalus) plain standard, Cinnamon DE, Console Productivity, SSH Server and Standard System Utilities, choosing OpenRC etc.<br />I don&#039;t even bother to check or configure any printer.<br />The CUPS-Browsed or Bonjour protocols seem to do all work.<br />When i check in Menu - Administration - Print Settings, my printer is already there. The same holds true for the scanner (MFP Printers).<br />This automatic setup seems to work with several modern printer brands. I can confirm this for Brother, HP and Canon.<br />I wonder if your Kyocera is an older model or configured differently.<br />My printer was set up just by connecting it to power and the internal network (I gave it a fixed IP address in the same subnet as the workstations)<br />So, maybe, this could work for modern Kyocera printers as well???</p>]]></description>
			<author><![CDATA[dummy@example.com (Andre4freedom)]]></author>
			<pubDate>Fri, 08 Sep 2023 16:47:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44169#p44169</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44168#p44168</link>
			<description><![CDATA[<p>So you have a bad config file, which is likely why the service fails to start.</p><p><a href="https://manpages.debian.org/bookworm/cups-daemon/cupsd.conf.5.en.html" rel="nofollow">cupsd.conf</a> should not be a binary file - what is telling you that it is? (The error log say there are unknown directives, which suggest it is <em>not</em> binary, but maybe for a different version.)</p><p>Try checking <span class="bbc">file /etc/cups/*cupsd*</span> to see if you have a backup that reports as &quot;ASCII text&quot; - if so, you could try <span class="bbc">diff</span> to see if it can identify a problem, and/or <em>rename</em> the current bad file and <em>copy</em> the backup file into its place.</p>]]></description>
			<author><![CDATA[dummy@example.com (boughtonp)]]></author>
			<pubDate>Fri, 08 Sep 2023 16:25:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44168#p44168</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44167#p44167</link>
			<description><![CDATA[<p>Ping to localhost works as well as printing.</p><div class="codebox"><pre><code>$ ping -c 5 localhost
PING localhost(localhost (::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.014 ms
64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.037 ms
64 bytes from localhost (::1): icmp_seq=3 ttl=64 time=0.030 ms
64 bytes from localhost (::1): icmp_seq=4 ttl=64 time=0.037 ms
64 bytes from localhost (::1): icmp_seq=5 ttl=64 time=0.030 ms

--- localhost ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4088ms
rtt min/avg/max/mdev = 0.014/0.029/0.037/0.008 ms</code></pre></div><p>curl does not work either</p><div class="codebox"><pre><code>$ curl -Iv localhost:631
*   Trying 127.0.0.1:631...
* connect to 127.0.0.1 port 631 failed: Verbindungsaufbau abgelehnt
*   Trying [::1]:631...
* connect to ::1 port 631 failed: Verbindungsaufbau abgelehnt
* Failed to connect to localhost port 631 after 0 ms: Couldn&#039;t connect to server
* Closing connection 0
curl: (7) Failed to connect to localhost port 631 after 0 ms: Couldn&#039;t connect to server</code></pre></div><p>No output on</p><div class="codebox"><pre><code># ss -ltnp sport 631
State         Recv-Q         Send-Q                  Local Address:Port                   Peer Address:Port         Process</code></pre></div><p>Log entries</p><div class="codebox"><pre><code># tail /var/log/cups/*_log
==&gt; /var/log/cups/access_log &lt;==
localhost - - [08/Sep/2023:14:10:30 +0200] &quot;POST / HTTP/1.1&quot; 200 152 Cancel-Subscription successful-ok
localhost - - [08/Sep/2023:17:33:48 +0200] &quot;POST / HTTP/1.1&quot; 200 349 Create-Printer-Subscriptions successful-ok
localhost - - [08/Sep/2023:17:33:48 +0200] &quot;POST / HTTP/1.1&quot; 200 176 Create-Printer-Subscriptions successful-ok
localhost - - [08/Sep/2023:17:36:11 +0200] &quot;POST / HTTP/1.1&quot; 200 360 Create-Printer-Subscriptions successful-ok
localhost - - [08/Sep/2023:17:37:20 +0200] &quot;POST / HTTP/1.1&quot; 401 123 Cancel-Subscription successful-ok
localhost - root [08/Sep/2023:17:37:20 +0200] &quot;POST / HTTP/1.1&quot; 200 123 Cancel-Subscription successful-ok
localhost - - [08/Sep/2023:17:37:20 +0200] &quot;POST / HTTP/1.1&quot; 200 152 Cancel-Subscription successful-ok
localhost - - [08/Sep/2023:17:38:23 +0200] &quot;POST / HTTP/1.1&quot; 200 349 Create-Printer-Subscriptions successful-ok
localhost - - [08/Sep/2023:17:38:23 +0200] &quot;POST / HTTP/1.1&quot; 200 176 Create-Printer-Subscriptions successful-ok
localhost - - [08/Sep/2023:17:38:32 +0200] &quot;POST / HTTP/1.1&quot; 200 360 Create-Printer-Subscriptions successful-ok

==&gt; /var/log/cups/error_log &lt;==
E [08/Sep/2023:17:33:48 +0200] Unknown directive SubscriptionPrivateValues on line 128 of /etc/cups/cupsd.conf.
W [08/Sep/2023:17:33:48 +0200] Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103
E [08/Sep/2023:17:33:48 +0200] Missing value on line 2039 of /var/cache/cups/job.cache.
W [08/Sep/2023:17:38:23 +0200] Duplicate listen address &quot;/run/cups/cups.sock&quot; ignored.
E [08/Sep/2023:17:38:23 +0200] Unknown directive JobPrivateAccess on line 125 of /etc/cups/cupsd.conf.
E [08/Sep/2023:17:38:23 +0200] Unknown directive JobPrivateValues on line 126 of /etc/cups/cupsd.conf.
E [08/Sep/2023:17:38:23 +0200] Unknown directive SubscriptionPrivateAccess on line 127 of /etc/cups/cupsd.conf.
E [08/Sep/2023:17:38:23 +0200] Unknown directive SubscriptionPrivateValues on line 128 of /etc/cups/cupsd.conf.
W [08/Sep/2023:17:38:23 +0200] Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103</code></pre></div><p>Can&#039;t read cupsd.conf, is a binary file. </p><p>Looks like no cups service is running, but why? Restarting the service has no effect on the problem.</p><div class="codebox"><pre><code># sh /etc/init.d/cups start
Starting Common Unix Printing System: cupsd.
# ss -ltnp sport 631
State                    Recv-Q                    Send-Q                                       Local Address:Port                                        Peer Address:Port                    Process</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Fri, 08 Sep 2023 16:04:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44167#p44167</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44165#p44165</link>
			<description><![CDATA[<div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>my up to date FF-ESR tells me no connection to <span class="bbc">https://localhost:631</span>.</p></div></blockquote></div><p>Browsers frequently hide real errors, and complicate things with caches and cookies; usually better to diagnose things directly.</p><p>What does <span class="bbc">curl -Iv localhost:631</span> say?</p><p>Check with <span class="bbc">ss -ltnp sport 631</span> (as sudo/root) whether the server is running?</p><p>Anything relevant in the logs - i.e: <span class="bbc">tail /var/log/cups/*_log</span> ?</p>]]></description>
			<author><![CDATA[dummy@example.com (boughtonp)]]></author>
			<pubDate>Fri, 08 Sep 2023 14:15:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44165#p44165</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44161#p44161</link>
			<description><![CDATA[<p>Using http or https makes no difference. Emptied the cache, cookies, still doesn&#039;t work. A ping to 127.0.0.1 or localhost is working.</p><p>Crosschecked against my laptop: same FF-ESR version on board, connection to localhost:631 is possible, I get the cups menu. </p><p>Compared hosts and interfaces contents, the same for localhost. Difference between the two systems is that I let the network-manager handle all connections on the laptop while I use fixed IPs on my workstation. </p><p>Is it possible that I get interference from there? Tried to remove the network-manager on my workstation, but that also wants to remove Cinnamon.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Fri, 08 Sep 2023 11:38:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44161#p44161</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44157#p44157</link>
			<description><![CDATA[<p>@rolfie, use http without the s</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 08 Sep 2023 00:19:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44157#p44157</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44155#p44155</link>
			<description><![CDATA[<p>I&#039;m on FF102.10.0esr (64-bit) and it works for me.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dutch_Master)]]></author>
			<pubDate>Thu, 07 Sep 2023 21:32:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44155#p44155</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44154#p44154</link>
			<description><![CDATA[<p>Tried that, no effect. Printing works.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Thu, 07 Sep 2023 21:19:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44154#p44154</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44153#p44153</link>
			<description><![CDATA[<p>Is CUPS actually running?</p><p>As root, do:</p><div class="codebox"><pre><code>sh /etc/init.d/cups start</code></pre></div><p>Then try connecting to localhost:631 again.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dutch_Master)]]></author>
			<pubDate>Thu, 07 Sep 2023 20:50:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44153#p44153</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Connection to localhost:631]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44152#p44152</link>
			<description><![CDATA[<p>I am running Daedalus with Cinnamon and Firefox ESR since about 10 months on my workstation. I did set up my Kyocera P6230 when configuring the system during this time, and I did use <span class="bbc">https://localhost:631</span> in FF to configure my printer. Now I tried again to see if I could find some settings again, and my up to date FF-ESR tells me no connection to <span class="bbc">https://localhost:631</span>.</p><p>I have checked hosts, network settings and anything I could think about. Could find nothing wrong. No more connection to localhost re. setting up cups. Can&#039;t tell when I last used it. </p><p>What may have changed meanwhile?</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Thu, 07 Sep 2023 20:45:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44152#p44152</guid>
		</item>
	</channel>
</rss>
