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

Database Schema Installer / Updater not working

Scheduled Pinned Locked Moved Solved
FOG Problems
svn3427 update database
5
22
10.9k
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.
  • P
    Polii123
    last edited by Polii123 May 20, 2015, 1:30 AM May 20, 2015, 7:29 AM

    Hi

    So another problem occured today, while i was trying to upgrade to SVN 3427.

    I can’t update the Database Schema i always get the error:

    Database Error:
    
    php_network_getaddresses: getaddrinfo failed: Name or service not known, Message: Check that database is running```
    1 Reply Last reply Reply Quote 0
    • C
      ch3i Moderator
      last edited by May 20, 2015, 7:35 AM

      @Polii123

      Hi,

      I think it’s better to post it into the dev section : https://forums.fogproject.org/category/17/bug-reports

      Regards,
      Ch3i.

      1 Reply Last reply Reply Quote 0
      • P
        Polii123
        last edited by May 20, 2015, 7:38 AM

        I don’t think it is a bug in the update, because here, the update worked without problem.

        C 1 Reply Last reply May 20, 2015, 7:44 AM Reply Quote 0
        • C
          ch3i Moderator @Polii123
          last edited by May 20, 2015, 7:44 AM

          @Polii123 Try to update to 3426

          1 Reply Last reply Reply Quote 0
          • P
            Polii123
            last edited by May 20, 2015, 8:05 AM

            What is the syntax to do this?

            C 1 Reply Last reply May 20, 2015, 8:16 AM Reply Quote 0
            • C
              ch3i Moderator @Polii123
              last edited by May 20, 2015, 8:16 AM

              @Polii123 said:

              What is the syntax to do this?

              svn update -r3426

              1 Reply Last reply Reply Quote 0
              • P
                Polii123
                last edited by May 20, 2015, 8:17 AM

                Thanks, but this didn’t solve the problem…

                C 1 Reply Last reply May 20, 2015, 8:20 AM Reply Quote 0
                • C
                  ch3i Moderator @Polii123
                  last edited by May 20, 2015, 8:20 AM

                  @Polii123 Which version had you before the upgrade ?

                  1 Reply Last reply Reply Quote 0
                  • P
                    Polii123
                    last edited by May 20, 2015, 8:23 AM

                    3412 i think, just tried to revert to 3412 now, but always the same problem. So it needs to be something diffrent.

                    1 Reply Last reply Reply Quote 0
                    • J
                      Joe Schmitt Senior Developer
                      last edited by Joe Schmitt May 20, 2015, 2:26 AM May 20, 2015, 8:24 AM

                      @Polii123 Are you sure SQL is running?

                      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.

                      1 Reply Last reply Reply Quote 0
                      • P
                        Polii123
                        last edited by May 20, 2015, 8:29 AM

                        Yes, i can connect to the database fine with phpmyadmin.

                        1 Reply Last reply Reply Quote 0
                        • W
                          Wayne Workman
                          last edited by May 20, 2015, 12:04 PM

                          Could you try re-installing MySQL / MariaDB (don’t know which one you have).

                          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!
                          Daily Clean Installation Results:
                          https://fogtesting.fogproject.us/
                          FOG Reporting:
                          https://fog-external-reporting-results.fogproject.us/

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott
                            last edited by May 20, 2015, 12:09 PM

                            @Polii123 said:

                            php_network_getaddresses: getaddrinfo failed: Name or service not known

                            Also, what changed? Did you update the OS or system?

                            This particular error is not something I coded or anything. It seems to be coming from either (or both) apache/PHP.

                            http://albertech.net/2011/05/fix-php_network_getaddresses-getaddrinfo-failed-name-or-service-not-known/

                            That’s a link I found pertaining to the first part of the error you’re seeing.

                            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

                            P 1 Reply Last reply May 20, 2015, 12:37 PM Reply Quote 0
                            • P
                              Polii123
                              last edited by May 20, 2015, 12:12 PM

                              Didn’t help either…

                              1 Reply Last reply Reply Quote 0
                              • P
                                Polii123 @Tom Elliott
                                last edited by May 20, 2015, 12:37 PM

                                @Tom-Elliott

                                Din’t saw your post, yeah i found that link too. Nslookup works, i restarted apache, restarted the hole server.

                                The only change i made was update to the latest SVN…

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Tom Elliott
                                  last edited by May 20, 2015, 12:39 PM

                                  @Polii123 said:

                                  @Tom-Elliott

                                  Din’t saw your post, yeah i found that link too. Nslookup works, i restarted apache, restarted the hole server.

                                  The only change i made was update to the latest SVN…

                                  Does your /etc/hosts file have the proper host? What host is the Config.class.php file looking for?

                                  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
                                  • P
                                    Polii123
                                    last edited by May 20, 2015, 12:49 PM

                                    hosts

                                    127.0.0.1	localhost
                                    127.0.1.1	Fogagh02.gibwintra.ch	Fogagh02
                                    

                                    /var/www/fog/lib/fog/config.calss.php

                                    ('DATABASE_HOST',		'{localhost}');
                                    
                                    
                                    T 1 Reply Last reply May 20, 2015, 12:54 PM Reply Quote 0
                                    • T
                                      Tom Elliott @Polii123
                                      last edited by May 20, 2015, 12:54 PM

                                      Do me a favor and remove the curly braces from the database host line.
                                      @Polii123 said:

                                      hosts

                                      127.0.0.1	localhost
                                      127.0.1.1	Fogagh02.gibwintra.ch	Fogagh02
                                      

                                      /var/www/fog/lib/fog/config.calss.php

                                      ('DATABASE_HOST',		'{localhost}');
                                      
                                      

                                      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 1
                                      • P
                                        Polii123
                                        last edited by Polii123 May 20, 2015, 6:59 AM May 20, 2015, 12:59 PM

                                        intresting…

                                        Access denied for user '{root}'@'localhost' (using password: YES), Message: Check that database is running
                                        

                                        I also removed the curly braces from the username and password line, and my server works!

                                        But how did they come into my config.class.php file?

                                        C 1 Reply Last reply May 20, 2015, 1:01 PM Reply Quote 0
                                        • C
                                          ch3i Moderator @Polii123
                                          last edited by May 20, 2015, 1:01 PM

                                          @Polii123 said:

                                          But how did they come into my config.class.php file?

                                          Maybe a ghost lol

                                          P 1 Reply Last reply May 20, 2015, 1:03 PM Reply Quote 1
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            3/22
                                            Last post

                                          183

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project