Closed dimakievua closed 6 years ago
Quick tip: when posting multi-line things on git hub comments, use triple backticks (```) instead of a single (`)
Ok. I'm not able to reproduce your issue and I am not 100% sure why, have you overwritten databases.conf in /firebird/etc somehow? The only thing I see you change is firebird.conf and I don't see where it can affect accessing employee.fdb, but maybe a copy of your firebird.conf would help as well
Either way I believe replacing employee
with ${PREFIX}/examples/empbuild/employee.fdb
is probably the best fix.
I'm using this guide as a template for the actions and they call for accessing the example employee database when initializing the security database. I assume either because security3.fdb may not necessarily exist yet or to avoid locking it.
I'm doing a build and test cycle now just to make sure it doesn't break other things, but without more information I can not accurately reproduce your specific issue to ensure it is fixed on my own.
Ok the default restrict blocks using a direct path to employee.fdb anyway so wouldn't work. I noticed at the bottom of the guide it says
Since Firebird 2, users—including SYSDBA—could not log in to the security database directly. With Firebird 3 it is possible to establish a direct, embedded connection to the security database. With the appropriate configuration parameters, you can control the ability to connect remotely to other security databases.
So for firebird 3+ it looks lke using ${VOLUME}/system/security3.fdb
is the correct solution.
Still no idea why you can't access the employee alias though, nothing in your configuration implies it would be blocked.
The fix is being built on the docker hub mow.
Jacob,
That's really strange, because we are using you image to build containers on 10+ hosts and only 3 now affected. I have been using 3.0.2 from the time it was released and only 2 days ago this issue appeared. So root cause is found, but why it reproduced not always but time by time it's still question.
Thank you for help and have a good day!
Finally wrapped my head around why its happening, the docker-entrypoint only checks for the existing of /firebird/etc not individual files under it, so if any file exists under it then it doesn't copy the rest.
So when you include firebird.conf then databases.conf doesn't get created. ergo theres no alias to employee. The fix I already put in works around that in probably the best way, I could watch for each file missing and only copy the missing ones, but perhaps theres a reason one wouldn't want the rest, I think in this case it might be best to stick with how it is.
Hello Jacob, I found issue when start container based on your image of firebird 3.x. When I add it to docker compose by:
Config:
And when container started I found in logs:
Inside container impossible to restore database backup from /databases I found place where it failed:
If I replace employee with "${VOLUME}/system/security3.fdb" everything ok.
Such strange behavior observed on 3 PC already and I'm trying not to update image. Could you please check this issue and fix it or propose workaround?
Thank you in advance. Dmitriy