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

Cannot run the docker succesfully #68

Closed
victoriokhomas opened this issue Apr 28, 2022 · 3 comments
Closed

Cannot run the docker succesfully #68

victoriokhomas opened this issue Apr 28, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@victoriokhomas
Copy link

I got this error when I tried running the instructed docker command
image

@osalvador
Copy link
Owner

Thank you for reporting the bug!

@osalvador osalvador added the bug Something isn't working label May 17, 2022
@osalvador
Copy link
Owner

Hi @victoriokhomas

As I can see, this is a common problem when mounting a docker volume with a file: https://stackoverflow.com/questions/42248198/how-to-mount-a-single-file-in-a-volume. You have probably failed to supply a valid and absolute path.

ReplicaDB Docker works perfectly with the correct parameters for the docker command:

docker run --rm \
    -v /Users/oscar.salvador/replicadb.conf:/home/replicadb/conf/replicadb.conf \
   -d --network=host osalvador/replicadb
2022-05-25 16:04:18,175 INFO  ReplicaDB:63 Running ReplicaDB version: 0.11.8
2022-05-25 16:04:18,376 INFO  SqlManager:386 Truncating sink table with this command: TRUNCATE TABLE b_notificacion_h
2022-05-25 16:04:18,752 INFO  ReplicaTask:36 Starting TaskId-0
2022-05-25 16:04:18,771 INFO  SqlManager:141 TaskId-0: Executing SQL statement: SELECT * FROM b_notificacion OFFSET ? 
2022-05-25 16:04:18,771 INFO  SqlManager:148 TaskId-0: With args: 0, 
2022-05-25 16:04:18,784 WARN  ConnManager:188 Options source-columns and sink-columns are null, getting from Source ResultSetMetaData: id,id_persona,id_tipo_notificacion,id_plantilla,cod_n_estado_notificacion,id_persona_creacion_mensaje,fec_envio_planificada,fec_enviado,fec_confirmacion,txt_error,txt_mensaje_contenido,txt_mensaje_titulo,txt_destinatario,cod_n_destinatario_tipo,cod_v_usuario_creacion,fec_dt_creacion,cod_v_usuario_modificacion,fec_dt_modificacion,txt_msgid
2022-05-25 16:04:18,785 INFO  PostgresqlManager:163 Copying data with this command: COPY b_notificacion_h (id,id_persona,id_tipo_notificacion,id_plantilla,cod_n_estado_notificacion,id_persona_creacion_mensaje,fec_envio_planificada,fec_enviado,fec_confirmacion,txt_error,txt_mensaje_contenido,txt_mensaje_titulo,txt_destinatario,cod_n_destinatario_tipo,cod_v_usuario_creacion,fec_dt_creacion,cod_v_usuario_modificacion,fec_dt_modificacion,txt_msgid) FROM STDIN WITH DELIMITER e'\x1f' ENCODING 'UTF-8' 
2022-05-25 16:04:18,793 INFO  ReplicaTask:72 A total of 3 rows processed by task 0
2022-05-25 16:04:18,796 INFO  ReplicaDB:54 Total process time: 637ms

@king-sley-o
Copy link

If you are using docker-compose file relative path should work and you shouldn't get the error again

...
 replicadb:
    volumes: 
      - ./replica-db/replicadb.conf:/home/replicadb/conf/replicadb.conf
    image: osalvador/replicadb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants