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

Unable to send image #148

Closed
mbaum0 opened this issue Feb 5, 2025 · 4 comments · Fixed by #149
Closed

Unable to send image #148

mbaum0 opened this issue Feb 5, 2025 · 4 comments · Fixed by #149

Comments

@mbaum0
Copy link
Contributor

mbaum0 commented Feb 5, 2025

Attempting to send an image results in a failure.

I have databag deployed using docker compose.

Logs:

databag  | 2025/02/05 18:35:39 POST /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/topics?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5 AddChannelTopic 19.711931ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/topics?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5&revision=13&begin=1 GetChannelTopics 3.914434ms
databag  | 2025/02/05 18:35:39 GET /content/channels?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5&channelRevision=13&types=%5B%22sealed%22%2C%22superbasic%22%5D GetChannels 1.737496ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/topics/6355d2c8-4f64-4860-bacf-de4e9da00525/detail?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5 GetChannelTopic 3.72423ms
databag  | 2025/02/05 18:35:39 GET /content/channels?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.0b5fc001f25ba86321925cfcd4e46165&channelRevision=13&types=%5B%22sealed%22%2C%22superbasic%22%5D GetChannels 1.722966ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/summary?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5 GetChannelSummary 3.334675ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/summary?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.0b5fc001f25ba86321925cfcd4e46165 GetChannelSummary 2.203363ms
databag  | 2025/02/05 18:35:39 POST /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/topics/6355d2c8-4f64-4860-bacf-de4e9da00525/assets?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5&transforms=%5B%22ithumb%3Bphoto%22%2C%22ilg%3Bphoto%22%5D AddChannelTopicAsset 65.282455ms
databag  | 2025/02/05 18:35:39 GET /profile/image?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5&revision=5 GetProfileImage 2.872811ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/topics?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5&count=32&end=1 GetChannelTopics 2.576086ms
databag  | 2025/02/05 18:35:39 /internal/transcodeUtil.go:110
databag  | 2025/02/05 18:35:39 /internal/transcodeUtil.go:111
databag  | 2025/02/05 18:35:39 /internal/transcodeUtil.go:112 fork/exec /opt/databag/transform/transform_ithumb.sh: no such file or directory
databag  | 2025/02/05 18:35:39 /internal/transcodeUtil.go:110
databag  | 2025/02/05 18:35:39 /internal/transcodeUtil.go:111
databag  | 2025/02/05 18:35:39 /internal/transcodeUtil.go:112 fork/exec /opt/databag/transform/transform_ilg.sh: no such file or directory
databag  | 2025/02/05 18:35:39 PUT /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/topics/6355d2c8-4f64-4860-bacf-de4e9da00525/subject?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5&confirm=true SetChannelTopicSubject 47.544889ms
databag  | 2025/02/05 18:35:39 GET /content/channels?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.0b5fc001f25ba86321925cfcd4e46165&channelRevision=14&types=%5B%22sealed%22%2C%22superbasic%22%5D GetChannels 9.98994ms
databag  | 2025/02/05 18:35:39 GET /content/channels?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5&channelRevision=14&types=%5B%22sealed%22%2C%22superbasic%22%5D GetChannels 1.364327ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/summary?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.0b5fc001f25ba86321925cfcd4e46165 GetChannelSummary 2.473968ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/summary?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5 GetChannelSummary 2.386367ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/topics?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5&revision=14&begin=1 GetChannelTopics 3.412133ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/topics/6355d2c8-4f64-4860-bacf-de4e9da00525/detail?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5 GetChannelTopic 3.441026ms
databag  | 2025/02/05 18:35:39 GET /content/channels/faf81479-f53d-4e92-97a8-88c658803b28/topics?agent=bd8617f2eda191ed21c53d43fa5d69ab7dc7553ae789c60e5c83e51efa7ec2bd.99ffd6ed70a0590eb1f121876510e2a5&count=32&end=1 GetChannelTopics 2.890139ms

The /opt/databag/transform/transform_ilg.sh is present in the container. I think that the error could be coming from the process and the args that it is invoked with.

@balzack
Copy link
Owner

balzack commented Feb 6, 2025

Within the Go app, it invokes exec.Command on the transcoding script, so it shouldn't be dependent on path environment.

From a terminal within the running container, can you confirm the file is present and executable? Is this running the container from the recent PR?

@mbaum0
Copy link
Contributor Author

mbaum0 commented Feb 6, 2025

from inside the container

/app/databag/net/server # /opt/databag/transform/transform_ilg.sh
/bin/sh: /opt/databag/transform/transform_ilg.sh: not found

I just figured it out. I was using @lil5 new containers and they don't have /bin/bash and transform_ilg.sh specifies bash as its interpreter.

/app/databag/net/server # /opt/databag/transform/transform_ilg.sh
WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"

convert:  `1024x1024>' @ error/deprecate.c/ConvertImageCommand/3365.

@lil5
Copy link
Contributor

lil5 commented Feb 6, 2025

Really sorry about this, going to be self hosting an instance of databag from tonight 🤞

@balzack Do you have a community databag server? Great for testing federation, email me at li@last.nl

@balzack
Copy link
Owner

balzack commented Feb 6, 2025

I run several different instances for various testing scenarios. I also host databag.coredb.org for people browsing the repo test out, would this work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants