Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cups failed...due to removing hplip? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Sat Feb 25, 2012 7:39 pm    Post subject: cups failed...due to removing hplip? [SOLVED] Reply with quote

I'm trying to get my printing capabilities back up and running, but get this error:
Quote:
papapenguin ~ # /etc/init.d/cupsd start
* Caching service dependencies ... [ ok ]
* Starting cupsd ... [ !! ]
* ERROR: cupsd failed to start

I have rebuilt cups, but still get the error...could it be because I removed hplip (due to the incessant cartridge error messages in hp products)?

In KDE Printer Configuration, it says:
Quote:
The service 'Printer Configuration' does not provide a module 'KCModule' with keyword 'system-config-printer-kde/system-config-printer-kde.py' The factory does not support creating components of the specified type.

Possible reasons:

- an error occured during your last KDE upgrade by leaving an orphaned control module
- You have old third party modules lying around

Check these points carefully and try to remove the module mentioned in the error message. If this fails, consider contacting your distributor or packager.

Quote:
papapenguin ~ # emerge --info
Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.1-gentoo-r2 x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-50-with-gentoo-2.1
Timestamp of tree: Fri, 24 Feb 2012 21:00:01 +0000
app-shells/bash: 4.2_p20
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.2-r3, 3.2.2
dev-util/cmake: 2.8.7-r3
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1
sys-apps/openrc: 0.9.9.1
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.11.3
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r2
Repositories: gentoo proaudio
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula dlj-1.1 AdobeFlash-10.1 www-plugins/google-talkplugin Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msse3 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -msse3 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi aim alsa amd64 apache2 apng berkdb bluetooth bzip2 cairo caps cdb cddb cdinstall cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus declarative device-mapper dri dv dvb dvd dvdr enca encode extras ffmpeg flac fortran freetype ftp gd gdbm gif gmp gnutls gpm gstreamer gtk gudev hpcups iconv icu imap ipod ipv6 jabber jack jadetex java javascript jingle jpeg kde kontact kpathsea laptop lcms mad matroska melt minizip mmx mng modules mp3 mpeg mplayer msn mssql mudflap multilib mysql mysqli ncurses nls nptl nptlonly nsplugin nvidia objc ogg openexr opengl openmp oscar pam pcmcia pcre pda pdf perl php plasma png policykit ppds pppd python qt-static qt3support qt4 quicktime raw readline reports rss ruby scanner sdl secure-delete semantic-desktop session snmp source sox speex spell splitdebug sql sse sse2 ssl svg sysfs syslog tcpd theora tidy tiff timidity tools truetype udev unicode usb v4l v4l2 vcd video vorbis webkit wifi wv2 xine xinerama xml xmlwriter xorg xv yahoo zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

papapenguin ~ #

_________________
--------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------


Last edited by papapenguin on Sat Mar 31, 2012 10:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Sat Feb 25, 2012 9:55 pm    Post subject: Reply with quote

papapenguin,

is there amything useful in dmesg ?

What happpends if you attempt to start cupsd in a terminal ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Sat Feb 25, 2012 10:19 pm    Post subject: Reply with quote

hi NeddySeagoon,

thanks for replying...

that was the message from terminal...and here is dmesg...not sure if there's anything there...

http://pastebin.com/ATT8VMgr
_________________
--------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Sat Feb 25, 2012 10:31 pm    Post subject: Reply with quote

papapenguin,

Open a root shell and type cupsd to start cups by hand.
Code:
cupsd -t
may help too.
Code:
cupsd -h
will show the options.

-edit-
There is nothing cups related in dmesg. cups should start with missing drivers, you just won't be able to set up your printer in the web interface until you fix that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Sun Feb 26, 2012 12:44 am    Post subject: Reply with quote

here is what those commands produced:
Quote:
papapenguin ~ # cupsd -t
Unknown directive WebInterface on line 30.
Missing <Limit ops> directive before JobPrivateAccess on line 52.
/etc/cups/cupsd.conf contains errors


Quote:
papapenguin ~ # cupsd -h
Usage: cupsd [-c config-file] [-f] [-F] [-h] [-l]

-c config-file Load alternate configuration file
-f Run in the foreground
-F Run in the foreground but detach
-h Show this usage message
-l Run cupsd from launchd(8)


ha ha, where 'launch(eight)' created some sort of emoticon...

line 30 says
Quote:
WebInterface Yes

what else is needed there?

line 52 says
Quote:
JobPrivateAccess default

_________________
--------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Sun Feb 26, 2012 1:17 am    Post subject: Reply with quote

papapenguin,

You are onto something
cupsd -t wrote:
/etc/cups/cupsd.conf contains errors


You can compare your config with mine.
Don't blindly attempt to use my config file - it may be for a different version of cups.

cups will not start while it can't make sense of its config file.

For the record, I get
Code:
NeddySeagoon ~ # cupsd -t
TMPDIR (/tmp/.private/root) has the wrong permissions.
/etc/cups/cupsd.conf is OK
NeddySeagoon ~ #

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Sun Feb 26, 2012 2:07 am    Post subject: Reply with quote

so first things first...

as far as the WebInterface on line 30,

I'm not sure what other options there would be...both of our .conf files say Yes to this feature...

I've tried 'No' as well, and I get:

Quote:
papapenguin ~ # cupsd -t
Missing <Limit ops> directive before JobPrivateAccess on line 52.
/etc/cups/cupsd.conf contains errors

so that leaves the JobPrivateAccess error...

I think I may unmerge cups, run revdep-rebuild, then start again...
_________________
--------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------
Back to top
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Sun Feb 26, 2012 4:11 am    Post subject: Reply with quote

ok, so I did this:

emerge --unmerge cups

then I ran revdep-rebuild

and it rebuilt 6 programs associated with cups, and now it works...
Quote:
papapenguin ~ # cupsd -t
Filter "/usr/libexec/cups/filter/hpcups" for printer "Photosmart_C4380_2" not available: No such file or directory
/etc/cups/cupsd.conf is OK

now I need to figure out how to add my Brother MCF-6710DW...
_________________
--------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum