Ad Widget

Collapse

Errors after upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • antani
    Member
    • Apr 2008
    • 50

    #1

    Errors after upgrade

    Upgraded from 1.4 to 1.6. Now on homepage it shows:
    Code:
        * Error in query [select n.nodeid,min(r.permission) as permission, g.userid from nodes n left join rights r on r.id=n.nodeid and r.type=0 left join users_groups g on r.groupid=g.usrgrpid and g.userid=1 where n.nodeid in (0) group by n.nodeid, g.userid order by nodeid desc, userid desc, permission desc] [Unknown column 'r.type' in 'on clause']
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
        * Error in query [select n.nodeid,min(r.permission) as permission, g.userid from nodes n left join rights r on r.id=n.nodeid and r.type=0 left join users_groups g on r.groupid=g.usrgrpid and g.userid=1 where n.nodeid in (0) group by n.nodeid, g.userid order by nodeid desc, userid desc, permission desc] [Unknown column 'r.type' in 'on clause']
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
        * Error in query [select n.nodeid,min(r.permission) as permission, g.userid from nodes n left join rights r on r.id=n.nodeid and r.type=0 left join users_groups g on r.groupid=g.usrgrpid and g.userid=1 where n.nodeid in (0) group by n.nodeid, g.userid order by nodeid desc, userid desc, permission desc] [Unknown column 'r.type' in 'on clause']
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
        * Error in query [select n.nodeid,min(r.permission) as permission, g.userid from nodes n left join rights r on r.id=n.nodeid and r.type=0 left join users_groups g on r.groupid=g.usrgrpid and g.userid=1 where n.nodeid in (0) group by n.nodeid, g.userid order by nodeid desc, userid desc, permission desc] [Unknown column 'r.type' in 'on clause']
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
        * Error in query [select n.nodeid,min(r.permission) as permission, g.userid from nodes n left join rights r on r.id=n.nodeid and r.type=0 left join users_groups g on r.groupid=g.usrgrpid and g.userid=1 where n.nodeid in (0) group by n.nodeid, g.userid order by nodeid desc, userid desc, permission desc] [Unknown column 'r.type' in 'on clause']
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
        * mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/var/www/html/zabbix/include/db.inc.php:412]
    I've upgraded the db too with:
    cat patch.sql | mysql zabbix -uzabbix -p

    Anyone could help?
    Last edited by antani; 07-01-2009, 16:38. Reason: added the obvious
  • sergio.cricca
    Member
    • Mar 2008
    • 43

    #2
    Unknown column 'r.type' in 'on clause'

    means table rights lacks of that column type.

    In v. 1.6.1 table rights has not that column (as long as i can see).

    Did you upgraded php frontend from 1.4.* to 1.6.1 too?
    If you didn't, your old 1.4.* frontend is looking for a table-column that's not more there.
    bye

    Comment

    • antani
      Member
      • Apr 2008
      • 50

      #3
      Originally posted by sergio.cricca
      Unknown column 'r.type' in 'on clause'
      Did you upgraded php frontend from 1.4.* to 1.6.1 too?
      I hadn't noticed this step in the upgrade procedure description on the zabbix manual. Maybe because *there isn't* any reference to that. Thank you for posting.

      Comment

      Working...