lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

DB_ERROR: Sorry, a database error occured.

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
A7V
Contributor


Joined: 18 Jun 2004
Posts: 53
Location: Lisbon, Portugal

PostPosted: Mon Oct 04, 2004 6:09 pm    Post subject: DB_ERROR: Sorry, a database error occured. Reply with quote

Just got the following error:
Code:
DB_ERROR: Sorry, a database error occured. We cannot continue. Please contact the administrator and let them know what you were doing when the problem occured

I just selected a device, Recached Intefaces, selected all interfaces and pressed "Monitor/Graph All Checked"
I tried selecting just one interface and even deleting the device and adding it again with no luck, I always get the same error message.
This is the first time it has ever happened and I can replicate the issue easily.
Any hints? Rolling Eyes
Back to top
validan
Contributor


Joined: 12 May 2004
Posts: 37

PostPosted: Mon Oct 04, 2004 6:33 pm    Post subject: Reply with quote

Can you paste in a copy of the Listing of the interfaces?
Back to top
keb
Contributor


Joined: 09 Jul 2003
Posts: 44
Location: Camp Hill, PA, USA

PostPosted: Tue Oct 05, 2004 5:05 am    Post subject: Reply with quote

Set dbdebug to true in config.php and perform the same steps you took to get the error. This will show you the db query that failed and will assist us in finding the source of the problem.

Also, is this in 0.17 or an earlier version?

Thanks,
Kevin
Back to top
A7V
Contributor


Joined: 18 Jun 2004
Posts: 53
Location: Lisbon, Portugal

PostPosted: Wed Oct 06, 2004 2:44 pm    Post subject: Reply with quote

Code:
DB_ERROR: Couldn't execute query:

INSERT INTO sub_devices SET dev_id='129', type=2, name='PIX Firewall 'INTERNET' interface'


You have an error in your SQL syntax near 'INTERNET' interface'' at line 1


OK, the reason is something I though off, but since I have 2 more devices with similar names I guessed it wouldn't be a problem: the ' character. I have 2 more devices that are currently being graphed and who's interfaces have the same naming scheme and were added with no issues Shocked
I wasn't the one to add the old ones, so I can precise if the interface names was like this at the time they were added to NetMRG.
Comments?
Back to top
keb
Contributor


Joined: 09 Jul 2003
Posts: 44
Location: Camp Hill, PA, USA

PostPosted: Wed Oct 06, 2004 11:43 pm    Post subject: Reply with quote

A7V wrote:
OK, the reason is something I though off, but since I have 2 more devices with similar names I guessed it wouldn't be a problem: the ' character. I have 2 more devices that are currently being graphed and who's interfaces have the same naming scheme and were added with no issues


The error is because the name isn't being escaped correctly. bug#295 was created to deal with these escaping issues. This should be resolved by the next release (either 0.17.1 or 0.18).

- Kevin
Back to top
A7V
Contributor


Joined: 18 Jun 2004
Posts: 53
Location: Lisbon, Portugal

PostPosted: Thu Oct 07, 2004 1:14 pm    Post subject: Reply with quote

Thank you for the help.
I guess I owe everyone an apology as I did what should never be done: submit a new problem without searching if anyone had reported it already Embarassed
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group