FTP things are broke


  • Moderator

    on r7001 FTP related things are broke. FTP Image size doesn’t work and we also cannot deploy images, we get an error saying the image does not exist on the node.

    Here’s what’s in the Apache error logs after trying to list all images with FTP Image Size turned on:

    [Wed Mar 30 10:46:47.124621 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:46.454964 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:45.735960 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:44.907747 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:44.071128 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:43.225272 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:42.357179 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:41.489278 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:40.625987 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:39.871930 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:39.051890 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:38.487630 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:38.026607 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:37.547961 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:37.054895 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:36.483964 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:35.789064 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    [Wed Mar 30 10:46:34.904365 2016] [:error] [pid 63879] [client 10.2.3.9:52966] PHP Strict Standards: Only variables should be passed by reference in /var/www/html/fog/lib/pages/imagemanagementpage.class.php on line 78, referer: http://10.2.1.11/fog/management/index.php?node=image
    

  • Moderator

    Oh you know what? I just figured out why this happened. blah.

    I was just talking to Tom and he asked to see if the /home/fog directory existed.

    It doesn’t. Why? Because I blasted the entire /home directory this morning because all those fog backups in there was crashing the server… rm -rf /home/* Yes sir…

    I fixed it with
    mkdir /home/fog;chown fog:fog /home/fog


  • Moderator

    r7005, It’s still broke. Here’s a screenshot:

    0_1459367684089_upload-d1b6e5b8-0fc1-4793-bee3-ba0b058d4788

    Here are some of the Apache errors. It seems the ftp errors are being suppressed, but there are other errors now.

    [Wed Mar 30 14:52:39.346778 2016] [:error] [pid 33675] [client 10.2.3.46:49955] PHP Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /var/www/html/fog/lib/fog/fogbase.class.php on line 572
    [Wed Mar 30 14:52:39.346069 2016] [:error] [pid 33675] [client 10.2.3.46:49955] PHP Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /var/www/html/fog/lib/fog/fogbase.class.php on line 572
    [Wed Mar 30 14:42:21.006794 2016] [:error] [pid 28807] [client 10.2.1.11:43538] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/fog/lib/db/mysqldump.class.php on line 383
    

  • Senior Developer

    Pushed. Hopefully will fix the mysqldump crap but also should stop the error spamming.


  • Senior Developer

    @Sebastian-Roth I’ve looked into it and corrected it on my side. I have not pushed it so I can try to fix the db backup issue.


  • Developer

    @Wayne-Workman Still an issue or has Tom looked into this already? I wonder if you have the same line (78) of code as we have in the source:

    serverSize = $servSize($Image->get('path'),$StorageNode);
    

  • Moderator

    Only the image uploaded this morning doesn’t work, others still deploy fine.


  • Moderator

    @Tom-Elliott I’m on 5.6.19, the other site that is working fine is on 5.6.19.

    However, I’m running Fedora 21, they are running CentOS 7.


  • Senior Developer

    @Wayne-Workman Gonna guess maybe an older version of PHP?


  • Moderator

    Intersting point on this subject… seems my fog server on r7001 has this issue but other sites on r7001 in my organization do not… gosh. This morning has been rough.


Log in to reply
 

396
Online

38748
Users

10575
Topics

100103
Posts

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