Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Steve Bush on April 27, 2003, 09:38:27 AM
-
I finally got around to upgrading my SME5.0 server to SME5.6U4. I am now getting an error when trying to use expand-template. I performed a new install and restored from backup.
Here is the error:
/sbin/e-smith/expand-template /etc/printcap
Odd number of elements in hash assignment at /usr/lib/perl5/site_perl/esmith/db.pm line 288.
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/DB/db/Record.pm line 132.
Anyone had this error or know how to fix it?
Any help would be greatly appreciated.
-
Steve Bush wrote:
>
> I finally got around to upgrading my SME5.0 server to
> SME5.6U4. I am now getting an error when trying to use
> expand-template. I performed a new install and restored from
> backup.
Move any custom templates that you may have. Then,
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
When you're done, try slowly adding your custom templates back. A great deal was changed from 5.0.
Mike
-
I moved my custom templates out of the etc directory structure, initiated a post-upgrade and reboot. The problem is still there.
I am guessing it has something to do with a db configuration property, but I'm not sure where to look first.
Any suggestions would be greatly appreciated....
Thanks,
Steve
-
Steve Bush wrote:
>
> I moved my custom templates out of the etc directory
> structure, initiated a post-upgrade and reboot. The problem
> is still there.
> I am guessing it has something to do with a db configuration
> property, but I'm not sure where to look first.
First of all, lets make sure our servers look the same.
[root@rabbit root]# cd /etc/e-smith/templates/etc/printcap/
[root@rabbit printcap]# ls
00example 05printer template-begin template-end
[root@rabbit printcap]# ll
total 16
-rw-r--r-- 1 root root 260 Apr 11 2002 00example
-rw-r--r-- 1 root root 1210 Apr 11 2002 05printer
-rw-r--r-- 1 root root 400 Apr 11 2002 template-begin
-rw-r--r-- 1 root root 140 Apr 11 2002 template-end
Is this what you see?
Also look for printers in your accounts db.
[root@rabbit printcap]# grep printer /home/e-smith/accounts
hpdj812c=printer|Address||Description|HP Deskjet 812C|Location|lp0|RemoteName|
printers=system
You went from 5.0 to 5.6? I don't think we have migration code for that, so it's most likely your accounts db file.
Mike
-
Thanks for the help. The printcap directory has the same files and directories as the ones you showed. The printers appear correct in the db file. I must note that any template I try to expand gives me the same error. I will go through the keys one by one with another SME5.6u4 server that I have until I find the descrepancy. I'll report what I find here.
-
Okay, I fixed the problem.
I had created a user "administrator".
For some reason when I deleted that particular user,
I was able to expand-templates.