• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. syschuck
    3. Posts
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 26
    • Best 7
    • Controversial 0
    • Groups 0

    Posts made by syschuck

    • RE: Upgraded ubuntu from 13.04 to 14.04 now Web console will not come up

      I triple checked mysql and root does not have a password and the whole sql is wide open to use.

      [root@fog bin]# mysqladmin status
      Uptime: 662 Threads: 1 Questions: 2 Slow queries: 0 Opens: 0 Flush tables: 1 Open tables: 63 Queries per second avg: 0.003

      mysqladmin version
      mysqladmin Ver 9.1 Distrib 10.0.19-MariaDB, for Linux on x86_64
      Copyright © 2000, 2015, Oracle, MariaDB Corporation Ab and others.

      Server version 10.0.19-MariaDB
      Protocol version 10
      Connection Localhost via UNIX socket
      UNIX socket /var/lib/mysql/mysql.sock
      Uptime: 12 min 24 sec

      This is a side note, I discovered while looking at the mysql issue.
      Wow. Just did a ‘ps -ef | grep fog’ and found I had like 20+ instances of

      root 7469 1 0 Jul07 ? 00:01:22 /usr/bin/php -q /opt/fog/service/FOGMulticastManager/FOGMulticastManager
      root 7532 1 0 Jul07 ? 00:00:01 /usr/bin/php -q /opt/fog/service/FOGImageReplicator/FOGImageReplicator
      root 7596 1 0 Jul07 ? 00:00:01 /usr/bin/php -q /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler
      root 7662 1 0 Jul07 ? 00:00:01 /usr/bin/php -q /opt/fog/service/FOGSnapinReplicator/FOGSnapinReplicator

      from all of my install attempts. That must be something minor. Installer shows;

      • Stopping FOGMulticastManager Service…/lib/common/functions.sh: line 444: 30965 Terminated $initdpath/$serviceItem stop > /dev/null 2>&1
        OK
        for each of the services.
        For the Mageia5 variation on Redhat, this latest release removed the old systemV init compatibility and is now completely using systemd. So a changes needs to be made to bin/installfog.sh. It’s located down at the line; with
        OSVersion=echo $OSVersion | cut -d '.' -f1
      if [[ "$OSVersion" -ge 3 && "$linuxReleaseName" == +(*[Mm]'ageia'*) ]]; then
          systemctl="yes";
      fi
      
      

      So once systemctl is set, then it revealed another systemd issue in lib/common/functions.sh in that Mageia5 doesn’t use mariadb.service or mysql.service. It uses mysqld.service! So I made this change to the configureMySql() function.

          if [ "$systemctl" == "yes" ]; then
              if [[ "$linuxReleaseName" == +(*[Mm]'ageia'*) ]]; then
                      systemctl="yes";
                      systemctl enable mysqld.service >/dev/null 2>&1 && \
                      systemctl restart mysqld.service >/dev/null 2>&1 && \
                      systemctl status mysqld.service >/dev/null 2>&1
              else
                      systemctl="yes";
                      systemctl enable mariadb.service >/dev/null 2>&1 && \
                      systemctl restart mariadb.service >/dev/null 2>&1 && \
                      systemctl status mariadb.service >/dev/null 2>&1
                      if [ "$?" != "0" ]; then
                              systemctl enable mysql.service >/dev/null 2>&1 && \
                              systemctl restart mysql.service >/dev/null 2>&1 && \
                              systemctl status mysql.service >/dev/null 2>&1
                      fi
              fi
      
      

      Well that has everything working with Mageia5 now. I’ll post the patches later. They are all minor things like above. However, none of that was the problem. It still redirects to http://192.168.1.1/fog/management/index.php?node=schemaupdater

      with a blank white page.


      posted in FOG Problems
      S
      syschuck
    • RE: Upgraded ubuntu from 13.04 to 14.04 now Web console will not come up

      I removed the fog database to start form scratch and I can confirm my earlier report. The fog database is not created. My apache log files show the following;

      [Wed Jul 08 12:28:57.084063 2015] [mpm_prefork:notice] [pid 5036] AH00170: caught SIGWINCH, shutting down gracefully
      [Wed Jul 08 12:28:58.587272 2015] [auth_digest:notice] [pid 8184] AH01757: generating secret for digest authentication …
      [Wed Jul 08 12:28:59.147391 2015] [mpm_prefork:notice] [pid 8184] AH00163: Apache/2.4.10 (Unix) OpenSSL/1.0.2c PHP/5.6.10 mod_perl/2.0.8-dev Perl/v5.20.1 configured – resuming normal operations
      [Wed Jul 08 12:28:59.147496 2015] [core:notice] [pid 8184] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
      [Wed Jul 08 12:29:12.183867 2015] [:error] [pid 8190] [client 192.168.1.1:59748] PHP Warning: mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 37
      [Wed Jul 08 12:29:12.184019 2015] [:error] [pid 8190] [client 192.168.1.1:59748] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 59
      [Wed Jul 08 12:29:12.196499 2015] [:error] [pid 8190] [client 192.168.1.1:59748] PHP Warning: mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 37
      [Wed Jul 08 12:29:12.196879 2015] [:error] [pid 8190] [client 192.168.1.1:59748] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 59
      [Wed Jul 08 12:29:12.197176 2015] [:error] [pid 8190] [client 192.168.1.1:59748] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 59

      Last line repeated 20+ times.

      posted in FOG Problems
      S
      syschuck
    • RE: Upgraded ubuntu from 13.04 to 14.04 now Web console will not come up

      Just to let the @Developers know. It’s not an ubuntu thing. I’m having the exact same issue with Mageia 5.
      (Mysql 10.0.19-MariaDB).

      [Wed Jul 08 11:57:29.718411 2015] [:error] [pid 18958] [client 192.168.1.1:41436] PHP Warning: mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 37
      [Wed Jul 08 11:58:18.468757 2015] [:error] [pid 22579] [client 192.168.1.1:41901] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 59

      I’m going to check that my mysql password is cleared and try again. I also noticed that it didn’t create the ‘fog’ data base.

      posted in FOG Problems
      S
      syschuck
    • RE: Having a next user level besides mobile user

      Thank you very much for the information Fernando. What you are doing looks very close to what I need. I’m going to give your version a test and see what it looks like but the addition of profiles (for departments or buildings) seems very logical and could map well to what I’m doing. I started using 0.33b because of it’s support for windows 8 but I’ll give your version a try.

      posted in Feature Request
      S
      syschuck
    • RE: Having a next user level besides mobile user

      [quote=“Daëavelwyn, post: 10724, member: 3269”]@Fernando Gietz
      Hi, i’m using fog 0.32 and want to use such a feature, could you please post your modified files to do this ?[/quote]

      I want to Third that motion! I could really really use that feature now. I would like the person that logs in, to only see hosts and images that she/he creates. I’m a php coder if you want to share your changes.

      posted in Feature Request
      S
      syschuck
    • 1 / 1