<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — cannot start cupsd]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=872&amp;type=atom" />
	<updated>2023-07-09T20:38:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=872</id>
		<entry>
			<title type="html"><![CDATA[Re: cannot start cupsd]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6347#p6347" />
			<content type="html"><![CDATA[<p>I appreciate your help. I am looking forward for the next release.</p>]]></content>
			<author>
				<name><![CDATA[nparafe]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=554</uri>
			</author>
			<updated>2023-07-09T20:38:29Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6347#p6347</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cannot start cupsd]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6346#p6346" />
			<content type="html"><![CDATA[<p>Regarding the &quot;conf.d&quot;-advice: This was more meant for debugging a service in general for the future, giving therefore you a helping hint how to do that. In regards for cups: I assume you are using stable-branch. So this was solved some time ago as a Debian-patch given the wrong configuration-statement included. You can therefore rebuild cups for the moment on your own with the files here: <a href="https://git.hyperbola.info:50100/packages/extra.git/tree/cups">https://git.hyperbola.info:50100/packag … /tree/cups</a></p><p>Just download all included and go on with &quot;makepkg -s&quot; than in the corresponding folder. <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>The patch being removed is to be find within the PKGBUILD:</p><div class="codebox"><pre><code>rm -v debian/patches/0006-Debian-Set-LogFileGroup-to-adm.patch || true</code></pre></div><p>So you have already found the error on your own and that is what to be reached as no one can now take this knowledge away. Thanks for debugging! With upcoming 0.4.3-release this is already solved. <img src="https://forums.hyperbola.info/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2023-07-09T20:15:25Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6346#p6346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cannot start cupsd]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6345#p6345" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>throgh wrote:</cite><blockquote><p>You would need to replicate the whole start-process of cups. So you need to get first full root-privileges with &quot;su&quot; and afterwards lookout for what is done under /etc/init.d/cupsd and what parameters are used in /etc/conf.d/cupsd (when available). As long direct related to the package: There is no confd-configuration, so you would nevertheless need to start the daemon with /usr/sbin/cupsd and look for problems and errors when starting.</p></blockquote></div><p>Thank you for your reply.</p><p>If I understood correctly there isn&#039;t a preconfigure settings.Is this why I cannot start it using openrc?</p><p>Some more info:</p><p>A)</p><div class="codebox"><pre><code>cat /etc/init.d/cupsd
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Copyright 2019 Hyperbola Project
# Distributed under the terms of the GNU General Public License, v2 or later

description=&quot;The Common Unix Printing System service&quot;
command=&quot;/usr/sbin/cupsd&quot;

depend() {
    use net
    before nfs
    after logger
}

start_pre() {
    checkpath -q -d -m 0775 -o root:lp /var/cache/cups
    checkpath -q -d -m 0775 -o root:lp /var/cache/cups/rss
    checkpath -q -d -m 0755 -o root:lp /run/cups
    checkpath -q -d -m 0511 -o daemon:sys /run/cups/certs
}</code></pre></div><p>B) </p><div class="codebox"><pre><code> /etc/conf.d/cupsd </code></pre></div><p>&nbsp; is empty</p><p>C) <br />running </p><div class="codebox"><pre><code> /usr/sbin/cupsd </code></pre></div><p>&nbsp; as root gives no error but still I cannot access localhost:631</p><p>D)<br /></p><div class="codebox"><pre><code>/usr/sbin/cupsd -t
Unknown directive LogFileGroup on line 34 of /etc/cups/cups-files.conf.
&quot;/etc/cups/cups-files.conf&quot; contains errors.</code></pre></div><p>E)<br /></p><div class="codebox"><pre><code>awk &#039;NR &lt; 34 { next } { print } NR == 34 { exit }&#039; /etc/cups/cups-files.conf
LogFileGroup adm</code></pre></div>]]></content>
			<author>
				<name><![CDATA[nparafe]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=554</uri>
			</author>
			<updated>2023-07-09T19:49:41Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6345#p6345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cannot start cupsd]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6344#p6344" />
			<content type="html"><![CDATA[<p>You would need to replicate the whole start-process of cups. So you need to get first full root-privileges with &quot;su&quot; and afterwards lookout for what is done under /etc/init.d/cupsd and what parameters are used in /etc/conf.d/cupsd (when available). As long direct related to the package: There is no confd-configuration, so you would nevertheless need to start the daemon with /usr/sbin/cupsd and look for problems and errors when starting.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2023-07-09T18:08:05Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6344#p6344</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[cannot start cupsd]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6343#p6343" />
			<content type="html"><![CDATA[<p>After installing cupsd I get the following error:<br /></p><div class="codebox"><pre><code>doas rc-service cupsd start
 * Starting cupsd ...
 * start-stop-daemon: failed to start `/usr/sbin/cupsd&#039;
 * Failed to start cupsd                                                 [ !! ]
 * ERROR: cupsd failed to start</code></pre></div><div class="codebox"><pre><code>groups
sys disk lp wheel http games network video audio optical storage scanner input power users</code></pre></div>]]></content>
			<author>
				<name><![CDATA[nparafe]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=554</uri>
			</author>
			<updated>2023-07-09T12:59:09Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6343#p6343</id>
		</entry>
</feed>
