Git Product home page Git Product logo

Comments (3)

king-sley-o avatar king-sley-o commented on September 6, 2024 1

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

from replicadb.

osalvador avatar osalvador commented on September 6, 2024

Thank you for reporting the bug!

from replicadb.

osalvador avatar osalvador commented on September 6, 2024

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

from replicadb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.