Missing Book Directory after 2.1.0 manual install





  • p { margin-bottom: 0.25cm; line-height: 120%; }


    Hi



    I completely removed
    the automated install of Booktype 2.0 but left my original
    postgresdb. I did a manual install from the tar file and I've got
    Booktype 2.1.0 running but it seems to be having problems with books
    I created using version 2.0.



    It displays the
    books I previously created, but I try to edit a chapter it will not
    save or close it and displays a 'Loading Chapter' message at the top
    of the screen. (I have a screenshot so will try and upload it with
    this message)



    Looking at in the
    booktype.log I saw that an error is showing there about a missing
    file or directory in the books directories (See below for the last few lines from the file)



    I did run the
    ./manage.py migrate and the other commands but it told me there was nothing to
    migrate, so am not sure how these missing directories should have
    been created. I took a look in the /instance1/data/books directory and it is empty. Any ideas or help welcome. :-)



    Thanks


    Sharan






    Details from
    booktype.log file

    ======================


    Traceback (most
    recent call last):


    File
    "/usr/local/src/booktype/lib/booki/editor/models.py", line
    694, in thumbnail


    im =
    misc.create_thumbnail(self.attachment, size=size)


    File
    "/usr/local/src/booktype/lib/booktype/utils/misc.py", line
    451, in create_thumbnail


    im =
    Image.open(fname)


    File
    "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line
    2293, in open


    fp.seek(0)


    File
    "/usr/local/lib/python2.7/dist-packages/django/core/files/utils.py",
    line 20, in <lambda>


    seek =
    property(lambda self: self.file.seek)


    File
    "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/files.py",
    line 49, in _get_file


    self._file =
    self.storage.open(self.name, 'rb')


    File
    "/usr/local/lib/python2.7/dist-packages/django/core/files/storage.py",
    line 35, in open


    return
    self._open(name, mode)


    File
    "/usr/local/lib/python2.7/dist-packages/django/core/files/storage.py",
    line 172, in _open


    return
    File(open(self.path(name), mode))


    IOError: [Errno 2]
    No such file or directory:
    u'/var/www/booktype/instance1/data/books/getting-started-with-apache-ofbiz-order-management/1.0/dialog-error.png'






  • 1 Comment sorted by
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Sharan,

    Do you have backup copies of the books from the previous install, such as EPUBs? It may be that you deleted some book files, such as images, when wiping your previous install. As I understand it, static files imported into a book are not stored in the Booktype database itself.

    Cheers!

    Daniel