Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on UpdatableModel model #590

Open
cmandrilly opened this issue Jul 31, 2023 · 1 comment
Open

Error on UpdatableModel model #590

cmandrilly opened this issue Jul 31, 2023 · 1 comment

Comments

@cmandrilly
Copy link

Hello,

first of all, thank you for your project!

I tried to set it up but i encounter the following error after
./siren update all
2023-07-31T17:34:06.963032Z ERROR sirene::update: Errored: Error on UpdatableModel model: Unable to run some operations on updatable model (could not open file "/app/data/files/StockUniteLegale_utf8.csv" for reading: No such file or directory).
2023-07-31T17:34:06.965120Z ERROR sirene::update::error: Error on UpdatableModel model: Unable to run some operations on updatable model (could not open file "/app/data/files/StockUniteLegale_utf8.csv" for reading: No such file or directory).

however, the file was created and has data :

/app # tail /app/data/files/StockUniteLegale_utf8.csv
999990526,O,,1983-01-01,,,,,,,,,,NN,,2011-11-29T01:35:23,3,PME,2020,2008-01-01,A,,,TEXAS GULF EXPORT CORPORATION,,,,3220,73.20Z,NAFRev2,00017,,,N
999990542,O,,1984-01-25,,,,,,,,,,NN,,2020-08-25T11:51:54,8,,,2018-09-25,C,,,MILLEIS DIVERSIFICATION,,,,5599,69.10Z,NAFRev2,00022,,,O

what should i do?

thx

@cmandrilly
Copy link
Author

I understood the problem :
in my setup the database is not on the same host, so when you use COPY, the database tries to use
/app/data/files/StockUniteLegale_utf8.csv
but on its own filesystem, but the file is on the docker filesystem.
I think you can fix it using \COPY instead of COPY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant