Skip to content

[BUG] carbone:converter process Office of factory 0 died 1 #7

@karimkawambwa

Description

@karimkawambwa

Describe the bug

Trying to run with convertTo: "pdf" option.
The process fails with the following

bcgov-carbone_1   | 2022-06-10T14:51:12.973Z carbone:converter process Office of factory 0 died 1
bcgov-carbone_1   | 2022-06-10T14:51:12.979Z carbone:converter process Python of factory 0 died null
bcgov-carbone_1   | 2022-06-10T14:51:12.979Z carbone:converter factory 0 is completely off

To Reproduce

docker-compose service

    image: bcgovimages/alpine-node-libreoffice
    environment:
      - LOCAL_STACK=1
      - DEBUG=*
    working_dir: /src
    volumes:
      - ./:/src
      - ./.carbone/tmp:/tmp
    command: [ "yarn", "test" ]

carbone.test.js

const fs = require("fs")
const { render } = require("./carbone")

describe("carbone", () => {
    it("should parse test.docx to test.docx", async () => {
        const result = await render(__dirname + "/test.docx", {
            options: {
                reportName: "test.docx"
            }
        }, false);

        fs.writeFileSync(__dirname + "/.carbone/test.docx", result);
    }, 60000)

    it("should convert test.docx to test.pdf", async () => {
        const result = await render(__dirname + "/test.docx", {
            options: {
                reportName: "test.pdf",
                convertTo: "pdf"
            }
        }, false);

        fs.writeFileSync(__dirname + "/.carbone/test.pdf", result);
    }, 60000)
})

Expected behavior

The DOCX document to be converted to PDF

Desktop (please complete the following information):

  • Mac

Additional context

bcgov-carbone_1   | 2022-06-10T14:51:12.973Z carbone:converter process Office of factory 0 died 1
bcgov-carbone_1   | 2022-06-10T14:51:12.979Z carbone:converter process Python of factory 0 died null
bcgov-carbone_1   | 2022-06-10T14:51:12.979Z carbone:converter factory 0 is completely off

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions