1832592 Members
3132 Online
110043 Solutions
New Discussion

transferqueue is failing

 
SOLVED
Go to solution
federico_3
Honored Contributor

transferqueue is failing

I'm trying to move the printers configuration from a system to another one but i'm getting the error message:

Failed to configure the spooler queue. Aborting the operation!
11 REPLIES 11
Steve Steel
Honored Contributor

Re: transferqueue is failing

Hi


At a guess dns

using DNS, in put the IP address instead
of the printer name. After this change, test it by a printjob with the lp command .


Did you export and import the system via sam


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
federico_3
Honored Contributor

Re: transferqueue is failing

I have followed the instructions described on /opt/hpnp/TRANSRER.UNX file.......

Can you help me?.. It's very urgent!!!


Federico
Steve Steel
Honored Contributor

Re: transferqueue is failing

Hi

It is almost certainly name lookups

try this

Original system:

-> SAM
-> Printers and Plotters
-> Lp Spooler
-> Save/Restore Spooler Configuration

Then-> Actions
-> Save Spooler Configuration

This will save the information necessary to rebuild the spooler in directory /var/sam/lp.

Tar (/var/sam/lp) :

# tar cvf /tmp/lp.tar /var/sam/lp

Copy tar file, lp.tar, to the target system.

Unpack file on target system :

# tar xvf lp.tar


Execute
-> SAM
-> Printers and Plotters
-> Lp Spooler
-> Save/Restore Spooler Configuration

Choose
-> Actions
-> Restore Spooler Configuration

This will build the lp spooler configuration on the target system using the
information from the source system, creating a "clone" of the old system.


THIS IS IMPORTANT

An error may occur when restoring the spooler if the root umask is set to
something other than 022. The permission on /var/sam/lp and all file
under it could be changed from their defaults, 755 or rwxr-xr-x, with the result
that SAM cannot access the files to perform the restore. The error received in
SAMlog would be something like:

ERROR A problem occurred doing "lpadmin -ptrec_stor
-i/var/sam/lp/interface/trec_st or -v/dev/null ". Stderr from this command is
"/usr/sbin/lpadmin: can't access file "/var/sam/lp/interface/trec_stor"".
* Failed to restore trec_stor.

Steve
If you want truly to understand something, try to change it. (Kurt Lewin)
federico_3
Honored Contributor

Re: transferqueue is failing

Is it normal that after the saving configuration on the initial machine /var/sam/lp/interface in empty? It should not contain the printers drivers( the ones below /etc/lp/interface)


thanks
federico
Steve Steel
Honored Contributor

Re: transferqueue is failing

Hi

No


Should contain data

post
ll /etc /var/spool
ll -trR /var/spool/lp /etc/lp


Steve
If you want truly to understand something, try to change it. (Kurt Lewin)
federico_3
Honored Contributor

Re: transferqueue is failing

I hope this help you in solving my problem....!
Steve Steel
Honored Contributor
Solution

Re: transferqueue is failing

Hi

I can see that the format of /var/spool/lp is wrong as is /etc/lp/interface

There are a lot of files which should not be there

The export and transferqueue are scripts and breaking up on these things

Do
ll -d / /var /var/sam /var/sam/lp
drwxr-xr-x 37 root root 2048 Jun 11 15:38 /
dr-xr-xr-x 24 bin bin 1024 Jul 4 10:44 /var
dr-xr-xr-x 11 bin bin 2048 Jul 1 11:30 /var/sam
drwxrwxrwx 8 root sys 1024 Mar 13 12:51 /var/sam/lp

ll /var/sam/lp
total 8
drwxrwxrwx 2 root sys 96 Mar 13 12:51 cinterface
drwxrwxrwx 2 root sys 96 Mar 13 12:51 class
-rwxr-xr-x 1 root sys 11 Mar 13 12:51 default
drwxrwxrwx 2 root sys 96 Mar 13 12:51 dev
drwxrwxrwx 3 root sys 1024 Mar 13 12:51 interface
-rw-rw-rw- 1 root sys 76 Mar 13 12:51 lpinfo
drwxrwxrwx 2 root sys 96 Mar 13 12:51 member
drwxrwxrwx 2 root sys 96 Mar 13 12:51 sinterface
-rw-rw-rw- 1 root sys 18 Mar 13 12:51 timestamp
topaz:/usr/sam/lbin #

post result but the /var/spool/lp should look like this

ll /var/spool/lp
total 128
-rw------- 1 lp lp 8 Aug 9 2001 .sh_history
prw------- 1 lp lp 0 Jul 3 15:51 CLD_FIFO
prw------- 1 lp lp 0 Jul 3 15:51 FIFO
-rw-rw-rw- 1 lp lp 4 Jun 28 11:18 SCHEDLOCK
lrwxrwxrwt 1 root sys 14 Jan 9 13:07 Tclass -> /etc/lp/Tclass
lrwxrwxrwt 1 root sys 15 Jan 9 13:07 Tmember -> /etc/lp/Tmember
lrwxr-xr-t 1 root sys 18 Jan 9 13:07 cinterface -> /etc/lp/cinterface
lrwxr-xr-t 1 root sys 13 Jan 9 13:07 class -> /etc/lp/class
lrwxr-xr-t 1 root sys 18 Jan 9 13:07 cmodel -> /usr/lib/lp/cmodel
-rwxr-xr-x 1 lp bin 11 Nov 27 2001 default
lrwxr-xr-t 1 root sys 17 Jan 9 13:07 fonts -> /usr/lib/lp/fonts
lrwxr-xr-t 1 root sys 12 Jan 9 13:07 info -> /etc/lp/info
lrwxr-xr-t 1 root sys 17 Jan 9 13:07 interface -> /etc/lp/interface
lrw-r--r-T 1 root sys 15 Jan 9 13:07 log -> /var/adm/lp/log
lrwxrwxrwt 1 root sys 21 Jan 9 13:07 lpana.log -> /var/adm/lp/lpana.log
lrw-r--r-T 1 root sys 19 Jan 9 13:07 lpd.log -> /var/adm/lp/lpd.log
lrwxr-xr-t 1 root sys 14 Jan 9 13:07 member -> /etc/lp/member
lrwxr-xr-t 1 root sys 17 Jan 9 13:07 model -> /usr/lib/lp/model
-rw-r--r-- 1 lp lp 22908 Jul 3 15:51 outputq
-rw-r--r-- 1 lp lp 3024 Jul 3 15:51 pstatus
-rw-r--r-- 1 lp lp 752 Mar 13 12:51 qstatus
drwxr-xr-x 2 lp bin 96 Jun 16 2001 receive
drwxr-xr-x 6 lp bin 1024 Mar 5 16:58 request
-rw-r--r-- 1 lp lp 4 Jul 3 15:51 seqfile
lrwxr-xr-t 1 root sys 18 Jan 9 13:07 sinterface -> /etc/lp/sinterface
lrwxr-xr-t 1 root sys 18 Jan 9 13:07 smodel -> /usr/lib/lp/smodel


steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
federico_3
Honored Contributor

Re: transferqueue is failing

I have cleaned the /var/spool/lp directory removing all the files should not be there..

Look at the attachement.. now the information i'm going to save should be OK for the rebuild......

Am i forgetting anything????

Steve Steel
Honored Contributor

Re: transferqueue is failing

Hi

get rid of request.old

If you can put the request directory back on /var/spool/lp

The rest looks ok

Did you remember to clean out /etc/lp/interface/model.orig from all old files

Try it anyway and look on your source system.

If you can before you save again backup the spool diretcories with tar to another disk

it is better safe

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
federico_3
Honored Contributor

Re: transferqueue is failing

I can't put the request directory back on /var/spool/lp.. Could it be a proiblem???

Another thing: i had no files .old under model.orig. I had those files and also .orig under /etc/lp/interface. I deleted them..

however now i'm going away .. Tomorrow i'll perform the tasks and i'll let you know..


many thanks

federico

federico_3
Honored Contributor

Re: transferqueue is failing

Steve it works!!! I don't know why it did not copy the information under /var/sam/lp/interface that after the saving spooler configuration was empty. I copied by hand /etc/lp/interface in it and now it works!


Thanks