WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Project cancelled] I lack the skills atm  (Read 5018 times)

aus9

  • Guest
[Project cancelled] I lack the skills atm
« on: March 18, 2013, 03:02:12 AM »
Hi

My printer does not work on TC. I will upgrade cups with its new EXTRA  upstream maintainer, cups-filters in the next few days.
cups-filters is basically complete with cups just needing some tidy up actions and so forth

I am calling for volunteers. Yes you sir or madam. If you use a printer, now (well shortly) will be the best time to find out if I can build em correctly.

I have permission from Rich to send a link by pm to any one who opts in to test.

##########
So you can make an informed choice, as I don't know what you have in your backup .filetool.lst or bootlocal.sh, let me tell you what I hope might be good

Before testing:

Make an independent copy (not in filetool.lst) of all files for cups in your tce/optional folder
Make an independent copy of your /usr/local/etc/cupds.conf if its in your filetool.lst
No need to copy your PPD
No need to copy your root password, if you have it in your backup .filetool.lst
copy your current bootlocal.sh somewhere
Make a copy of any other config file for printer somewhere, but not in filetool.lst

b) download the tarball I will pm you later
c) cups-dev and cups-filters-dev will be outside the tarball

remove any cups config from filetool.lst and and cups startup from bootlocal.sh
reboot

unpack tarball and move necessary files to your tce/optional
--- info files, list files are for your info only

Notice new depends include

libcups now depends on libcups-filters
cups now depends on cups-filters

manually start printer, load cups, start cups service as per (new) cups info file

TEST 1  Can you print?
TEST 2 If not use root powers to edit /usr/local/etc/cups/cupsd.conf to "debug" instead of warning
---check log and email me or if small pm me
------this checks that the "server" function of cups works and logs
TEST3 create a root passwd as per info file, or if you have it persisting go to http://localhost:631/admin in your web browser
( I can check this myself but its handy to know it works for you as well)
TEST 4 click on add printer must bring up root passwd dialog box and disappear after correct password input
TEST 5 Now click on admin but now click on find printer
----Do you see your printer string name?
--If its wireless do you see anything?
TEST 6 Assuming you found your printer --redo the PPD pathway from manufacturer
--Did that work?
TEST 7 Can you print? You may need to relook at the log?

WIRELESS ONLY TESTS
If TEST 5 failed then

TEST 8
shutdown cups and start avahi and then cups-browsed
Code: [Select]
sudo /usr/local/etc/init.d/cups stop
sudo /usr/local/etc/init.d/avahi start
sudo /usr/local/etc/init.d/cups-browsed start
sudo /usr/local/etc/init.d/cups start

did all services shutdown or start up cleanly?

TEST 9
repeat TEST 4 and 5
does cups discover your wireless device.

TEST 10
use root powers to edit /usr/local/etc/cups-browsed to change from CUPS to DNSSD
close down and start up as per TEST 8 and retry pls

If not change log to debug and consider emailing me or pm me if its small
#################3
sorry if that scares you, it scares me  8)

I will supply my email when I annouce I am ready for testers, if any are available.

I hope this is not taken as rude, sometimes I am impatient, if no one volunteers after 2 weeks  from publication of my email address, I will wait 2 weeks and then submit.

But while there are negative reports, testers can expect nothing uploaded until we resolve all known issues as you expect ok

######## borking
If you give up, just copy back all files from your independent backup and reboot and test printer works
---if you don't have backups then
---run apps ....maintenance....check for updates
----all printer stuff will be new hits.....but when you click on the info for each on right hand pane...they show they are the existing ones
---process all of them then reboot and retest your printer

Thankyou in advance for considering testing

thanks for reading


« Last Edit: March 19, 2013, 04:10:43 AM by aus9 »

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: CUPS upgrade beta testers request
« Reply #1 on: March 18, 2013, 03:05:35 AM »
these days I have little time, but after I could try

aus9

  • Guest
Re: CUPS upgrade beta testers request
« Reply #2 on: March 18, 2013, 07:36:44 PM »
well I may have wireless thinking all wrong so expect a longer delay before I announce the packages are ready for testing

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11630
Re: CUPS upgrade beta testers request
« Reply #3 on: March 18, 2013, 08:05:53 PM »
Hi aus9
Quote
I have permission from Rich to send a link by pm to any one who opts in to test.
I just want to point out that no one needs my permission to do this. As long as both parties consent, there are no
rules against sending a link via PM to a legally down-loadable file.

aus9

  • Guest
Re: CUPS upgrade beta testers request
« Reply #4 on: March 18, 2013, 09:45:49 PM »
Rich

my apols, then consider it as a remark that the TC team are aware that private messaging may be a resource for TC matters that might lead to some upgrades


aus9

  • Guest
Re: CUPS upgrade beta testers request
« Reply #5 on: March 18, 2013, 10:25:24 PM »
EEK

apparently for cups, make check can not be done as root
doing it as tc I get heaps of errors.

expect nothing for some time folks, I have a lot of reading to do

http://ompldr.org/vaHQ0bQ/cups-str-1.6-2013-03-19-tc.html

AAAH I may have found the first error
cups-filters was correctly built with /usr/local/lib
but cups 1.6.1 with a config of

Code: [Select]
./configure --prefix=/usr/local --sysconfdir=/usr/local/etc --localstatedir=/var --disable-libusb \
--with-fontpath=/usr/local/share/ghostscript/fonts --with-dbusdir=/usr/local/etc/dbus-1 \
--enable-libpaper --enable-unit-tests  --enable-dbus --with-cups-user=tc --with-cups-group=staff --without-languages --enable-debug-printfs

is trying to find files under /usr/lib/cups/filter and not /usr/local/lib/cups/filter

either I need to change my cups config line or I could just add sym links

will look later

thanks for reading
« Last Edit: March 18, 2013, 10:35:32 PM by aus9 »

aus9

  • Guest
Re: CUPS upgrade beta testers request
« Reply #6 on: March 19, 2013, 04:09:57 AM »
well I may have to withdraw my offer to upgrade, after pulling my fist out of the monitor, honest I don't have any anger issues!

I thought I would be smart and go for cups before the upstream split and that is v 1.5.4
I did a reduced number of make test checks but its still ugly

http://ompldr.org/vaHQ2Yg/cups-str-1.5-2013-03-19-tc.html

I have too much to learn here so its the back burner until further notice
thread stopped

aus9

  • Guest
Re: [Project cancelled] I lack the skills atm
« Reply #7 on: April 05, 2013, 02:35:55 AM »
work around part one. April 5 2013 bought a second hand hp deskjet 3050 and connected via usb lead and using PPD from hp-2.7, directly connected to my TC. I bought new black ink as it came with no inks at all. It prints with PDF, image and text separate tests.

Peeking into its PPD filter is
Quote
*cupsFilter: "application/vnd.cups-raster 0 hpcups"

Looking at hplip list and their filters we find
Quote
/usr/local/lib/cups/filter/pstotiff
/usr/local/lib/cups/filter/hpps
/usr/local/lib/cups/filter/hplipjs
/usr/local/lib/cups/filter/hpcupsfax
/usr/local/lib/cups/filter/hpcups
/usr/local/lib/cups/filter/hpcac

Now I need to test ghostscript now that I have a working printer. I will mod and attempt to print using NOT those filters but naming other filters, that looks like will be
Quote
usr/local/lib/cups/filter/gstopxl
usr/local/lib/cups/filter/gstoraster

will edit later
« Last Edit: April 05, 2013, 08:43:29 AM by aus9 »

aus9

  • Guest
Re: [Project cancelled] I lack the skills atm
« Reply #8 on: April 05, 2013, 09:33:40 AM »
well got too cocky didn't I.

lets first stop and start cups with debug log in code box for display purposes, nothing special hits me
Code: [Select]
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[9] = "PATH=/usr/local/lib/cups/filter:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[10] = "SERVER_ADMIN=root@box"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.8"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[13] = "USER=root"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[16] = "IPP_PORT=631"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[17] = "AUTH_TYPE=Basic"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[18] = "LANG=en_US.UTF8"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[21] = "SERVER_NAME=localhost"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[22] = "SERVER_PORT=631"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[25] = "SCRIPT_NAME=/admin"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/local/share/doc/cups/admin"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[27] = "REMOTE_USER=root"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[29] = "HTTP_COOKIE=org.cups.sid=e67c389ae79f3f21021d9e44cfc4a1a0"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[30] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[31] = "HTTP_REFERER=http://localhost:631/printers/HP_Deskjet_3050_J610_series"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[32] = "REQUEST_METHOD=GET"
D [05/Apr/2013:21:23:58 +0000] [CGI] envp[33] = "QUERY_STRING="
D [05/Apr/2013:21:23:58 +0000] [CGI] Started /usr/local/lib/cups/cgi-bin/admin.cgi (PID 13528)
I [05/Apr/2013:21:23:58 +0000] Started "/usr/local/lib/cups/cgi-bin/admin.cgi" (pid=13528)
D [05/Apr/2013:21:23:58 +0000] cupsdSendCommand: 11 file=12
D [05/Apr/2013:21:23:58 +0000] [CGI] admin.cgi started...
D [05/Apr/2013:21:23:58 +0000] [CGI] http=0xb833d948
D [05/Apr/2013:21:23:58 +0000] [CGI] org.cups.sid cookie is "e67c389ae79f3f21021d9e44cfc4a1a0"
D [05/Apr/2013:21:23:58 +0000] [CGI] No form data, showing main menu...
E [05/Apr/2013:21:23:58 +0000] [CGI] smbclient not found!
E [05/Apr/2013:21:23:58 +0000] [CGI] rpcclient not found!
D [05/Apr/2013:21:23:58 +0000] cupsdAcceptClient: 14 from localhost (Domain)
D [05/Apr/2013:21:23:58 +0000] cupsdReadClient: 14 POST / HTTP/1.1
D [05/Apr/2013:21:23:58 +0000] cupsdAuthorize: No authentication data provided.
D [05/Apr/2013:21:23:58 +0000] cupsdReadClient: 14 1.1 Get-Subscriptions 1
D [05/Apr/2013:21:23:58 +0000] Get-Subscriptions ipp://localhost/
D [05/Apr/2013:21:23:58 +0000] Get-Subscriptions client-error-not-found: No subscriptions found.
D [05/Apr/2013:21:23:58 +0000] Returning IPP client-error-not-found for Get-Subscriptions (ipp://localhost/) from localhost
D [05/Apr/2013:21:23:58 +0000] Script header: Content-Type: text/html;charset=utf-8
D [05/Apr/2013:21:23:58 +0000] Script header:
D [05/Apr/2013:21:23:58 +0000] cupsdReadClient: 14 WAITING Closing on EOF
D [05/Apr/2013:21:23:58 +0000] cupsdCloseClient: 14
D [05/Apr/2013:21:23:58 +0000] PID 13528 (/usr/local/lib/cups/cgi-bin/admin.cgi) exited with no errors.
D [05/Apr/2013:21:23:58 +0000] cupsdSetBusyState: Dirty files
D [05/Apr/2013:21:24:07 +0000] cupsdReadClient: 11 GET /admin/log/error_log? HTTP/1.1
D [05/Apr/2013:21:24:07 +0000] cupsdSetBusyState: Active clients and dirty files
D [05/Apr/2013:21:24:07 +0000] cupsdAuthorize: Authorized as root using Basic

filters in PPD have changed to cups mime types but specifically excluding hp filters
Quote
*cupsFilter: "application/vnd.cups-postscript 66 pdftops"
*cupsFilter: "application/vnd.cups-postscript 66 pstops"
*cupsFilter: "application/postscript 33 texttops"
*cupsFilter: "application/vnd.cups-postscript 66 imagetops"
*cupsFilter: "application/postscript 33 bannertops"
*cupsFilter: "application/vnd.cups-raster 100 imagetoraster"
*cupsFilter: "application/vnd.cups-raster 100 gstoraster"

Now as we have restarted cups, lets try to print a small txt file with page access log claiming its a success
localhost - - [05/Apr/2013:21:27:39 +0000] "POST /printers/HP_Deskjet_3050_J610_series HTTP/1.1" 200 5945 Print-Job successful-ok
but nothing printed so lets look at debug

too big to post so its a link
http://ompldr.org/vaHp4Ng/log2132.txt



aus9

  • Guest
Re: [Project cancelled] I lack the skills atm
« Reply #9 on: April 05, 2013, 09:44:39 AM »
so here is my opinion

I [05/Apr/2013:21:27:39 +0000] [Job ???] Request file type is application/pdf.
NO its text file

I [05/Apr/2013:21:27:39 +0000] [Job 5] File of type application/pdf queued by "tc".
Its still not a pdf

D [05/Apr/2013:21:27:39 +0000] [Job 5] envp[21]="CONTENT_TYPE=application/pdf"
ditto

I [05/Apr/2013:21:27:39 +0000] [Job 5] Started filter /usr/local/lib/cups/filter/pdftops (PID 13536)
I [05/Apr/2013:21:27:39 +0000] [Job 5] Started filter /usr/local/lib/cups/filter/pdftops (PID 13537)
Not sure why 2 PIDs but lets move on

D [05/Apr/2013:21:27:39 +0000] [Job 5] pdftops - copying to temp print file "/var/spool/cups/tmp/034e15168fd06"
D [05/Apr/2013:21:27:39 +0000] [Job 5] Started filter gs (PID 13539)
D [05/Apr/2013:21:27:39 +0000] [Job 5] Started filter pstops (PID 13540)
Looks better, it now has started filter gs and trying postscript ..........................I hope

D [05/Apr/2013:21:27:39 +0000] [Job 5] Wrote 1 pages...
D [05/Apr/2013:21:27:39 +0000] [Job 5] PID 13542 (pstops) exited with no errors.
D [05/Apr/2013:21:27:39 +0000] [Job 5] PID 13541 (gs) exited with no errors.
D [05/Apr/2013:21:27:39 +0000] PID 13537 (/usr/local/lib/cups/filter/pdftops) exited with no errors.

No!     no page written my end

what a shame,