I can't restore mao on 1 OXE because I have these logs displayed :
You are going to restore mao-ctree from cpu disk
# For client : xxxx For CPU : xxxx
# for MAO database
# in date of Mon Nov 26 12:02:56 CET 2007
# data version F5.401
Confirm your action (y/n, default y):
Do you wish to secure the restoration (y/n): n
Removing the old database...
Deleting sample data files...
find: ./X25ACCM.mao: Permission denied
find: ./X25APPM.mao: Permission denied
find: ./X25ACCM.mao: Permission denied
find: ./X25APPM.mao: Permission denied
Creating empty dictionary files
newfils finished...
Old database removed.
rm: cannot remove `/DHS3data/mao/X25ACCM.mao': Is a directory
rm: cannot remove `/DHS3data/mao/X25APPM.mao': Is a directory
Restoring data...
/tmpd/BCK_5481/List_to_BCK
/DHS3bin/mtcl/mtcl.cron
/DHS3data/afe/.script_db
/DHS3data/mao/.\xxxxxxxx.sw
/DHS3data/mao/ABX25PRFXM.dat
/DHS3data/mao/ABX25PRFXM.idx
...
/DHS3data/mao/CNXCLUM.idx
cpio: warning: skipped 4096 bytes of junk
/DHS3data/mao/ORDLESSMM.dat
cpio: warning: skipped 2212 bytes of junk/DHS3data/mao/OSINTAPPMM.idx
cpio: warning: skipped 1388 bytes of junk
gunzip: stdin: invalid compressed data--format violated
cpio: premature end of file
ERROR: Restoration failed
ERROR: a problem occured during data restoration
Press return
Did you notice this problem ? How can I resolve it ? I try to launch "create empty database" but th same problem appears !
Before restoring mao, I update this OXE with a bash script based on "mgr -nodico" command to apply the configuration and I wonder if this problem could become from this script ?!
Thank you in advance for your answer !
Problem when restore mao : ./X25ACCM.mao: Permission denied
- tot3nkopf
- Alcatel Unleashed Certified Guru

- Posts: 4058
- Joined: 02 Feb 2006 10:41
- Location: Germany & Romania
- Contact:
Re: Problem when restore mao : ./X25ACCM.mao: Permission denied
Did you tried chmod command from root with that files? (for instance chmod 755 xxxx)
-
Gedeon
Re: Problem when restore mao : ./X25ACCM.mao: Permission denied
chmod is not the solution, but chown mtcl:tel /usr3/mao/*dat /usr3/mao/*idx[/b ]is good to reassign all database files to the good owner.
Permission denied when you delete a file ==> this file is to a other user
But, errors with gzip and cpio are a problem from the quality of the archive, the backup is altered.
You can restore from other backup, like automatic backyp (mao for rebuild) from the disk or 4760.
X25ACCM, CNXCLUM are not important for normal PBX usage, but when files are damaged in an archive, the other files are not very sure.
G.
Permission denied when you delete a file ==> this file is to a other user
But, errors with gzip and cpio are a problem from the quality of the archive, the backup is altered.
You can restore from other backup, like automatic backyp (mao for rebuild) from the disk or 4760.
X25ACCM, CNXCLUM are not important for normal PBX usage, but when files are damaged in an archive, the other files are not very sure.
G.
-
krzysioD
Re: Problem when restore mao : ./X25ACCM.mao: Permission denied
No, my friend, very unix basics:Gedeon wrote: Permission denied when you delete a file ==> this file is to a other user
Owner could do truncate(0); on any fd (file descriptor) that he/she owns, so file has 0-length.
In order to delete you need only right to Write and eXecute to parent directory and know the filename (or have Read permissions to parrent dir). Don't need to be owner of any file...
That's true.Gedeon wrote: X25ACCM, CNXCLUM are not important for normal PBX usage, but when files are damaged in an archive, the other files are not very sure.
G.
I would go for any good backup for this PBX, and well, check if file was transferred correctly, maybe an ASCII ftp transfer mode?
-
Gedeon
Re: Problem when restore mao : ./X25ACCM.mao: Permission denied
Yes, if you have right to write in a directory, you have rights to delete file.
But if this file is not your file, you must use rm -f to remove the file and bypass alert, and newfils don't use this option by default imho.
But, if the message "is a directory" is true, the file system is damaged.
G.
But if this file is not your file, you must use rm -f to remove the file and bypass alert, and newfils don't use this option by default imho.
But, if the message "is a directory" is true, the file system is damaged.
G.
