dynmap icon indicating copy to clipboard operation
dynmap copied to clipboard

Dynmap: webp Cannot run program "/usr/bin/cwebp"

Open timriker opened this issue 1 year ago • 5 comments

Issue Description: Dynmap sample issue description. This description would include as much and as little detail necessary for us to understand the issue in its entirety.

  • Dynmap Version: Dynmap-3.7-beta-4-spigot.jar
  • Server Version: paper-1.20.4-407.jar
  • Pastebin of Configuration.txt: https://pastebin.com/eMbeexiT
  • Server Host (if applicable): *Selfhosted, Ubuntu 22.04 *
  • Pastebin of crashlogs or other relevant logs: [Sat 15:55:26 INFO dynmap] Error encoding image - Cannot run program "/usr/bin/cwebp": error=0, Failed to exec spawn helper: pid: 499961, signal: 11
  • Other Relevant Data/Screenshots: I've not edited the configuration.txt from when it used to work. I have upgraded Dynmap, PaperMC and OS patches
  • Steps to Replicate: Try same webp setup on Ubuntu 22.04?

[ x] I have looked at all other issues and this is not a duplicate
[ x] I have been able to replicate this

webp 1.2.2-2ubuntu0.22.04.2 amd64

timriker avatar Mar 04 '24 22:03 timriker

Hi @timriker,

Did you fix the issue?

What's the version of your cwebp package?


I am having a similar error as seen below.

22:54:15] [Dynmap Render Thread/INFO]: [Dynmap] Error encoding image - Cannot run program "/usr/bin/cwebp": error=2, No such file or directory

The cwepb my system is running is :point_down:

─>$ /usr/bin/cwebp -version
1.3.2
libsharpyuv: 0.2.1

tstoco avatar Mar 28 '24 22:03 tstoco

No. Tile rendering continues to fail as posted. Versions:

$ /usr/bin/cwebp -version 1.2.2

from the webp version 1.22 package listed above on Ubuntu 22.04.4

timriker avatar Mar 28 '24 23:03 timriker

cwebp has no execution rights, check the permissions from the dynmap mc user to that executable

JurgenKuyper avatar Jun 02 '24 09:06 JurgenKuyper

I found the issue on my server. It was the java version in use.

Make sure you are using a version compatible with dynmap 😄

tstoco avatar Jul 20 '24 12:07 tstoco

cwebp does have execuable rights as you can see by the version update above.

Eventually I upgraded Java and other jar files, and rendering has resumed.

[18:58:36 INFO]: This server is running Paper version 1.20.6-147-ver/1.20.6@e41d44f (2024-06-17T19:24:35Z) (Implementing API version 1.20.6-R0.1-SNAPSHOT)

$ java --version openjdk 21.0.3 2024-04-16 OpenJDK Runtime Environment (build 21.0.3+9-Ubuntu-1ubuntu122.04.1) OpenJDK 64-Bit Server VM (build 21.0.3+9-Ubuntu-1ubuntu122.04.1, mixed mode, sharing)

Dynmap-3.7-beta-6-spigot.jar

still same cwebp:

$ /usr/bin/cwebp -version 1.2.2

timriker avatar Jul 20 '24 19:07 timriker