[Rev 5082] Snapins deploying issues



  • Hello,
    my config
    fedora 22
    fog svn 5082
    I have problems with deploying snapins.
    Logs from apache access.log

    172.21.48.31 - - [27/Oct/2015:14:54:44 +0100] "GET /fog/service/snapins.checkin.php?mac=30:5A:3A:7A:66:03%7C%7C00:00:00:00:00:00:00:E0%7C00:00:00:00:00:00:00:E0&newService=1 HTTP/1.1" 200 4 "-" "-"
    

    Logs from apache error log

    [Tue Oct 27 14:50:24.282048 2015] [:error] [pid 28018] [client 172.21.2.8:55450] PHP Warning:  mysqli::close(): Couldn't fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 21, referer: http://172.21.100.2/fog/management/index.php?node=about
    

    Client can’t see snapins.

    2015-10-27 14:13 Client-Info Version: 0.9.5
     2015-10-27 14:13 SnapinClient Running...
     2015-10-27 14:13 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=snapinclient&mac=30:5A:3A:7A:66:03||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
     2015-10-27 14:13 Middleware::Communication Response: Success
     2015-10-27 14:13 Middleware::Communication URL: http://fog-server/fog/service/snapins.checkin.php?mac=30:5A:3A:7A:66:03||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
     2015-10-27 14:13 Middleware::Communication Response: No snapins
    

    When I go to:

    http://fog-server/fog/service/servicemodule-active.php?moduleid=snapinclient&mac=30:5A:3A:7A:66:03||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
    

    I get #!ok
    I did truncate table snapinJobs; and truncate table snapinTasks;
    but it did not help.

    Regards



  • No more problems after update.

    thanks !!!



  • I change this one :
    /var/www/fog/lib/client/SnapinClient.class.php


  • Senior Developer

    Snapins not deploying appropriately is now fixed. Still looking for this load problem.


  • Developer

    @davido38 Which one did you change to ‘nz’?? As I said there are two places in that PHP file were ‘ns’ is used!



  • I change to nz and it’s still ns in the browser .


  • Developer

    @robza I am really sorry. My fault. The file I meant is /var/www/html/fog/lib/client/SnapinClient.class.php (hope I got this right this time)



  • @Uncle-Frank when editing snapins.checkin.php i see this

    <?php
    require_once('../commons/base.inc.php');
    $FOGCore->getClass(SnapinClient);
    
    Regs

  • Developer

    Unfortunatelly this answer is being thrown in two places within that code. Could you please do me a favour and edit this PHP file on your server /var/www/html/fog/service/snapins.checkin.php

    Should be line 13 and 27. You see something like throw new Exception('#!ns'); Please change ‘ns’ to ‘nz’ (for example), save the file and open the URL in your browser again. What do you see?? Don’t forget to change back straight after this test.



  • Hi @Uncle-Frank when accessing this URL I got this:
    #!ns
    Regards


  • Developer

    @robza What do you see accessing this URL from your Browser: http://fog-server/fog/service/snapins.checkin.php?mac=30:5A:3A:7A:66:03||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1

    The mysql error does not seam to be related (different time stamp!).



  • Hello,
    somebody can help? @Senior-Developers
    Regards



  • Hi

    the same for me client can’t see snapin

    Debian jessie
    Fog 5082


 

404
Online

41.5k
Users

12.0k
Topics

113.5k
Posts