[ZBX-8388] Error in the update or creation hosts Created: 2014 Jun 25  Updated: 2017 May 30  Resolved: 2015 Sep 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.2.4
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Ana Elisa Ferreira Bertoldo Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Amazon Linux


Attachments: JPEG File zabbix.jpg    

 Description   

When I try to create a new host the following error occurs:
Incorrect value "p" for unsigned int field "proxy_hostid". [hosts.php:468 ? CAPIObject->create() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CHost->create() ? DB::insert() ? DB::checkValueTypes() ? DB::exception() in /usr/share/zabbix/include/classes/db/DB.php:352]

And when I try to do update:

No permissions to referred object or it does not exist! [hosts.php:482 ? CAPIObject->update() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CHost->update() ? CHost->checkInput() ? CZBXAPI::exception() in /usr/share/zabbix/api/classes/CHost.php:688]

Changed from version 2.0.8 to 2.2.4



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 25 ]

I can't seem to reproduce this issue. Could you please provide a detailed step-by-step description of what you are doing? Which browser and database are you using?

Comment by richlv [ 2014 Jun 25 ]

has the frontend been modified in any way ?

you specified the component "api" - how exactly are you trying to create the host ?

Comment by Ana Elisa Ferreira Bertoldo [ 2014 Jun 27 ]

Database postgresql, browser google chrome.

Comment by Ana Elisa Ferreira Bertoldo [ 2014 Jun 27 ]

Step by step: configuration -> hosts -> create host
When I´m trying to insert a host, the above error occurs.

No modification in the frontend.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jun 27 ]

Tried it on a postgres database, still works for me. Could you enable debug mode, try again and attach the log here. Feel free to remove any sensitive information it may contain.

Comment by Ana Elisa Ferreira Bertoldo [ 2014 Jun 30 ]

Enable debug mode where? Debug mode in Users is already enabled.

Comment by richlv [ 2014 Jun 30 ]

administration -> users, make sure your user has debug enabled. then get the error and click on "debug" in the upper right corner

Comment by Ana Elisa Ferreira Bertoldo [ 2014 Jun 30 ]

This was the message already sent.

The error that was already sent to the debug mode enabled

Comment by richlv [ 2014 Jun 30 ]

did you click on that "debug" link ?

Comment by Ana Elisa Ferreira Bertoldo [ 2014 Jun 30 ]

Yes, as I said, had already enabled debug mode and when I click on the link debug, does not change the message.

Comment by richlv [ 2014 Jun 30 ]

any errors in the webserver logs ?

Comment by Ana Elisa Ferreira Bertoldo [ 2014 Jun 30 ]

The only error in /var/log/httpd/ssl_error_log is:

[Mon Jun 30 15:40:24 2014] [error] [client x.x.x.x] PHP Fatal error: Cannot unset string offsets in /usr/share/zabbix/hosts.php on line 570, referer: https://y.y.y.y/zabbix/hosts.php
[Mon Jun 30 15:44:42 2014] [error] [client x.x.x.x] PHP Fatal error: Cannot unset string offsets in /usr/share/zabbix/hosts.php on line 570, referer: https://y.y.y.y/zabbix/hosts.php
[Mon Jun 30 16:02:02 2014] [error] [client x.x.x.x] PHP Fatal error: Cannot unset string offsets in /usr/share/zabbix/hosts.php on line 570, referer: https://y.y.y.y/zabbix/hosts.php?form=update&hostid=11444&groupid=23&sid=6aef719da5e99687

Comment by richlv [ 2014 Jun 30 ]

which php version is that ?

Comment by Ana Elisa Ferreira Bertoldo [ 2014 Jun 30 ]

PHP 5.3.28.

Comment by Ana Elisa Ferreira Bertoldo [ 2014 Aug 25 ]

Any answer?

Comment by Pavels Jelisejevs (Inactive) [ 2014 Aug 26 ]

We're having some trouble figuring out, what can cause this issue. Could you please provide some more details:

  1. Do other forms work correctly?
  2. Is the issue reproducible on other environments or a different database?
Comment by Ana Elisa Ferreira Bertoldo [ 2014 Sep 29 ]

Yes, other forms works well and I don´t reproduce this issue on other databases, I can´t this.

Comment by Oleksii Zagorskyi [ 2015 Sep 18 ]

Looks like this issue is not reproducible, so closing it.

Feel free to reopen and describe if it's still possible on recent zabbix versions.

Generated at Sun Mar 16 01:59:20 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.