OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Setup & Installation => Topic started by: arr531 on March 18, 2016, 01:05:39 am

Title: Problem installing eCups 2.1
Post by: arr531 on March 18, 2016, 01:05:39 am
Hi all, I am trying to install the eCups 2.1 port on an os/2 4.52 system and it is giving me all kinds of grief. I double checked with the Arca Noae Package Manager that I had all the dependencies installed according to the online readme file at netlags.org. These 4 wpi packages refuse to install because I get a message stating that:"netlabs.org\eCups\cups is referenced as a macro but is not installed. Terminated.

ghostscript-9_1_5.wpi
cups-base-2_1_0.wpi
gutenprint-5_2_10.wpi
cupsgui.wpi

Has anyone actually gotten this to install?

adam
Title: Re: Problem installing eCups 2.1
Post by: Greggory Shaw on March 18, 2016, 10:43:38 pm
...

Has anyone actually gotten this to install?

adam

One, you have to include a lot more information on what's actually not woking (not just saying it doesn't work) ?


Also, did you do a search on the forum first for this topic (everyone skips that part too:)  )?

http://www.os2world.com/forum/index.php/topic,631.0.html

Did you read the Howto:

http://trac.netlabs.org/ecups/wiki/HowTo
Title: Re: Problem installing eCups 2.1
Post by: David McKenna on March 18, 2016, 11:03:33 pm
 Installed fine here. You need to start the install by double clicking cups-base-2_1_0.wpi. Everything will be installed from there. Make sure you read everything here: http://trac.netlabs.org/ecups/wiki/CupsPort and in the instructions when you start the install.
Title: Re: Problem installing eCups 2.1
Post by: arr531 on March 20, 2016, 11:22:39 pm
Okay I downloaded all the needed wpi files and burned onto a cd. I had no problem installing it after that. Cups-daemon server starts and runs fine. Unable to create a printer object with the cups printer wizard. I checked the log file in \var\log and it states SYS0002: The system cannot find the file specified. "CUPS". I also tried setting up the printer with the cups administrator page in Firefox and then trying to print a test page. The error states something about loadfile error temp file: not PDF if memory serves. I will try again and get the exact message. I will check the error log and see what else it says. At least I have the daemon server running. I do understand the only cable connection supported is usb but I didn't find anything about network. It is a wifi networked - no cable connection. I did try usb but it did the same thing with that..I will check the netlabs.org website and the readme files to see if there is something I have missed but this is a fresh install with all the needed wpi packages according to the netlabs.org eCups how to page.
Title: Re: Problem installing eCups 2.1
Post by: arr531 on March 22, 2016, 01:40:40 am
IT'S ALIVE! IT'S ALIVE....

Oh sorry. I now am able to print test pages from the CUPS Web interface. It is not hooked up via usb but going wifi. I remmed out the Listen directive in the cupsd.conf file that tells it to listen to cups\var\run\cups\cups.sock. The file does not exist. The only Listen directive I have now is Listen localhost:631. Okay that is 1 of 2 issues solved. Now I have to figure out why I cannot create a printer object with the CUPS printer wizard. It is still unable to create it and it stills states in the error log the specified file does not exist 'CUPS'. I'm getting there, I'm getting there.
Title: Re: Problem installing eCups 2.1
Post by: arr531 on March 23, 2016, 02:36:56 am
Hmm, was there a warpin package i missed? I double checked and was pretty sure I downloaded and installed all the necessary ones. CUPS printer server is running fine. I can print a test page. The cups printer wizard still refuses to create a printer object. The log still keeps saying

SYS0002: The system cannot find the file specified. "CUPS"

This was a fresh warpin install.
Title: Re: Problem installing eCups 2.1
Post by: David McKenna on March 23, 2016, 10:05:29 pm
 You installed 'cupsgui.wpi'? If you did, it is in the c:\cups directory as cupswiz.exe. Start it from there...
Title: Re: Problem installing eCups 2.1
Post by: Pete on March 24, 2016, 02:23:15 am
Hi adam

The error looks like it may be a case of cupswiz not finding the cups20.dll file...

Try putting a copy in \os2\dll or anywhere else on the libpath and see what happens. If you get the same error try copying cups20.dll to cups.dll (in \os2\dll).


Regards

Pete
Title: Re: Problem installing eCups 2.1
Post by: arr531 on March 24, 2016, 02:39:27 pm
Hi Pete, thanks. That worked copying cups20.dll to cups.dll in \os2\dll. But now I am back to the original problem of not being able to print a test page. This is again what the error log states:

E [23/Mar/2016:15:38:39 +0000] [cups-driverd] Bad line from "gutenprint.5.2.exe": "gutenprint.5.2.exe://
E [23/Mar/2016:15:39:53 +0000] [cups-driverd] Bad line from "gutenprint.5.2.exe": "gutenprint.5.2.exe://
E [24/Mar/2016:12:34:02 +0000] Unable to open listen socket for address 127.0.0.1:631 - Address already in use.
X [24/Mar/2016:12:34:02 +0000] No Listen or Port lines were found to allow access via localhost.
E [24/Mar/2016:12:55:53 +0000] [Job 12] loadFile failed: temp file: not a PDF file
E [24/Mar/2016:12:55:53 +0000] [Job 12] Can't detect file type
W [24/Mar/2016:13:00:59 +0000] [Job 12] Remote host did not respond with data status byte after 300 seconds!
E [24/Mar/2016:13:05:37 +0000] [Job 13] loadFile failed: temp file: not a PDF file
E [24/Mar/2016:13:05:37 +0000] [Job 13] Can't detect file type
E [24/Mar/2016:13:06:45 +0000] [Client 32] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/13) from localhost
E [24/Mar/2016:13:24:18 +0000] [Job 14] loadFile failed: temp file: not a PDF file
E [24/Mar/2016:13:24:18 +0000] [Job 14] Can't detect file type

Remarking out the Listen directive in the cupsd.conf worked before but apparently it is not now. I checked the Listen directive in the cupsd.conf file again. It is listening to localhost:631. It is strange I thought installing all this through WarpIN packages would have taken care of this but I guess not. Oh well - it is what it is.
Title: Re: Problem installing eCups 2.1
Post by: Silvan Scherrer on March 24, 2016, 03:09:13 pm
Hi Pete, thanks. That worked copying cups20.dll to cups.dll in \os2\dll. But now I am back to the original problem of not being able to print a test page. This is again what the error log states:

E [23/Mar/2016:15:38:39 +0000] [cups-driverd] Bad line from "gutenprint.5.2.exe": "gutenprint.5.2.exe://
E [23/Mar/2016:15:39:53 +0000] [cups-driverd] Bad line from "gutenprint.5.2.exe": "gutenprint.5.2.exe://
E [24/Mar/2016:12:34:02 +0000] Unable to open listen socket for address 127.0.0.1:631 - Address already in use.
are you sure nothing else is running already? as it seems like the port is locked. see above.

regards
Silvan
Title: Re: Problem installing eCups 2.1
Post by: arr531 on March 24, 2016, 03:57:53 pm
Duh to me.! I forgot the firewall was up and running. I am going to have to open up port 631 on it. It prints out a test page now. Thanks. Now where is that kicking machine... :)
Title: Re: Problem installing eCups 2.1
Post by: Alex Taylor on March 24, 2016, 04:57:40 pm
I think that SYS0002 message is probably coming from lpadmin.exe, although without the full context (i.e. log) I can't be sure.

However, lpadmin.exe from CUPS 2.1.0 has no dependency on CUPS.DLL.  In fact, nothing in CUPS 2.1.0 should have a dependency on CUPS.DLL.  So I can only guess you might have an old version of the executable lying around somewhere that is getting called by mistake.
Title: Re: Problem installing eCups 2.1
Post by: Pete on March 25, 2016, 01:07:17 pm
Hi Alex

Does cupswiz check for cups.dll when creating the OS/2 printer?

I ask because on reading Adams post it looks to me as though the cups printer is sorted and printing a test page; it is when creating the OS/2 printer that the error occurs.


Regards

Pete
Title: Re: Problem installing eCups 2.1
Post by: arr531 on March 25, 2016, 03:00:18 pm
Hi guys, the printer wizard is working fine now but still no printing. I decided to start from scratch and I deleted the printer from within the cups web interface and then ran the cups printer wizard to create a printer. It is there in the cups web interface page but when I tell it to print a test page, this what it states in the error log concerning the job:

E [25/Mar/2016:13:54:53 +0000] [Job 37] loadFile failed: temp file: not a PDF file
E [25/Mar/2016:13:54:53 +0000] [Job 37] Can't detect file type

I did check on multiple instances of lpadmin.exe. Only found 1 other instance of it and that was in c:\user\sbin.

adam

Title: Re: Problem installing eCups 2.1
Post by: arr531 on March 25, 2016, 03:15:05 pm
I probably shouldn't have remmed out the Listen /cups/var/run/cups/cups.sock directive but that was giving me errors before because the files are not there, just the certs folder. Maybe that is what this whole mess is about.- the file doesn't exist. I didn't mention this earlier and I apologize for not doing so but this is Warp 4.52 with fixpak 6 running inside VirtualBox with Ubuntu 14.04.4 LTS as the host on a Lenovo T61. The connection is wifi and not usb. Do you think this may have anything to do with it?

adam
Title: Re: Problem installing eCups 2.1
Post by: Pete on March 25, 2016, 08:10:37 pm
Hi Adam

I often see those errors with my first attempt at printing for the day - sometimes it takes 3 attempts before the job gets to the printer.

However, when booted from a different boot volume on the same system and using the existing working cups installation I do not seem to be able to get past these errors at all. My best guess so far is that something in cups needs a DLL file that is installed on the boot drive - possibly in \ecs\dll or \os2\dll - and that (or those) DLL file(s) installed on the non-working system are not at the correct level.  I have not discovered which DLLs may be involved yet...


Regards

Pete
Title: Re: Problem installing eCups 2.1
Post by: Paul Smedley on March 25, 2016, 10:28:26 pm
I probably shouldn't have remmed out the Listen /cups/var/run/cups/cups.sock directive but that was giving me errors before because the files are not there, just the certs folder. Maybe that is what this whole mess is about.- the file doesn't exist.

This warning is 100% harmless...
Title: Re: Problem installing eCups 2.1
Post by: arr531 on March 25, 2016, 11:07:50 pm
Okay Paul, well I guess that torpedoes that theory out of the water. :) Well I guess I am stumped as to what is causing the Loadfile temp messages.

adam
Title: Re: Problem installing eCups 2.1
Post by: Paul Smedley on March 26, 2016, 12:02:35 am
Hi Adam,

Okay Paul, well I guess that torpedoes that theory out of the water. :) Well I guess I am stumped as to what is causing the Loadfile temp messages.

Can you change LogLevel to debug2 and generate a log of an attempt to print a testprint, and either attach the log here or email it to me?

Cheers,

Paul
Title: Re: Problem installing eCups 2.1
Post by: arr531 on March 26, 2016, 07:13:55 pm
H Paul, the error log is apparently too large ti attach and I do not have an email for you so if you could give me email than I would have no problem sending it to you. You did say set it to degub2 correct? After I did that and restarted the cups server it spitted out the last 3 test pages I had sent before I changed the log level. Weird. It's great work you are doing with this. Maybe it just doesn't like me. :).

adam
Title: Re: Problem installing eCups 2.1
Post by: Pete2 on March 29, 2016, 09:54:54 pm
Hello! I'm also having problems installing eCUPS 2.1 . I installed the base, HP-LIP, ecups_HP driver and wizard packages, and replaced cups20.dll in ecs\dll with the new version. I used the wizard to try to create a printer (I like the fact that the HP deskjet 2510 is now listed) but it failed. Relevant part of the log is attached - I think the problem occurs where it says 'broken pipe'. I'm not sure what to try to fix this.
Title: Re: Problem installing eCups 2.1
Post by: Pete on March 30, 2016, 04:28:25 am
Hi Pete2

No, the Boken pipe message is not the problem - looks like it closed successfully on the next line.

Point your browser to http://localhost:631/admin and check the "Save debugging information for troubleshooting" checkbox to get a much more comprehensive error log which should help identify the problem.

While you are using the interface you could also create the cups printer and print a test page. That would help trackdown if the bug is in the cups wizard or elsewhere.


Regards

Pete


Title: Re: Problem installing eCups 2.1
Post by: Pete2 on April 01, 2016, 12:16:07 am
Hi Pete. Since my last post I've deleted all and re-installed, and this time the wizard was able to create a printer object with no problems. So that problem was probably something left around from 2.03, and it just needed a thorough enough uninstall. Now I can't print the test page - I'm getting  'not a pdf file' or 'unrecognized file type' errors. I've set log level to debug2 and  part of the log file is attached.

Thanks
Pete
Title: Re: Problem installing eCups 2.1
Post by: arr531 on April 01, 2016, 12:27:25 am
Yep, same type of stuff I was getting until I switched the debug level to debug2. After that it did spit out some test pages I attempted to print earlier but it refused. It has never allowed me to print from an app despite the cups wizard now being able to create a printer object. Maybe I will take another look at the eCups website and see if there is something I overlooked. I still think it is strange that I had to burn all the wpi packages on a cd before it would install. Not doing that it kept complaining about drive d not being ready.

adam
Title: Re: Problem installing eCups 2.1
Post by: Pete on April 01, 2016, 07:24:12 pm
Hi Pete2

I see that failure to print at least once a day - usually the first print job of the day. Cancelling the job and then starting the print job again usually works.


Regards

Pete
Title: Re: Problem installing eCups 2.1
Post by: arr531 on April 01, 2016, 10:55:33 pm
Hmm, it never has for me. It only started printing out some attempts after I switched the logging level to debug2. I have not tried since a couple of days ago.

adam
Title: Re: Problem installing eCups 2.1
Post by: arr531 on April 07, 2016, 02:01:00 am
Hmm, this is interesting. I just now noticed that clicking Print in applications cause the application to quit. It apparently is system wide to. Apache Open Office apps just quit. Test Editor spits out a dialog box about an exception error EGPFault. I wonder if there is an error log that recorded the problem. Let me check... I will see if any other apps with printing capability go "POOF!" when I click print.

adam

...Curious- the EPM editor does not crash. It seems like it is the only one that does not do a houdini when I click Print. It doesn't print anything but it doesn't go "POOF!" either. Weird.
Title: Re: Problem installing eCups 2.1
Post by: Alex Taylor on April 07, 2016, 05:44:35 am
Hmm, this is interesting. I just now noticed that clicking Print in applications cause the application to quit. It apparently is system wide to. Apache Open Office apps just quit. Test Editor spits out a dialog box about an exception error EGPFault. I wonder if there is an error log that recorded the problem. Let me check... I will see if any other apps with printing capability go "POOF!" when I click print.

Look for a POPUPLOG.OS2 entry. 

Are you using an imported PPD driver?  Also, which printer DRV: ECUPS.DRV, ECUPS-HP.DRV, PSCRIPT.DRV or PSPRINT.DRV?
Title: Re: Problem installing eCups 2.1
Post by: arr531 on April 07, 2016, 04:39:17 pm
I have already checked the POPUPLOG.OS2 file. The only entry in there relating to the ECUPS.DRV driver is this:

03-26-2016  18:54:05  SYS3175  PID 0124  TID 0003  Slot 0094
C:\OS2\APPS\OS2CHESS.EXE
c0000005
1f157393
P1=00000001  P2=00000007  P3=XXXXXXXX  P4=XXXXXXXX 
EAX=00000000  EBX=00c87818  ECX=00c87a64  EDX=00000007
ESI=1b2b6e84  EDI=00c87a66 
DS=0053  DSACC=f0f3  DSLIM=ffffffff 
ES=0053  ESACC=f0f3  ESLIM=ffffffff 
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:1f157393  CSACC=f0df  CSLIM=ffffffff
SS:ESP=0053:00c87438  SSACC=f0f3  SSLIM=ffffffff
EBP=00c876ac  FLG=00012202

ECUPS.DRV 0001:00017393 

I did play some os/2 chess on that day. I don't see why that would have anything to do with the apps not printing though.

eCups printer driver is designated as ECUPS.0. Output port is designated as CUPS2 Localhost:Epson_WordForce_545. Printer is wifi and not connected via USB. The printer object was created by the eCups printer wizard.

adam
Title: Re: Problem installing eCups 2.1
Post by: arr531 on April 07, 2016, 06:46:59 pm
I tied it at a command line with lpr. I then checked the Cups admin page and it is still doing the Loadfile temp and file not a PDF file issue. It always seems to be that. I think I will just uninstall it and say the heck with it. Besides, it only let's me install the packages if they are on a cd - not from the virtual machines hard drive. It is the only warpin packages I have found that display this behavior.  It's not worth it.It is not necessary I print from the os/2 virtual machine. I can print just fine using the version of Cups on the Linux host machine. Thanks for the help anyways guys. I do appreciate it.

adam
Title: Re: Problem installing eCups 2.1
Post by: arr531 on April 08, 2016, 12:43:05 am
Okay so I had a change of heart and decided to try one more time. I went into the properties for the Epson_Workforce_545 printer object and looked at the list of installed printer drivers. 2 listed - ECUPS.0 and IBMNULL. I right clicked on the ECUPS.0 object and went to Install - New Device. A dialog popped up with a list of drivers that it pulled from c:\os2\dll\ecups. Did not find an Epson Workforce 545 but did find an Epson Workforce 500 and 600. Chose the 500. Now none of the apps crash when I select Print and it comes up with a print dialog. I selected print for a short file I had loaded in the text editor and it printed. I will try some other apps to see if they will now print. Weird - so not as an automated print setup as I would have wanted but it seems to be working now.

adam
Title: Re: Problem installing eCups 2.1
Post by: arr531 on April 08, 2016, 04:34:54 pm
Wow, this is incredible. I booted up today and tried to print from OpenOffice Writer and the thing is right back to the same issues. It is either Can't Detect File Type or the Loadfile Temp not a pdf file or sometimes it just says Pending since whatever date and nothing prints. I can see it popup in the Printer window for the printer but nothing. It must have been a fluke yesterday when I got it working. I give up. This is just too unstable on my system. Maybe you guys have gotten it to work on your setup and more power to you but it is just too screwy on mine. Unless it is a Virtualbox issue - I have no idea.

adam

oh there is one more thing I just noticed, all the jobs I attempt to sned from applications - the user is always designated as "Withheld".
Oh and here is one of the error messages: Processing - "Exception: qpdf output: Pl_StdioFile::write: Broken pipe" - when I click on the printer link it states Can't detect file type.
Title: Re: Problem installing eCups 2.1
Post by: arr531 on April 09, 2016, 12:54:50 am
Okay guys, I have finally given up the ship on cups - I just cannot get it to work reliably. I have uninstalled the entire package. I just ran out of ideas to try. So I consider this thread closed.

adam
Title: Re: Problem installing eCups 2.1
Post by: Dave Yeo on April 09, 2016, 07:17:31 am
Have you considered using RPM/YUM to install CUPS? It's in the experimental repository and Bitwise seems to be handling it and they'd probably be more receptive to bug reports
Title: Re: Problem installing eCups 2.1
Post by: arr531 on April 09, 2016, 01:25:35 pm
I don't know maybe. I will at least look into it but I don't think it would make much of a difference. Like I stated before, I can print using cups through the host machine so there is not a need to do it through OS/2. I will at least take a look at it though. Thanks.

That's a dead-end too. I added the experimental repos to the package manager. It downloaded and installed the cups-libs 2.1.3-3 package fine but when it got to the cups-client 2.1.3-3 packaged it errored out saying there was an error downloading the package. So I am done with it. Maybe I I will wait a month or 2 and try it again but for right now. I am going to leave it be.
Title: Re: Problem installing eCups 2.1
Post by: Pete2 on April 21, 2016, 01:31:32 pm
Me again. I uninstalled the WarpIn  cups base, filters and HPLIP packages, then reinstalled from the zip files, leaving the wizard, port and ecups-HP driver in place. I created a printer using the wizard. Test print from the web interface worked on second attempt, and I can print ok from OpenOffice. Make of that what you will.

Pete