From owner-freebsd-questions@freebsd.org Mon Mar 23 02:42:57 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0191427617D for ; Mon, 23 Mar 2020 02:42:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48lzFW08nQz47y3 for ; Mon, 23 Mar 2020 02:42:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.222.12.41]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1MiJhQ-1jmoaC2NYE-00fVCd; Mon, 23 Mar 2020 03:42:50 +0100 Date: Mon, 23 Mar 2020 03:42:50 +0100 From: Polytropon To: "Vlad D. Markov" Cc: "Vlad D. Markov via freebsd-questions" Subject: Re: sane crashes Message-Id: <20200323034250.be7371f1.freebsd@edvax.de> In-Reply-To: <20200322175247.fc82ac9b590f745d35ab47da@aim.com> References: <20200321183703.9566f2b45dd4193a51381291.ref@aim.com> <20200321183703.9566f2b45dd4193a51381291@aim.com> <20200321184307.8fb232b54dd802ae8c0a11bb@aim.com> <20200322093038.1f6933c3e68d6622c7d39427@aim.com> <20200322152424.6fd38112.freebsd@edvax.de> <1270065762.180915.1584894974045@mail.yahoo.com> <20200322175247.fc82ac9b590f745d35ab47da@aim.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:cBarZ2kKr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ORk k+pzN7WF0UKGoq+sfCpBQWyAc6fvw5ZgUsGOkEUlYieF1ioaB4JrzZqEIx6FhrTUKWB5eQA X-Rspamd-Queue-Id: 48lzFW08nQz47y3 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.74) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[aim.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[41.12.222.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.997,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; RCVD_IN_DNSWL_NONE(0.00)[74.192.72.217.list.dnswl.org : 127.0.5.0]; MID_CONTAINS_FROM(1.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.41)[ip: (-0.48), ipnet: 217.72.192.0/20(0.36), asn: 8560(2.17), country: DE(-0.02)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 02:42:57 -0000 On Sun, 22 Mar 2020 17:52:47 -0400, Vlad D. Markov via freebsd-questions wrote: > I think something is broken in my rc subsystem. > > I got past the xsane issue using rc.local to start things. This is possible, but should not be needed. Also note that there _might_ be problems caused by the point in time during the system startup process when /etc/rc.local is being executed (things needed could be started _after_ it). > Then I noticed other things like cupsd & privoxy would not start. > So I went into debug mode and got this: > > root@happy:/var/log # grep cupsd messages > Mar 22 17:34:59 happy root[1302]: /usr/local/etc/rc.d/cupsd: > DEBUG: checkyesno: cupsd_enable is set to YES. > Mar 22 17:34:59 happy root[1303]: /usr/local/etc/rc.d/cupsd: > DEBUG: run_rc_command: start_precmd: cupsd_prestart > Mar 22 17:34:59 happy root[1304]: /usr/local/etc/rc.d/cupsd: > DEBUG: run_rc_command: doit: limits -C daemon /usr/local/sbin/cupsd > Mar 22 17:37:57 happy root[1711]: /usr/local/etc/rc.d/cupsd: > DEBUG: checkyesno: cupsd_enable is set to YES. > root@happy:/var/log # service cupsd status > /usr/local/etc/rc.d/cupsd: DEBUG: checkyesno: cupsd_enable is set to YES. > cupsd is not running.r That is a problem. Does the CUPS error log file contain anything that is related? > So I do this: > > root@happy:/var/log # limits -C daemon /usr/local/sbin/cupsd > root@happy:/var/log # service cupsd status > /usr/local/etc/rc.d/cupsd: DEBUG: checkyesno: cupsd_enable is set to YES. > cupsd is running as pid 1754. > > I am confused. It started via the terminal yet not via the script ( I think). This looks wrong. Can you try re-installing CUPS & related things? Usually, cupsd_enable="YES" in /etc/rc.conf is fully sufficient to get CUPS running. Maybe there is also something wrong that similarly stops DBus from running? It should not matter if CUPS is started interactively or by the rc.d subsystem - at least not to CUPS... If, by some reason, your OS is damaged, a re-installation (or at least a repair) of the OS could help. Also note the permissions advice from Paul Pathiakis: For testing, prefix sane / xscanimage commands with "sudo"; if you get it working, check the permissions. For example, /etc/devfs.rules can be extended with a ruleset to give certain usb*, ulpt* and xpt* (!) devices to the "cups" group in mode 0660; scanners could also require the pass* devices, if I remember correctly. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...