Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] 404s when accessing parts of cups web interface
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
unclebob
n00b
n00b


Joined: 20 Feb 2006
Posts: 26

PostPosted: Thu Mar 01, 2007 3:37 am    Post subject: [Solved] 404s when accessing parts of cups web interface Reply with quote

Hi.

I get '404 Not Found's when using cups' web interface.
Eg. if I try to load http://localhost:631/ I get a 404.

If I load http://localhost:631/printers I get a page but it's ugly because various other files can't be loaded, eg http://localhost:631/images/tab-left.gif is 404'd.

It's been a long while since I actually used the web interface but it has worked at some point in the past.

Any ideas what to check? I've done a straight re-emerge of cups but that didn't help by itself.

Cheers
UBob.


Last edited by unclebob on Thu Mar 29, 2007 12:29 am; edited 1 time in total
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Mar 01, 2007 3:41 am    Post subject: Reply with quote

Can you post emerge --info

And also the rc-update show plz :)
Back to top
View user's profile Send private message
unclebob
n00b
n00b


Joined: 20 Feb 2006
Posts: 26

PostPosted: Thu Mar 01, 2007 3:53 am    Post subject: Reply with quote

d2_racing wrote:
Can you post emerge --info

Code:

Portage 2.1.2-r9 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 28 Feb 2007 13:00:02 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo http://mirror.pacific.net.au/linux/Gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://ftp.gentoo.or.kr/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 arts berkdb bitmap-fonts bzip2 cdparanoia cli cracklib crypt css cups curl dbus dri dts dvd dvdr dvdread encode exif ffmpeg flac foomaticdb fortran gdbm gphoto2 gpm graphviz gstreamer hal iconv ieee1394 imagemagick isdnlog java jpeg jpeg2k kde libg++ mad midi mozdevelop mozilla mp3 mpeg mplayer musicbrainz ncurses nls nodrm nptl nptlonly nsplugin nvidia ogg openal opengl pam pcre perl png ppds pppd python qt quicktime readline reflection scanner sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xine xorg xv xvid 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


d2_racing wrote:
And also the rc-update show plz :)

Code:

           alsasound | boot
            bootmisc | boot
             checkfs | boot
           checkroot | boot
               clock | boot
         consolefont | boot
               cupsd |      default
                dbus |      default
          fancontrol |      default
                hald |      default
            hostname | boot
             hotplug |      default
               hplip |      default
             keymaps | boot
            lighttpd |      default
          lm_sensors |      default
               local |      default nonetwork
          localmount | boot
             modules | boot
            net.eth0 |      default
              net.lo | boot
            netmount |      default
          ntp-client |      default
                ntpd |      default
           rmnologin | boot
               samba |      default
           syslog-ng |      default
             urandom | boot
          vixie-cron |      default
                 xdm |      default


There you go.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Mar 01, 2007 12:41 pm    Post subject: Reply with quote

Well, I tought that you didn't start your cupsd deamon....but it's there.

do you have something in /var/log/cups/error_log
Back to top
View user's profile Send private message
unclebob
n00b
n00b


Joined: 20 Feb 2006
Posts: 26

PostPosted: Thu Mar 01, 2007 8:44 pm    Post subject: Reply with quote

d2_racing wrote:
do you have something in /var/log/cups/error_log


The error_log starts with about 9000 lines of the cupsdAuthorize error, note that this error doesn't occur on a cupsd restart now, and there has been at least one machine reboot since the 21st which was the last time it occurred.

I tried using Require @SYSTEM, that prevents cupsd from restarting with an unknown directive error.

I changed the SystemGroup to root from lp, that gets rid of the warning but doesn't seem to make any difference to my problem.

Code:
E [21/Feb/2007:09:43:49 +1300] cupsdAuthorize: Local authentication certificate not found!
E [21/Feb/2007:09:43:49 +1300] cupsdAuthorize: Local authentication certificate not found!
I [21/Feb/2007:09:43:49 +1300] Scheduler shutting down normally.
I [21/Feb/2007:09:43:49 +1300] Saving remote.cache...
I [21/Feb/2007:09:43:49 +1300] Saving job cache file "/var/cache/cups/job.cache"...
I [21/Feb/2007:09:43:49 +1300] Listening to 127.0.0.1:631 (IPv4)
W [21/Feb/2007:09:43:49 +1300] "AuthClass System" is deprecated; consider using "Require @SYSTEM" on line 833.
I [21/Feb/2007:09:43:49 +1300] Loaded configuration file "/etc/cups/cupsd.conf"
N [21/Feb/2007:09:43:49 +1300] Group and SystemGroup cannot use the same groups!
I [21/Feb/2007:09:43:49 +1300] Resetting Group to "nobody"...
I [21/Feb/2007:09:43:49 +1300] Using default TempDir of /var/spool/cups/tmp...


Oh, my Location setting for / is:
Code:
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>


So, if I do a /etc/init.d/cups restart now this is what I get in the error_log:
Code:
I [02/Mar/2007:09:39:07 +1300] Scheduler shutting down normally.
I [02/Mar/2007:09:39:07 +1300] Saving remote.cache...
I [02/Mar/2007:09:39:07 +1300] Saving job cache file "/var/cache/cups/job.cache"...
I [02/Mar/2007:09:39:07 +1300] Listening to 127.0.0.1:631 (IPv4)
W [02/Mar/2007:09:39:07 +1300] "AuthClass System" is deprecated; consider using "Require @SYSTEM" on line 833.
I [02/Mar/2007:09:39:07 +1300] Loaded configuration file "/etc/cups/cupsd.conf"
I [02/Mar/2007:09:39:07 +1300] Using default TempDir of /var/spool/cups/tmp...
I [02/Mar/2007:09:39:07 +1300] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [02/Mar/2007:09:39:07 +1300] Configured for up to 100 clients.
I [02/Mar/2007:09:39:07 +1300] Allowing up to 100 client connections per host.
I [02/Mar/2007:09:39:07 +1300] Creating CUPS default administrative policy:
I [02/Mar/2007:09:39:07 +1300] <Policy default>
I [02/Mar/2007:09:39:07 +1300] <Limit Send-Document Send-URI Cancel-Job Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Authenticate-Job>
I [02/Mar/2007:09:39:07 +1300] Order Deny,Allow
I [02/Mar/2007:09:39:07 +1300] Require user @OWNER @SYSTEM
I [02/Mar/2007:09:39:07 +1300] </Limit>
I [02/Mar/2007:09:39:07 +1300] <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
I [02/Mar/2007:09:39:07 +1300] Order Deny,Allow
I [02/Mar/2007:09:39:07 +1300] AuthType Basic
I [02/Mar/2007:09:39:07 +1300] Require user @SYSTEM
I [02/Mar/2007:09:39:07 +1300] </Limit>
I [02/Mar/2007:09:39:07 +1300] <Limit All>
I [02/Mar/2007:09:39:07 +1300] Order Deny,Allow
I [02/Mar/2007:09:39:07 +1300] </Limit>
I [02/Mar/2007:09:39:07 +1300] </Policy>
I [02/Mar/2007:09:39:07 +1300] Full reload is required.
I [02/Mar/2007:09:39:07 +1300] Loaded MIME database from '/etc/cups': 34 types, 39 filters...
I [02/Mar/2007:09:39:07 +1300] Loading job cache file "/var/cache/cups/job.cache"...
I [02/Mar/2007:09:39:07 +1300] Full reload complete.
I [02/Mar/2007:09:39:07 +1300] Listening to 127.0.0.1:631 on fd 2...
 



Thanks
Back to top
View user's profile Send private message
yagu
n00b
n00b


Joined: 13 Oct 2003
Posts: 18

PostPosted: Wed Mar 28, 2007 6:49 am    Post subject: Same problem Reply with quote

Hello, I just had the same problem. Looks like the cups html pages moved. In your cupsd.conf file, change this:


Code:
DocumentRoot /usr/share/cups/docs


To this:

Code:
DocumentRoot /usr/share/cups/html


That seems to have worked for me.

Thanks.
Back to top
View user's profile Send private message
unclebob
n00b
n00b


Joined: 20 Feb 2006
Posts: 26

PostPosted: Thu Mar 29, 2007 12:28 am    Post subject: Re: Same problem Reply with quote

yagu wrote:
Hello, I just had the same problem. Looks like the cups html pages moved.


Yep, that does the trick for me. Thanks yagu.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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