Warning when using ibase_fetch_object()

Asked

Viewed 49 times

0

I have an app PHP that synchronizes data from one database to another, at a given time, when consulting a database Postgre, after properly completing the variables $db and $sql I have the following code snippet:

$query = ibase_query($db, $sql);
while ($row = ibase_fetch_object($query)) {
...
}

The problem happens on line 2, ibase_fetch_object($query), the log says:

Warning: ibase_fetch_object(): Operating system Directive Writefile failed There is not enough space on the disk.

I found nothing regarding Writefile in this method at documentation.
Can someone tell me why this mistake and how to fix it?

1 answer

0


I managed to solve the problem and it was in the most obvious way possible, solving the lack of disk space.

To put it in context, the server where the application in question runs still had 20GB of free space, so when I presented the error and said that the problem was the lack of space I was refuted. I did not find out if it is by default or is configurable, however I believe in the second option, but in Linux, when the percentage of free storage reaches 5%, only the ROOT user and a few others previously authorized can write to files. In this case, the application could create its LOG files, but could not write to them. This situation extended to what PHP itself could not write in its session files, so my theory was accepted and we solved the problem with disk cleanup and increased storage.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.