Posts by TheFax

    Ciao da Gorizia provincia.
    Sono migrato da OMV3 che andava a meraviglia a 4 che sembra non così splendente.... pesante, occupa spazio, jdownloader attraverso docker è mostruoso, il sistema mangia RAM come non ho mai visto fare... insomma quasi quasi torno al 3.x.

    Carmalao, piacere di conoscerti innanzitutto. :)
    Io non vedo tutti questi disagi di cui parli tu. Su che sistema fai girare OMV? E' una macchina abbastanza prestante e con un po' di ram?


    Io, tanto per presentarmi, uso un vecchio Core 2 Q6700 (quad core, 2.6GHz) con 4 Gb di Ram. OMV occupa solo 4Gb su un disco da 160 Gb. Non mi sembra gran che...

    Did you check your Bios setup?


    To make possible a Wake On LAN startup, it has to be enabled in both BIOS and OMV system.
    Usually into the BIOS the setting is not very user friendly: try to enable "Resume by PCI" or / and "Resume by PCI-E".

    Thank you ryecoaaron: you answer solved my problem. I'm sorry I disturbed you for such a trivial mistake.
    Is there a place on the internet where all "services" and "methods" are listed in a orderly manner?



    I paste here some lines, for future reference, hoping they can also be useful to other peolpe:



    LOGIN (the file cookie.txt will be generated):

    Code
    $ curl --request POST --cookie-jar cookies.txt --data '{"service":"session","method":"login","params":{"username":"admin","password":"yourpassword"}}' 192.168.0.5/rpc.php
    {"response":{"authenticated":true,"username":"admin"},"error":null}


    Comunication test:

    Code
    $ curl --request POST --cookie cookies.txt --data '{"service":"system","method":"noop","params":null}' 192.168.0.5/rpc.php
    {"response":"I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain.","error":null}


    Shutdown:

    Code
    $ curl --request POST --cookie cookies.txt --data '{"service":"system","method":"shutdown","params":{"delay":10}}' 192.168.0.5/rpc.php
    {"response":null,"error":null}

    Hello,
    I'm trying to add a button on Hassio in order to shutdown OMV NAS using RPC calls instead of SSH commands.
    My plan is to send 2 RPC calls: one for the login, and one for the system/shutdown command.
    During the test I'm doing, the login call works good and generate a cookie but the system/shutdows call doesn't works and say that I'm not authenticated :huh: ...


    From my PC terminal:

    Code
    $ curl --request POST --cookie-jar cookies.txt --data '{"service":"session","method":"login","params":{"username":"admin","password":"myRealPassword"}}' http://192.168.0.5/rpc.php
    {"response":{"authenticated":true,"username":"admin"},"error":null}
    $ curl --request POST --cookie-jar cookies.txt --data '{"service":"system","method":"shutdown","params":{"delay":"15"}}' http://192.168.0.5/rpc.php
    {"response":null,"error":{"code":5000,"message":"Session not authenticated","trace":"OMV\\ErrorMsgException: Session not authenticated in \/usr\/share\/php\/openmediavault\/session.inc:146\nStack trace:\n#0 \/usr\/share\/php\/openmediavault\/rpc\/proxy\/json.inc(81): OMV\\Session->validateAuthentication()\n#1 \/var\/www\/openmediavault\/rpc.php(45): OMV\\Rpc\\Proxy\\Json->handle()\n#2 {main}"}


    Other useful infos:
    This is the first time in my life I use RPC calls ^^ so probably I'm missing something.
    The OMV system is updated to today (version 4.1.22-1).
    I have 2 user in my OMV installation: admin and another one. I tried with both without success.
    Tried also without delay parameter.

    Code
    $ cat cookies.txt
    # Netscape HTTP Cookie File
    # https://curl.haxx.se/docs/http-cookies.html
    # This file was generated by libcurl! Edit at your own risk.
    192.168.0.5 FALSE / FALSE 0 X-OPENMEDIAVAULT-SESSIONID 2------deleted-----------7


    Thanks to those who want to help me.

    Ciao mig67, io non uso crashplan.
    Preferisco una soluzione completamente free.


    Su client linux uso semplicemente rsync, e mi sembra una soluzione più che buona se non ottima.
    Su client windows uso Synchronizer. Si tratta di un software piuttosto vecchiotto, e a dire il vero non è neanche del tutto perfetto, però è libero e il suo lavoro tutto sommato lo fa. Nel mio caso faccio settimanalmente un backup di un hard disk contenente circa 700Gb di dati verso il NAS, tramite SMB. L'operazione risulta piuttosto veloce. Il software confronta data e ora dell'ultima modifica dei file e la dimensioni degli stessi andando a copiare solo quelli modificati/aggiunti/eliminati.


    Sono curioso di sapere se qualcun altro usa software di backup liberi/free migliori, perchè non vedo l'ora di trovarne uno più aggiornato.


    Tempo fa ho cercato anche soluzioni per Windows simili a Time Machine di Apple, ma non ho trovato nulla se non (incerti) software a pagamento.

    Hi Enra...
    This is the solution I adopted for solve the problem you ask in your first post.
    I'm not shure this can be a solution for you, but it can be a good starting point.


    Please note that there are several security problems and who use it should understand the limits of the solution.


    If someone would improve the script or the overall solution... he's welcome!


    Thankyou
    TheFax