Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3.3.2 backup broken ?
03-23-2012, 03:04 AM,
#1
3.3.2 backup broken ?
After updating from 3.3.0 to 3.3.2, the backup is not working any more.

A new backup file is created, but it is empty.

When adding a new document to the DMS, it is backed up as usual, but not older files that have been stored bevor updating.

Also, when logged in as admin, showing the Content Overview, at the bottom of the list, "Storage Size" shows just a few bytes.
Whereas the correct size of the data folder is shown in the Backup-Tools menu.

Folder/Document check does not reveal any problem.

Any suggestions? Thanks!
Reply
03-23-2012, 01:19 PM, (This post was last modified: 03-23-2012, 02:11 PM by steinm.)
#2
RE: 3.3.2 backup broken ?
(03-23-2012, 03:04 AM)thorsten Wrote: After updating from 3.3.0 to 3.3.2, the backup is not working any more.

A new backup file is created, but it is empty.

When adding a new document to the DMS, it is backed up as usual, but not older files that have been stored bevor updating.

Also, when logged in as admin, showing the Content Overview, at the bottom of the list, "Storage Size" shows just a few bytes.
Whereas the correct size of the data folder is shown in the Backup-Tools menu.

Folder/Document check does not reveal any problem.

Any suggestions? Thanks!

I'll have a look at it.

Uwe
(03-23-2012, 03:04 AM)thorsten Wrote: After updating from 3.3.0 to 3.3.2, the backup is not working any more.

A new backup file is created, but it is empty.

When adding a new document to the DMS, it is backed up as usual, but not older files that have been stored bevor updating.

Also, when logged in as admin, showing the Content Overview, at the bottom of the list, "Storage Size" shows just a few bytes.
Whereas the correct size of the data folder is shown in the Backup-Tools menu.

Folder/Document check does not reveal any problem.

Any suggestions? Thanks!

Could you please check if maxDirID in settings.xml is set. If is != 0 the document storage in the content folder has a different layout.

Uwe
Reply
03-23-2012, 02:33 PM, (This post was last modified: 03-23-2012, 04:51 PM by thorsten.)
#3
RE: 3.3.2 backup broken ?
maxDirID="31998"

And the data-root looks like:

dataroot
+ 1025987
L + 1
L + 2
L + 3
L + ....
+ temp
- *.log
- ...

I just realized, that updating a document with a new file, the newly uploaded file will not show the "download" and "view online" links
Ok, I think I know what you are suggesting, so I moved all folders now to a sub-folder called "1".

All data lies now under:
dataroot->1025987->1->"number-folders"

The backup works fine, now as well as the content overview !

But the links "download" and "view online" are missing on all documents.
Apparently, the DMS thinks, the file would not exist.
I printed out some paths, resulting in:
out.ViewDocument.php:343 : $dms->contentDir shows the correct dir, but $version->getPath() is empty.

Also, the tables tblPathList and tblDirPath are empty. Does this mean anyting?

Reply
03-23-2012, 04:58 PM,
#4
RE: 3.3.2 backup broken ?
(03-23-2012, 02:33 PM)thorsten Wrote: maxDirID="31998"

And the data-root looks like:

dataroot
+ 1025987
L + 1
L + 2
L + 3
L + ....
+ temp
- *.log
- ...

I just realized, that updating a document with a new file, the newly uploaded file will not show the "download" and "view online" links
Ok, I think I know what you are suggesting, so I moved all folders now to a sub-folder called "1".

All data lies now under:
dataroot->1025987->1->"number-folders"

The backup works fine, now as well as the content overview !

But the links "download" and "view online" are missing on all documents.
Probably a change in the database needed ???

I guess I have to explain the meaning of maxDirID. Since version 3.3.0 LetoDMS knows a second format for the content directory which used to have a directory per document. This limits the number of documents to the number of subdirs in a folder. For ext3 this is 31998 subdirs. To overcome this limitation another level of directories is created if maxDirId != 0. All documents with id 1-maxDirID will be put in the subdir 1, those with id masDirID+1-2*masDirID are put in a subdir 2 and so on.

In your case all documents are likely to be in one subdir named '1'.

The reason for the missing download link lies probably in

LetoDMS_Core/Core/inc.ClassDocument.php line 1711

Try to change

PHP Code:
function getPath() { return $this->_document->getID() .'/'$this->_version $this->_fileType; } 

into

PHP Code:
function getPath() { return $this->_document->getDir() . $this->_version $this->_fileType; } 

Uwe
Reply
03-24-2012, 01:20 AM,
#5
RE: 3.3.2 backup broken ?
This solved the problem!

Your help is most appreciated, thank you !

Kind regards, Thorsten
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Contact Us | LetoDMS Community Forum | Return to Top | | Lite (Archive) Mode | RSS Syndication