1834595 Members
4159 Online
110069 Solutions
New Discussion

Calendar in CDE/

 
SOLVED
Go to solution
David Heath_1
Advisor

Calendar in CDE/

After a power cut over the weekend, a user has lost all their data that was stored in the calendar feature of CDE. I assume there is a file which holds all the calendar data that just needs to be restored, but where and what file is it?

Any help appreciated.

david.
8 REPLIES 8
Steve Steel
Honored Contributor
Solution

Re: Calendar in CDE/

Hi


man dtcm should suffice to find it.



Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Heiner E. Lennackers
Respected Contributor

Re: Calendar in CDE/

Hi,

lock at /var/spool/calendar/callog.
maybe you have also a calbak. there which is mostly a recent backup of the calendar file.

Heiner
if this makes any sense to you, you have a BIG problem
David Heath_1
Advisor

Re: Calendar in CDE/

Your both not wrong!!!

Supoyurb!!

Many thanks!!

Problem solved!
David
Alex Glennie
Honored Contributor

Re: Calendar in CDE/

look for a file called callog. in /var/spool/calendar, for it to be reread ....
/usr/dt/bin/rpc.cmsd must be killed and restarted. (Don't do this if other users are logged in using dtcm.)

However if the changes have been lost this could be more serious ..... ?
David Heath_1
Advisor

Re: Calendar in CDE/

Arrrghhh!! No it dont work now!!

The user is getting an error about the rpc.cmsd is not running. He can continue into calendar but he cannot see any of his data, even though it is there in the spool/calendar directory. He rebooted but it still brings up the error. In the man page it says that the rpc.cmsd must be put into the inetd.conf, which it isn't on this machine. It is not mentioned in my inetd.conf file either even though my calendar works fine!!

Whats going on, any ideas!? Thank you!!

David
Alex Glennie
Honored Contributor

Re: Calendar in CDE/

For more serious scenario see below ;)

Make sure the inetd is running and the entry in inet.conf for rpc.cmsd is correct:
rpc dgram udp wait root /usr/dt/bin/rpc.cmsd 100068 2-5 rpc.cmsd


Check /var/adm/syslog/syslog.log file

Make sure the calendar file (/var/spool/calendar/callog.userid) exists and is owned by the user:
-r--rw---- 1 zcn daemon 700 Jun 7 1999 callog.zcn


Check permissions on the following files and directories:
/usr/dt/bin/dtspcd 555 bin bin

/usr/dt/bin/rpc.cmsd 555 bin bin

/var/spool/calendar 777 daemon daemon


Ensure that /var/adm/inetd.sec contains an entry:
cmsd allow *


Stop any running rpc.cmsd processes and restart
/usr/dt/bin/rpc.cmsd -d -s

-d Enables debugging output which will be written to stdout.

-s Runs rpc.cmsd in the foreground. This option should be used when rpc.cmsd is invoked manually for debugging purposes.


Then have the user try to open the calendar again. Error messages should be generated and sent to stdout.
David Heath_1
Advisor

Re: Calendar in CDE/

Ok. I have checked all that and everything seems fine. When running the command /usr/dt/bin/rpc.cmsd -d -s, I get the following output:

rpc.cmsd: ping
rpc.cmsd: ping
cms_open_calendar_5_svc called
rpc.cmsd: syntax error
at line 2661
rpc.cmsd: Error reading callog file
at line 2662
rpc.cmsd: unable to parse /var/spool/calendar/callog.username

It stil hasn't returned to the command prompt.

Any ideas as to whats going on.
Alex Glennie
Honored Contributor

Re: Calendar in CDE/

Your users callog file is hosed !

The /var/spool/calendar/callog.[user] file is only written or updated
when an action in the ui version of dtcm or in one of the few commandline version of the /usr/dt/bin/dtcm_*utilities was done.

I suspect the power outage has a lot to do with this ....

How to resolve ?

a) may not be able to ...

b)check the syntax of the callog file at line number for doubling up of entries etc or if you have a backup .... import it it will be quicker.

c) If not remove file and recreate ?