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

bug: Exporter timeout for unknown reason #4485

Open
olivierb2 opened this issue Apr 22, 2024 · 0 comments
Open

bug: Exporter timeout for unknown reason #4485

olivierb2 opened this issue Apr 22, 2024 · 0 comments
Labels
bug self-hosted The issue is happening on a self-hosted instance

Comments

@olivierb2
Copy link

olivierb2 commented Apr 22, 2024

Steps To Reproduce

I deployed penpot manually into a LXC instance and I have only one problem since the beginning, I cannot export my mockups to PDF.

I defined into environment variable exporter the following information:
PENPOT_PUBLIC_URI=http://localhost
PENPOT_REDIS_URI=redis://localhost/0

Public URI seems reachable from server itself without any problem (Nginx has been configured this way). But exporter return a timeout (without specifying the target which try to be reached).

To reproduce the issue:

  • Open any project available from Projects page.
  • Click on the top left "three dot" menu > File > Export the workspace to PDF.
  • Select at least one item to export and click "Export".
  • An export on going notification appear, but after few seconds, the page returns "Internal error"

Expected behavior

I'm expecting to get a PDF file.

Actual behavior

I getting an "Internal error" due to an unexpected timeout.

Screenshots or video

No response

Desktop (please complete the following information)

  • Browser (client): Firefox ERS 115.8.0esr

Smartphone (please complete the following information)

No response

Environment (please complete the following information)

  • Self hosted and self installed (no Docker)
  • OS: Debian Bookworm
  • NodeJS: 18.17.1
  • Java: openjdk version "21.0.2"
  • Penpot: tag version "2.0.2".

Frontend Stack Trace

Hint:    http error
Prof ID: 314091e9-9328-8055-8002-b5496427b72a
Team ID: 314091e9-9328-8055-8002-b549ac7405d9

Data:
{:type :unexpected-error, :status 404, :data "(...)", :hint "http error"}

Trace:
PENPOT.pi@https://replaced.domain.com/js/shared.380c77a70.js:3469:101
PENPOT.ri@https://replaced.domain.com/js/shared.380c77a70.js:3469:418
PENPOT.qi@https://replaced.domain.com/js/shared.380c77a70.js:3469:371
PENPOT.iwb@https://replaced.domain.com/js/shared.380c77a70.js:4414:180
Pwa/<@https://replaced.domain.com/js/shared.380c77a70.js:4388:245
u@https://replaced.domain.com/js/shared.380c77a70.js:243:276
r@https://replaced.domain.com/js/shared.380c77a70.js:243:218
d@https://replaced.domain.com/js/shared.380c77a70.js:150:99
next@https://replaced.domain.com/js/shared.380c77a70.js:158:429
next@https://replaced.domain.com/js/shared.380c77a70.js:221:222
d@https://replaced.domain.com/js/shared.380c77a70.js:150:99
next@https://replaced.domain.com/js/shared.380c77a70.js:158:429
next@https://replaced.domain.com/js/shared.380c77a70.js:243:350
d@https://replaced.domain.com/js/shared.380c77a70.js:150:99
next@https://replaced.domain.com/js/shared.380c77a70.js:158:429
next@https://replaced.domain.com/js/shared.380c77a70.js:221:222
d@https://replaced.domain.com/js/shared.380c77a70.js:150:99
next@https://replaced.domain.com/js/shared.380c77a70.js:158:429
shadow$provide[1]/q/</<@https://replaced.domain.com/js/shared.380c77a70.js:151:383


Last events:
[":app.main.data.workspace.changes/update-indices"
 ":app.main.data.workspace.transforms/move-shapes-to-frame"
 ":app.main.data.workspace.changes/commit-changes"
 ":app.main.data.workspace.collapse/expand-collapse"
 ":app.main.data.workspace.transforms/move-shapes-to-frame"
 ":app.main.data.workspace.transforms/finish-transform"
 ":app.main.data.workspace.undo/commit-undo-transaction"
 ":app.main.data.workspace.viewport/finish-panning"
 ":app.main.data.workspace.zoom/finish-zooming"
 ":app.main.data.workspace.texts/update-position-data"
 ":app.main.data.workspace.texts/resize-text"
 ":app.main.data.workspace.texts/clean-text-modifier"
 ":app.main.data.workspace.changes/send-update-indices"
 ":app.main.data.workspace.changes/update-shapes"
 ":app.main.data.workspace.texts/commit-position-data"
 ":app.main.data.workspace.undo/start-undo-transaction"
 ":app.main.data.workspace.changes/update-shapes"
 ":layout/update"
 ":app.main.data.workspace.shape-layout/update-layout-positions"
 ":app.main.data.workspace.undo/commit-undo-transaction"
 ":app.main.data.workspace.texts/commit-resize-text"
 ":app.main.data.workspace/workspace-focus-lost"
 ":app.main.data.workspace.thumbnails/request-thumbnail"
 ":app.main.data.workspace.thumbnails/update-thumbnail"
 ":app.main.data.workspace.thumbnails/assoc-thumbnail"
 ":app.main.data.workspace.persistence/persist-changes"
 ":app.main.data.workspace.thumbnails/update"
 ":app.main.data.workspace.thumbnails/clear-thumbnail"
 ":app.main.data.workspace.changes/update-indices"
 ":app.main.data.workspace.persistence/shapes-changes-persisted"
 ":app.main.data.workspace.changes/update-indices"
 ":app.main.data.workspace.persistence/shapes-changes-persisted"
 ":app.main.data.workspace.changes/update-indices"
 ":app.main.data.workspace.persistence/shapes-changes-persisted"
 ":app.main.data.workspace.persistence/shapes-changes-persisted-finished"
 ":app.main.data.workspace.changes/send-update-indices"
 ":app.main.data.workspace.undo/check-open-transactions"
 ":app.main.data.workspace.thumbnails/request-thumbnail"
 ":app.main.data.workspace.thumbnails/update-thumbnail"
 ":app.main.data.workspace.thumbnails/assoc-thumbnail"
 ":app.main.data.workspace.undo/check-open-transactions"
 ":app.main.data.workspace.guides/set-hover-guide"
 ":app.main.data.modal/show-modal"
 ":app.main.data.exports/show-workspace-export-frames-dialog"
 ":app.main.data.modal/hide-modal"
 ":app.main.data.exports/request-multiple-export"
 ":app.main.data.exports/initialize-export-status"
 ":app.main.data.websocket/message"
 ":app.main.data.exports/update-export-status"
 ":app.main.data.websocket/message"
 ":app.main.data.exports/update-export-status"]

Backend Stack Trace

Apr 22 09:11:20 penpot node[78684]: ERR [app.handlers.export-frames] hint="unexpected error on frames exportation"
Apr 22 09:11:20 penpot node[78684]:   Data:
Apr 22 09:11:20 penpot node[78684]:   {:type :internal, :code :timeout, :hint "ResourceRequest timed out"}
Apr 22 09:11:20 penpot node[78684]:   
Apr 22 09:11:20 penpot node[78684]:   Error: ResourceRequest timed out
Apr 22 09:11:20 penpot node[78684]:       at new cljs.core.ExceptionInfo (/opt/penpot/exporter/target/app.js:26821:14)
Apr 22 09:11:20 penpot node[78684]:       at cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (/opt/penpot/exporter/target/app.js:26856:10)
Apr 22 09:11:20 penpot node[78684]:       at app.browser.translate_browser_errors (/opt/penpot/exporter/target/app.js:75696:29)
Apr 22 09:11:20 penpot node[78684]:       at /opt/penpot/exporter/target/app.js:74997:134
Apr 22 09:11:20 penpot node[78684]:       at Object.reject (/opt/penpot/exporter/target/app.js:74512:107)
Apr 22 09:11:20 penpot node[78684]:       at $jscomp$scope$84173391$24$processNextTick (/opt/penpot/exporter/target/app.js:73398:167)
Apr 22 09:11:20 penpot node[78684]:       at $jscomp$scope$84173391$26$transition (/opt/penpot/exporter/target/app.js:73377:110)
Apr 22 09:11:20 penpot node[78684]:       at $jscomp$scope$84173391$13$PromiseImpl.reject (/opt/penpot/exporter/target/app.js:73479:82)
Apr 22 09:11:20 penpot node[78684]:       at Object.complete (/opt/penpot/exporter/target/app.js:73411:28)
Apr 22 09:11:20 penpot node[78684]:       at $jscomp$scope$84173391$25$resolveTask (/opt/penpot/exporter/target/app.js:73380:54)
Apr 22 09:11:20 penpot node[78684]: DBG [app.handlers] hint="process-request", cmd=:get-resource

Additional context

No response

@olivierb2 olivierb2 added the bug label Apr 22, 2024
@madalenapmelo-kp madalenapmelo-kp added the self-hosted The issue is happening on a self-hosted instance label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug self-hosted The issue is happening on a self-hosted instance
Projects
None yet
Development

No branches or pull requests

2 participants