Open fluca1978 opened 2 weeks ago
Update on the problem: I tested the same loading excluding the scuola
table and the application loaded almost everything.
Note that another table has a very similar problem, but:
1) the pgloader
this time continues;
2) the valure that raised the error is very similar in form to the previous one, so I suspect it is not the real value rather a mangled one.
2024-11-07T13:25:18.700492Z NOTICE COPY lauree with 0 rows estimated [1/2]
2024-11-07T13:25:21.091531Z ERROR Error while formatting a row from "lauree":
2024-11-07T13:25:21.105531Z ERROR The value
90.22d0
is not of type
(OR STRING NULL FIXNUM)
when binding PGLOADER.TRANSFORMS::INTEGER-STRING
2024-11-07T13:25:21.148532Z ERROR The value
NIL
is not of type
NUMBER
2024-11-07T13:25:21.158532Z WARNING PostgreSQL warning: there is no transaction in progress
2024-11-07T13:25:21.801542Z NOTICE COPY e_db_sync with 0 rows estimated [1/2]
2024-11-07T13:25:21.845543Z NOTICE COPY tutor_categoriaattivita with 0 rows estimated [1/2]
2024-11-07T13:25:21.845543Z NOTICE COPY tutor_attivita with 0 rows estimated [1/2]
2024-11-07T13:25:21.941544Z NOTICE COPY studente_foto with 0 rows estimated [1/2]
2024-11-07T13:25:27.739637Z NOTICE copy studente_foto: 495781 rows done, 38.5 MB, 6.6 MBps
2024-11-07T13:25:27.762638Z NOTICE Completing PostgreSQL database.
So, how can I find out what are the rows causing the problem, so that I can fix them?
Second, why is not pgloader
stopping once I've configured on error stop
in the configuration file? Am I doing something wrong?
pgloader
version is 3.6.9 running on Ubuntu 24.04:I use it to migrate from an SQLite3 database of 1.6GB in size to a PostgreSQL server. It starts running but it hangs and does not progress. PostgreSQL version is 16.4 running on Rocky Linux 9; SQLite 3 version is 3.45.1.
My pgloader configuration file is:
I invoke it as follows (output shown):
At this point, the program is stuck. On the PostgreSQL side, I see there is no activity (apparently):
On the SQLite3 side, the table it is trying to copy (
scuola
) is:If I run
pgloader
with-d
, the point where it hangs is:and no other messages can be found in the logs.
Considering that there is an error launched on tbale
maturita
, while theCOPY
is active on another table, I tried to search for such a value causing the error, without any success:On the PostgreSQL side, around the point where
pgloader
hangs, I find:I cannot spot the problem at all.