Rev 5307 Failed to find snapin file



  • Rev 5307
    I wanted to test new client version (0.9.6), and snapins did’nt work.
    In log file I could see:
    Failed to find snapin file

    With a colleague help, we found the problem: snapin file was searched with path /opt/fog
    And snapins are in /opt/fog/snapins

    In Global configuration, I have /opt/fog/snapins/ for FOG_SNAPDIR (with the trailing slash)

    But in Storage configuration, for each node I have /opt/fog/snapins (without trailing slash)

    And in lib/client/SnapinClient.class.php line 36 you use dirname
    Dirname without trailing slash extract only the first part (/opt/fog/)

    And in commons/schema.php, line 1642, value is forced to /opt/fog/snapins (without trailing slash)
    In Storage configuration, if I add trailing slash, it dissapear after validation.



  • @Tom-Elliott said:

    I’ve removed the dirname function from the stuff, if you can update and let me know if things are good?

    Yes it’s ok now

    Thank you


  • Senior Developer

    I’ve removed the dirname function from the stuff, if you can update and let me know if things are good?


Log in to reply
 

789
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.