calibre plugin just copy everything

  • Hi Everybody,


    after living without an calibre server for some time on my omv i decided to give it second try.


    Just installed the plugin, setup the data and import DIR on the web interface and pressed appy for the changes.
    But instead of just starting the calibre server the plugin starte to copy everthing from the NAS to the calibre data DIR.
    Did some tracking and it seems that the "omv-mkconfig claibre" script is running wild here.




    So the Question is how to just start the calibre server without cp -r everything to the calibre dir first ...


    Any Hints ?


    kind regards

    • Offizieller Beitrag

    Calibre's import feature copies the books to the data directory. There is nothing I can do to change that.


    Your tracking seems to be a bit off. The import feature doesn't call omv-mkconf calibre. It calls: /opt/calibre/calibredb add --recurse --library-path $dataPath $importPath

    omv 7.0.5-1 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.11 | compose 7.1.3 | k8s 7.1.0-3 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • thx for the quick answer.


    If calibre would only copy the books from the Import Dir this would be fine, but ibstaed it copy the hole NAS Dir structure ( pics, movies, src code etc.)to the CALIBE DIR !
    I did not even hit the import button, just the apply after "Enable" the calibre server !



    Here is the output from the " apply changes" when I kill manually the "cp" task via shell.


    Error
    #4000:
    exception 'OMVException' with message 'Failed to execute command
    'omv-mkconf calibre 2>&1': Terminated' in
    /usr/share/openmediavault/engined/module/calibre.inc:83
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/config.inc(180):
    OMVModuleCalibre->applyConfig()
    #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array,
    Array)
    #2 /usr/share/php/openmediavault/rpcservice.inc(125):
    call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpcservice.inc(158):
    OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
    #4 /usr/share/openmediavault/engined/rpc/config.inc(224):
    OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
    #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array,
    Array)
    #6 /usr/share/php/openmediavault/rpcservice.inc(125):
    call_user_func_array(Array, Array)
    #7 /usr/share/php/openmediavault/rpc.inc(79):
    OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
    #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg',
    Array, Array, 1)
    #9 {main}



    Looks to me that "omv-mkconf calibre" is the one.


    Any further hints ?

    • Offizieller Beitrag

    Don't use a general shared folder for Calibre's data folder. The plugin moves all the files in the shared folder when you change its data directory. So, uninstall the plugin completely (purge) and then pick a newly created shared folder just for calibre.


    Of course, it gives you an error message when killing the cp command. I thought you were having the issue when clicking Import.

    omv 7.0.5-1 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.11 | compose 7.1.3 | k8s 7.1.0-3 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Did you purge the plugin?


    apt-get purge openmediavault-calibre

    omv 7.0.5-1 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.11 | compose 7.1.3 | k8s 7.1.0-3 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • of course did that as you mentoined it befor. cleanly uninstalled. then installed it again via the web interface and same thing happend.


    let say i have these three shares:
    /md0/calibri for calibre data
    /md0/public/ebooks for import
    /mdo/public for all the other stuff and in public we have
    DIR1
    DIR2
    DIR3
    etc pp.


    when installing and enabling the calibre plugin the "cp" command will start and copies everything form "/md0/pulic/" into "/mdo/calibre"
    So after that i have a not needed Backup in my calibre DIR and the calibre server still will not start.


    I did not even hit the import books botton yet ! just enable the calibre server and the magic will take place.


    any further hints ?


    cheers

    • Offizieller Beitrag

    You must have picked /md0/public the first time. Now it is trying to move everything to calibre. You need to purge the plugin and delete the calibre user.


    apt-get purge openmediavault-calibre
    userdel calibre don't add the -r or else it will delete your whole public folder

    omv 7.0.5-1 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.11 | compose 7.1.3 | k8s 7.1.0-3 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!