Ad Widget

Collapse

Permissions issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #16
    What's your version of MySQL?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • peacestgt
      Junior Member
      • Jan 2007
      • 17

      #17
      client:
      mysql Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386)
      server:
      mysqld Ver 4.0.24_Debian-10sarge2-log for pc-linux-gnu on i386 (Source distribution)


      Server version: Apache/2.0.54
      Server built: Jul 28 2006 09:04:55

      PHP 4.3.10-18 (cli) (built: Nov 3 2006 21:56:29)
      Copyright (c) 1997-2004 The PHP Group
      Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

      Comment

      • peacestgt
        Junior Member
        • Jan 2007
        • 17

        #18
        solution:

        update to mysql 4.1.x
        ( mysql-server-4.1_4.1.11a-4sarge7_i386.deb )
        and no problems )

        Comment

        • cptnzod
          Member
          • Jan 2007
          • 56

          #19
          Thank you for responding. However this did not help. If you are refering to selinux, I am not running it. I typped the command setenforce anyway and still have the problem. I searched the forum for 4 hours and tried all the suggestions and still cannot login as Admin!

          Any other idea? I am so close to get this into production.

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #20
            Originally posted by cptnzod
            Any other idea? I am so close to get this into production.
            Hey... This is BETA and this release is not for use in production!
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • Lovespider
              Member
              • Sep 2004
              • 99

              #21
              Try changing the 'div' operator to '/'.
              However in my Debian distribution, I upgraded MySQL to solve this.

              Comment

              • cptnzod
                Member
                • Jan 2007
                • 56

                #22
                I am about to give up on this. I changed the div to / in db.inc.php. I am still getting the same error: [ERROR: Login name or password is incorrect]
                I know the user is there and the MD5 password checks out as well. Any ideas before I punt?

                thx

                Comment

                • cptnzod
                  Member
                  • Jan 2007
                  • 56

                  #23
                  Well I guess its a punt. I will see if I can get the older revisions working.

                  Comment

                  • smoker
                    Junior Member
                    • Jan 2007
                    • 4

                    #24
                    Originally posted by cptnzod
                    Well I guess its a punt. I will see if I can get the older revisions working.

                    Has anybody else seen this issue?
                    I am currently running a zabbix 1.1.4 server and I have installed zabbix 1.3.2 along side it to see about moving to 1.4 once it is out.

                    I get the same password error as described by the above posts.

                    Running RH ES4 with mysql 4.1.20, with a new db and location for zabbix 1.3.2.

                    Not sure what other details would be of use, be delighted to provide details on request.

                    btw... Everybody loves Zabbix.

                    Comment

                    • nickp
                      Junior Member
                      • May 2007
                      • 28

                      #25
                      database corrupted message

                      Hi

                      I still get the index.php?message=Database%20corrupted,%20missed%2 0default%20user%20'guest'
                      message after changing the db.inc.php

                      Restarted services, even rebooted..

                      Am i missing something here?

                      Comment

                      • richlv
                        Senior Member
                        Zabbix Certified Trainer
                        Zabbix Certified SpecialistZabbix Certified Professional
                        • Oct 2005
                        • 3112

                        #26
                        1.3.8 on sles 10.
                        all checks in the installer are passed succesfully, but after clicking on "finish" i get a loop on url : http://10.196.5.14/zabbix/index.php?message=Database%20corrupted,%20missed%2 0default%20user%20'guest'

                        opera times out on this url, konqueror loops indefinitely (i don't get any message, just a blank page).

                        page source just has :
                        <script language="JavaScript" type="text/javascript">
                        <!--
                        window.location = 'index.php?message=Database corrupted, missed default user \'guest\'';
                        //-->
                        </script>

                        this is a completely fresh installation of operating system, db (mysql 5.0.18) and zabbix. both schema and data (and images, too) were imported succesfully.

                        any ideas ?

                        EDIT :

                        hmm. examining users table, it indeed did not contain guest user. which is weird, as data import went without any errors. adding that user manually opens the login window finally...

                        i will have to investigate this further tomorrow, though.
                        Last edited by richlv; 22-05-2007, 19:12.
                        Zabbix 3.0 Network Monitoring book

                        Comment

                        • richlv
                          Senior Member
                          Zabbix Certified Trainer
                          Zabbix Certified SpecialistZabbix Certified Professional
                          • Oct 2005
                          • 3112

                          #27
                          that's what i get for having fancy installation scripts. the script deleted guest user after importing the db. previous version did not complain about that
                          Zabbix 3.0 Network Monitoring book

                          Comment

                          • cyc
                            Junior Member
                            • Jun 2007
                            • 6

                            #28
                            No users in user table

                            Hello,

                            I have exactly the same problem with the 1.4 version ... zabbix loops and reloads the url ...index.php?message=Database%20corrupted,%20misse d%20default%20user%20'guest'

                            I've looked into the zabbix database and found out, that the users table is without any rows at all. So is the "rights" table. I suspect I've missed some part of installation, but I cannot figure it out. The *sql script for generating database is without string "guest", so - from where could this guest user be inserted into the zabbix database?
                            And, being the users and rights tables completely empty - this means I don't have an admin user either, right?

                            The installation process went fine, at least it looked like it was OK. The part with setup.php had a happy end

                            Any clue what should I do? I've created a row with "guest" in the name field, the password was left blank. That didn't change anything

                            Comment

                            • Foxi
                              Junior Member
                              • Apr 2007
                              • 7

                              #29
                              Originally posted by cyc
                              Hello,

                              I have exactly the same problem with the 1.4 version ... zabbix loops and reloads the url ...index.php?message=Database%20corrupted,%20misse d%20default%20user%20'guest'

                              I've looked into the zabbix database and found out, that the users table is without any rows at all. So is the "rights" table. I suspect I've missed some part of installation, but I cannot figure it out. The *sql script for generating database is without string "guest", so - from where could this guest user be inserted into the zabbix database?
                              And, being the users and rights tables completely empty - this means I don't have an admin user either, right?

                              The installation process went fine, at least it looked like it was OK. The part with setup.php had a happy end

                              Any clue what should I do? I've created a row with "guest" in the name field, the password was left blank. That didn't change anything
                              Hi,
                              Zabbix loops because you didn't insert default configuration.
                              Loot at Zabbix 1.4 manual page 37 :

                              "ZABBIX comes with SQL scripts used to create the required database schema and also to insert a default configuration. There are separate scripts for MySQL and PostgreSQL.
                              For MySQL:
                              shell> mysql -u<username> -p<password>
                              mysql> create database zabbix;
                              mysql> quit;
                              shell> cd create/mysql
                              shell> cat schema.sql |mysql -u<username> -p<password> zabbix
                              shell> cd ../data
                              shell> cat data.sql |mysql -u<username> -p<password> zabbix
                              shell> cat images_mysql.sql |mysql -u<username> -p<password> zabbix

                              For PostgreSQL:
                              shell> psql -U <username>
                              psql> create database zabbix;
                              psql> \q
                              shell> cd create/postgresql
                              shell> cat schema.sql|psql -U <username> zabbix
                              shell> cd ../data
                              shell> cat data.sql|psql -U <username> zabbix
                              shell> cat images_pgsql.sql |psql -U <username> zabbix

                              For SQLite:
                              shell> cd create/sqlite
                              shell> cat schema.sql | sqlite3 /var/lib/sqlite/zabbix.db
                              shell> cd ../data
                              shell> cat data.sql | sqlite3 /var/lib/sqlite/zabbix.db
                              shell> cat images.sql | sqlite3 /var/lib/sqlite/zabbix.db"

                              Regards Foxi

                              Comment

                              • cyc
                                Junior Member
                                • Jun 2007
                                • 6

                                #30
                                Emm ...

                                You were completely right. I was busy searching for missing debian packages and somehow managed so skip that part of database setup

                                Zabbix now works fine, I'm getting used to it, thanks for help!

                                Comment

                                Working...