FirebirdSQL / firebird

Firebird server, client and tools
https://www.firebirdsql.org/
1.23k stars 212 forks source link

Message with empty string ( I/O error during "open O_CREAT" operation for file "" ) when engine can't save data for GTT due to invalid value of FIREBIRD_TMP or when it points to inaccessible directory [CORE5052] #5339

Open firebird-automations opened 8 years ago

firebird-automations commented 8 years ago

Submitted by: @pavel-zotov

Name of directory which should store data of GTT is not shown when FIREBIRD_TMP variable is undefined or points to invalid/inaccessible folder. Instead of this something quite useless issues:

/opt/fb25sc/bin/isql /3255:/var/db/fb25/empty.fdb

recreate global temporary table gtt(x int); --this passed OK insert into gtt values(1); -- this FAILS Statement failed, SQLSTATE = 08001 I/O error during "open O_CREAT" operation for file "" -Error while trying to create file -No such file or directory

After this one need to open script that launched FB ( /etc/init.d/... ) and ensure that variable FIREBIRD_TMP: 1) is defined 2) points to valid directory which does exist and is avail for FB 3) is exported to daemon process.

But starting script can become suddenly "obsolete" when FB 2.5.x is reassembled and begin to work in another arch (e.g. Classic instead of old SC; thus script that should be checked is /etc/xinetd rather than /etc/fb25sc).

So, it would be nice to fix this inconvenice.

firebird-automations commented 8 years ago
Modified by: @pavel-zotov issuetype: Bug \[ 1 \] =\> Improvement \[ 4 \]
firebird-automations commented 8 years ago
Modified by: @dyemanov Version: 3\.0 RC1 \[ 10584 \] Version: 3\.0 Beta 2 \[ 10586 \] Version: 2\.5\.4 \[ 10585 \] Version: 2\.5\.3 Update 1 \[ 10650 \] Version: 2\.1\.7 \[ 10651 \] Version: 3\.0 Beta 1 \[ 10332 \] Version: 2\.5\.3 \[ 10461 \] Version: 3\.0 Alpha 2 \[ 10560 \] Version: 3\.0 Alpha 1 \[ 10331 \] Version: 2\.5\.2 Update 1 \[ 10521 \] Version: 2\.5\.2 \[ 10450 \] Version: 2\.5\.1 \[ 10333 \] Version: 2\.5\.0 \[ 10221 \]