• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Server 500 error after upgrading to 0.33b

Scheduled Pinned Locked Moved Solved
Bug Reports
3
25
10.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I
    Iain Munro
    last edited by Sep 25, 2013, 8:09 AM

    Since I upgraded my 0.32 to 0.33b, I’ve had an internal server error. Turning on display errors for php shows the following:-

    Notice: Use of undefined constant WEB_ROOT - assumed ‘WEB_ROOT’ in /var/www/html/fog/commons/system.php on line 54 Warning: require_once(/var/www/html/commons/config.php): failed to open stream: No such file or directory in /var/www/html/fog/commons/base.inc.php on line 7 Fatal error: require_once(): Failed opening required ‘/var/www/html/commons/config.php’ (include_path=‘.:/usr/share/pear:/usr/share/php’) in /var/www/html/fog/commons/base.inc.php on line 7

    Hope this is a quick fix, or something you can assist withhhhhhhhhhhhhh.

    Cheers

    Iain

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Sep 25, 2013, 12:04 PM

      Give me a minute or two and I’ll try to fix it now. It looks like the call is trying to reference /var/www/html/commons/config.php but it should be referencing /var/www/html/fog/commons/config.php

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott
        last edited by Sep 25, 2013, 12:05 PM

        It looks like my internet is out at the moment. So it may have to wait until later today. I hope this is okay.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Sep 25, 2013, 12:11 PM

          Also, it looks like your webroot is only referencing /var/www/html and not /var/www/html/fog

          Are you accessing this server as an alias:

          E.G. (fog.domain.com)

          Or are you referencing as:

          domain.com/fog?

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • I
            Iain Munro
            last edited by Sep 25, 2013, 12:21 PM

            Thanks Tom,

            I’ll try a new download tomorrow morning to see if that fixes it

            1 Reply Last reply Reply Quote 0
            • I
              Iain Munro
              last edited by Sep 25, 2013, 12:21 PM

              We are accessing as [url]http://192.168.3.13/fog/management/index.php[/url]

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Sep 25, 2013, 9:32 PM

                Sorry about the delay,

                r916 is out!
                My power at the house went down so I couldn’t access the file for edits. I found the issue, and another issue, and it should be corrected now, please keep me posted.

                Thank you,

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott
                  last edited by Sep 25, 2013, 11:30 PM

                  r917 is out, please give this a shot and see if this helps you out.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • I
                    Iain Munro
                    last edited by Sep 26, 2013, 9:42 AM

                    I’ve re-downloaded it this morning from [url]https://mastacontrola.com/fog_0.33b.tar.bz2[/url] and tried again but am still getting the same error.

                    Can you please confirm that is the correct download location?

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tom Elliott
                      last edited by Sep 26, 2013, 10:53 AM

                      Use the svn for the update. The fog_0.33b.tar.bz2 is valid and I’ll fix that, I haven’t since I’ve had SVN access and can commit my changes live.

                      It’ll be up in the next hour or so.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      1 Reply Last reply Reply Quote 0
                      • I
                        Iain Munro
                        last edited by Sep 26, 2013, 11:54 AM

                        Thanks Tom,

                        The site now redirects to [url]http://192.168.3.13/fog/commons/schemaupdater/index.php?redir=1[/url]

                        this then gives the following:-

                        Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/html/fog/lib/db/MySQL.class.php on line 115 Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/fog/lib/db/MySQL.class.php on line 191 Warning: mysql_query() expects parameter 2 to be resource, boolean given in /var/www/html/fog/lib/db/MySQL.class.php on line 115 Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/fog/lib/db/MySQL.class.php on line 191 Unable to connect to Database

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tom Elliott
                          last edited by Sep 26, 2013, 12:10 PM

                          do you have a fog database already?

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott
                            last edited by Sep 26, 2013, 12:10 PM

                            I have not made any changes to the MySQL.class.php files.

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            1 Reply Last reply Reply Quote 0
                            • I
                              Iain Munro
                              last edited by Sep 26, 2013, 12:11 PM

                              yes - it’s upgrading an existing installation,

                              1 Reply Last reply Reply Quote 0
                              • T
                                Tom Elliott
                                last edited by Sep 26, 2013, 12:18 PM

                                I don’t know how well that method will work as there’s quite a few changes to the new setup. You might try making a backup and start with a new database.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                1 Reply Last reply Reply Quote 0
                                • I
                                  Iain Munro
                                  last edited by Sep 26, 2013, 12:19 PM

                                  How will that work for all my existing hosts and images?

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Tom Elliott
                                    last edited by Sep 26, 2013, 12:38 PM

                                    That’s still an issue in question. I have to figure out the variants between the db tables. So a simple export/import won’t work at the moment. I haven’t had time to try that out yet.

                                    Major difference, if you’re not afraid of db inserts, is for hosts, there is no hostOS on fog 0.33 but there is on 0.32.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                    1 Reply Last reply Reply Quote 0
                                    • I
                                      Iain Munro
                                      last edited by Sep 26, 2013, 1:10 PM

                                      OK, I’ve gone for it and dropped the database, then re-installed.

                                      Next issue is that half of the menu options appear chines/taiwanese

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        Tom Elliott
                                        last edited by Sep 26, 2013, 1:25 PM

                                        You have to choose the language options. Make sure en_US is chosen when logging in.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                        1 Reply Last reply Reply Quote 0
                                        • I
                                          Iain Munro
                                          last edited by Sep 26, 2013, 2:05 PM

                                          Doh! Schoolboy error.

                                          Thanks so much for your help. I think I’ve a long way to go to get 0.33b up ad running to the same standard as 0.32 but if it means I can back up 64bit editions of Windows, it’s worth the graft.

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            2/25
                                            Last post

                                          152

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.4k

                                          Posts
                                          Copyright © 2012-2024 FOG Project