Failed to open curl lib from binary, use libcurl.so instead
OS: Ubuntu 20.04.2 LTS
Java: java version "15.0.1" 2020-10-20
UBUNTU SERVER
When executing bedrock_server as a none root user I get the following:
NO LOG FILE! - setting up server logging...
[2021-04-09 19:05:10 INFO] Starting Server
[2021-04-09 19:05:10 INFO] Version 1.16.220.02
[2021-04-09 19:05:10 INFO] Session ID c99cc735-51b0-4afe-af9e-0ec80fb338bb
[2021-04-09 19:05:10 INFO] Level Name: world
[2021-04-09 19:05:10 ERROR] Error opening allow list file: whitelist.json
[2021-04-09 19:05:10 INFO] Game mode: 0 Survival
[2021-04-09 19:05:10 INFO] Difficulty: 1 EASY
[INFO] opening worlds/world/db
[INFO] IPv4 supported, port: 0
[INFO] IPv6 supported, port: 0
[INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.16.220.02
OS: Linux
Server start: 2021-04-09 19:05:10 EDT
Dmp timestamp: 2021-04-09 19:05:11 EDT
Upload Date: 2021-04-09 19:05:11 EDT
Session ID: c99cc735-51b0-4afe-af9e-0ec80fb338bb
Commit hash: 83dca9ce456063492dfe4a5f8f0ee6894c94b963
Build id: 5667913
CrashReporter Key: 201a5b52-21df-3391-8c78-e26feb03b5f7
Crash
[INFO]
Failed to open curl lib from binary, use libcurl.so instead
I made sure that bedrock_server is executable with 775 and 777
Environment
java version "15.0.1" 2020-10-20
OS: Ubuntu 20.04.2 LTS
Linked Issues
is duplicated by14
Comments37
History40
Added is duplicated by link: BDS-12695Release 1.16.220.02 is brokenDuplicate
Added is duplicated by link: BDS-12667bedrock server not launchingDuplicate
Added is duplicated by link: BDS-13318Failure to open curl lib causing crashDuplicate
Added affects versions: 1.16.200 1.16.201 Hotfix 1.16.201.03 Hotfix 1.16.210
Added is duplicated by link: BDS-13806Client Version leads to Corrupt WorldDuplicate
Added affects versions: 1.17.1
Deleted comment:
sudo apt update && sudo apt upgrade && sudo apt install curl && sudo apt-get install libcurl4-openssl-dev
this one helped me, appers mcpe server needs smth more than just curl in a system
Added is duplicated by link: BDS-14979Failed to open curl lib from binary, use libcurl.so instead Duplicate
Added affects versions: 1.17.11 Hotfix
Added is duplicated by link: BDS-13752Server crash randomlyDuplicate
Added is duplicated by link: BDS-14212bds crashing randomlyDuplicate
Added affects versions: 1.17.2
Added is duplicated by link: BDS-14895Server crashesDuplicate
Added is duplicated by link: BDS-15577Server CrashingDuplicate
Added affects versions: 1.17.30
Added is duplicated by link: BDS-15864server (bedrock dedicated server) shutting down when a specific player joins.Duplicate
Added is duplicated by link: BDS-16472Bedrock server does not start on Linux ManjaroDuplicate
Added affects versions: 1.18.0
Added is duplicated by link: MCPE-147907Client and server crash due to stuck player positionDuplicate
Confirmation Status: Unconfirmed → Community Consensus
Added is duplicated by link: BDS-16726Failed to open curl lib from binary, use libcurl.so insteadDuplicate
Added affects versions: 1.18.2 Hotfix
Added is blocked by link: BDS-17206bedrock dedicated server for ubuntu will not start it just shows an errorDuplicate
Added is duplicated by link: BDS-17206bedrock dedicated server for ubuntu will not start it just shows an errorDuplicate
Removed is blocked by link: BDS-17206bedrock dedicated server for ubuntu will not start it just shows an errorDuplicate
Added affects versions: 1.19.2 Hotfix
Resolution: Unresolved → Fixed
I have been having this exact same issue. Presumably this is a bug. I have tried manually linking the libcurl.so library to the execution of ./bedrock_server, but nothing fixes it. I have restarted a reboot of my machine fixes it occasionally, but temporarily. Regardless of if I'm root or not, this error still occurs.
ubuntu@vps-6458aed1:~/MCscripts$ sudo LD_LIBRARY_PATH=. ./bedrock_server
NO LOG FILE! - setting up server logging...
[2021-04-10 00:03:55 INFO] Starting Server
[2021-04-10 00:03:55 INFO] Version 1.16.220.02
[2021-04-10 00:03:55 INFO] Session ID f4e072ae-f092-4ae6-81e5-804bfb1d05df
[2021-04-10 00:03:55 INFO] Level Name: Bedrock level
[2021-04-10 00:03:55 INFO] Game mode: 0 Survival
[2021-04-10 00:03:55 INFO] Difficulty: 1 EASY
[INFO] opening worlds/Bedrock level/db
[INFO] IPv4 supported, port: 0
[INFO] IPv6 supported, port: 0
[INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.16.220.02
OS: Linux
Server start: 2021-04-10 00:03:55 UTC
Dmp timestamp: 2021-04-10 00:03:56 UTC
Upload Date: 2021-04-10 00:03:56 UTC
Session ID: f4e072ae-f092-4ae6-81e5-804bfb1d05df
Commit hash: 83dca9ce456063492dfe4a5f8f0ee6894c94b963
Build id: 5667913
CrashReporter Key: abe274b2-d47d-37d1-baa9-a846bbbe292f
Crash
[INFO]
Failed to open curl lib from binary, use libcurl.so instead
Here is my crash report as well. As previously mentioned, I have tried a multitude of library linking methods to try to link to the libcurl.so library. I know for a fact that I have permissions to execute bedrock_server as I have given myself, permission, in addition as try this directly at root. Nothing has fixed it. I've only had this issue since 1.16.220.
Also getting this error when attempting to launch Bedrock 1.16.220.02 on Ubuntu 20.04.2 LTS.
Note: No errors encountered with Bedrock 1.16.210.06.
Interesting note:
Running $ ldd bedrock_server for the 210.06 version lists 49 shared libraries, including libcurl.
But, ldd of the newer bedrock_server only lists 13 libraries. libcurl doesn't not appear in the list.
Here is the list:
linux-vdso.so.1 (0x00007fff2fdbb000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc2d33fb000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007fc2d33de000)
libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fc2d334b000)
libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fc2d3075000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc2d306f000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc2d3064000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc2d2f13000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc2d2ef0000)
libstdc+.so.6 => /lib/x86_64-linux-gnu/libstdc+.so.6 (0x00007fc2d2d0f000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc2d2cf4000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc2d2b02000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc2d341f000)
Hey guys i might can give u a clue here. If you get the error that says Failed to open curl lib from binary, use libcurl.so instead ** we've found out that this is no libary issue it is mostly due to that the server can't bind it's ports correctly.
Also new since this version is that IPv6 is working, which it kinda wasn't beforehand. So you also might wanna check if there are any conflicts regarding those ports.
Here we discussed some similar issues:
BDS-12695OMG I finally figured it out after 2 weeks!!!
So the issue is not with the Bedrock release they should probably log better! but the issue is with IPV6 support (on a linux server) minecraft is trying to share the port with ipv4 so the fix for this is to tell the actual linux server to not share the connection and force ipv6 to have a dedicated connection this is how you do it
I have tried to disable ipv6 with minecraft and still it didn't work but the above worked for me.
i have the same error what i did was change the port from 19132 and 19132 to 19232 and 19233 and it worked
The best way I found to fix this is to change the IPv6 port to be 1 more than the IPv4 port such as 19132 —> 19133
Then it would be great if the error message would be more precise... for example "port already in use" or something like that...
when i changed the port, it worked! thanks a lot...
It's happening with 1.17.0.03 too, but slightly different logging.
This is the extra
It crashes when I went to the overworld and it tried to load/generate new chunks, I never been there before. Re logged in, re-entered the portal, walked around, tried to load the distance too, crashed again.
Somehow we have the same Error Message →
BDS-13806FWIW, this appears to occur when a JSON file is malformed as well. In particular, the whitelist.json file was malformed after a reboot; it is unclear if it was from a user modifying it or from something that may have occurred between the change from 1.16.x or 1.17.1.01 to 1.17.2.01.
Yoni's suggestion was a good fix for linux - I've been using ipv6 for ages, and it's only been an issue since updating to the latest build
https://bugs.mojang.com/browse/BDS-12751?focusedCommentId=970916&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-970916
I have this again on 1.17.30, but different ports are configured in server.properties. But log shows:
So seems it uses default port and the configured one?!?
I also ran into this issue:
NO LOG FILE! - setting up server logging...
[2021-10-03 03:24:52:478 INFO] Starting Server
[2021-10-03 03:24:52:479 INFO] Version 1.17.32.02
[2021-10-03 03:24:52:479 INFO] Session ID f1d748b8-21a3-4000-a731-e9cbf4759d83
[2021-10-03 03:24:52:479 INFO] Level Name: Bedrock level[2021-10-03 03:24:52:561 INFO] Game mode: 0 Survival
[2021-10-03 03:24:52:561 INFO] Difficulty: 1 EASY
[INFO] opening worlds/Bedrock level/db
[INFO] IPv4 supported, port: 0
[INFO] IPv6 supported, port: 0
[INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.17.32.02
OS: Linux
Server start: 2021-10-03 03:24:51 EDT
Dmp timestamp: 2021-10-03 03:24:53 EDT
Upload Date: 2021-10-03 03:24:53 EDT
Session ID: f1d748b8-21a3-4000-a731-e9cbf4759d83
Commit hash: af849e3a59b21dcf3460c88e02b4438405416dcc
Build id: 7338473
CrashReporter Key: 7beff209-51af-3b79-bd52-3d62f18553da
Crash
[INFO]
Failed to open curl lib from binary, use libcurl.so instead
2f5f9bd6-043b-45e3-875c-7dd5b502de28
centos8 with “dnf install libcurl”and “shutdown -r now”
but it still...
Same issue here
Same issue server version 1.17.41.01 on Ubuntu Server 20.04
Please Update ticket to reflect latest server ver still has issue
Initially had libcurl.so error:
so out of habit tried running with elevated privileges, the server seems to start, with two instances though, as there are two sets of port bindings. But it doesn't crash, and any mention of missing curl missing has disappeared
Out of curiosity made sure there was nothing holding onto those ports in netstat using netstat -uplnt | less
So Minecraft is binding to these ports whether the server is running correctly or not
Annoyingly no mention is made of what version of curl is missing so I installed
And this brought back the original error and stopped it from binding to any ports
I then tried manually installing the library from the package
With no luck
I have tried a fresh BDS install and am this close to trying a fresh ubuntu server install
After trying yoni's solution in relation to ipv6 and a restart im back with a seemingly functional server but am unable to connect with either port the log provides
Weird, I run as a system user without issue but if the ports are used (example: I already have a 2nd server using the same ports) I get the curl lib shared object file error.
+1 facing same issue on Ubuntu 20.04 server
Any word on this?
Had one of these happen yet again tonight, managed to grab the logs:
This is happening about once every 1-2 days on both Linux servers I'm on. Sometimes it seems to be linked to people traveling to/from the End but a few cases have not involved that.
Generally, the crashes have caused a rollback of the game world but not of the players, of about 90 seconds. So for example, I placed down a shulker box about a minute before the crash happened, but when the server came back up it was no longer placed AND no longer in my inventory.
While this is fortunately not a constant problem like some crashes that were happening during Village & Pillage update, it's still enough that it's making people scared to lose things when they play. Very frustrating.
Edit: happened again just a few minutes ago, since mine's still the latest comment I'm just adding it in:
Just had this as well with players reporting a rollback
[2022-01-28 06:27:45:139 INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.18.2.03
OS: Linux
Server start: 2022-01-27 19:00:07 UTC
Dmp timestamp: 2022-01-28 06:27:45 UTC
Upload Date: 2022-01-28 06:27:45 UTC
Session ID: 84a35f14-e878-4309-8428-e267d252e594
Commit hash: 74c6ce6eb10dfe6b481aa14578b375b50a5d2028
Build id: 7966228
CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293Crash
[2022-01-28 06:27:45:139 INFO] at clone (UnknownFile:?)
Failed to open curl lib from binary, use libcurl.so instead
Had this happening 3 days ago & yesterday:
Started watching console again after the new logging got added but doesn't appear to be anything new.
Some things I have noticed:
After a few more of these I can confirm that while it is far more likely to happen directly after someone goes through an End Portal (and is probably the easiest way for the devs to induce the problem if they'd like), it's not the only time. Out of the two servers I'm monitoring I've been seeing 1-2 of these crashes a day and out of the ~10 per week, ~7 are directly after entering or leaving the End (within 60 seconds after) and the other ~3 are not.
My current best theory is that it's got something to do with loading chunks that haven't yet been loaded since the server last restarted, especially because rapidly jumping in and out of the end doesn't seem to cause it if the initial entrance didn't.
Thanks for the info!
I'm also having this issue.
Ive had a bedrock world active for about a year on our server, hosted on ggservers.com
recently we've had a bunch of players repeatedly get kicked from the server, sometimes the server will crash when a player just logs in.
on the server console we keep getting the error:
INFO Failed to open curl lib from binary, use libcurl.so instead
Heres our server console, when the crash happened:
01.05 12:57:12 [Server] INFO Package: com.mojang.minecraft.dedicatedserver
01.05 12:57:12 [Server] INFO Version: 1.18.30.04
01.05 12:57:12 [Server] INFO OS: Linux
01.05 12:57:12 [Server] INFO Server start: 2022-05-01 02:38:51 BST
01.05 12:57:12 [Server] INFO Dmp timestamp: 2022-05-01 12:57:12 BST
01.05 12:57:12 [Server] INFO Upload Date: 2022-05-01 12:57:12 BST
01.05 12:57:12 [Server] INFO Session ID: a309fd36-967a-43e8-a19e-780e824ae83e
01.05 12:57:12 [Server] INFO Commit hash: 49c247f9e920c88ad8f8aa0d338313c739e3d554
01.05 12:57:12 [Server] INFO Build id: 9208238
01.05 12:57:12 [Server] INFO CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293
01.05 12:57:12 [Server] INFO Crash
01.05 12:57:12 [Server] INFO at clone (UnknownFile:?)
01.05 12:57:12 [Server] INFO Failed to open curl lib from binary, use libcurl.so instead
01.05 12:57:13 [Server] INFO 67a9881b-1272-48a5-9aae-12109fcc3ab4
01.05 12:57:13 [Multicraft] Server shut down (running)
01.05 12:57:13 [Multicraft] Restarting crashed server in 600.0 seconds
01.05 12:57:13 [Multicraft] Looks like a crash, check the server console. Return value: 1
01.05 12:57:13 [Multicraft] Server stopped
I have no idea what to do, or how to fix this.
GGsupport have reccomended to revert to a backup, but the best backups we have are from about a month ago, and i think back then, we were still getting this error just not as frequently.
Now we crash multiple times a day, and the server is crashing, more than its not.
The admins cant keep up with having to reset the server this often.
I have the same problem, server just have crushed 2 times within an hour
Important info: we did use nether portals, a lot. Maybe bug is portal-related, hope that helps
Been getting this bug still in 1.19. Below is the general info it gives. I have noticed that the crash is most commonly triggered when mapping out or traveling a long distance. The crash tends to happen after 1000 to 3000 blocks are traveled. The crash chance is greatly increased when using elytra with fireworks, being every min or two. The crash is further increased when in old regions or near old mobs/villages. There have also been a few accounts where this bug wouldn't fully crash the server and simply freeze up the world around the player keeping the player from fully disconnecting and needing a server reboot to kick the player and fix the problem.
CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293
08.06 16:59:39 [Server] INFO Crash
08.06 16:59:39 [Server] INFO [2022-06-08 16:59:39:538 INFO] at clone (UnknownFile:?)
08.06 16:59:39 [Server] INFO Failed to open curl lib from binary, use libcurl.so instead
08.06 16:59:40 [Server] INFO 5492212c-6e3e-4b10-bed2-33141f36c13d
This is an update for what I found about this bug. The server only appears to throw this error when having a used map on person after traveling a decent distance or when coming into render distance with something like a village while having currently used map in the inventory.
Hope this helps to narrow the issue down.
This has happened twice now after recently switching to Linux hosting from Windows 10. First time was a failed start, ran bedrock_server_symbols.debug and all was fine. This seems to resolve the problem in the short term.
The second time, Player reports destroying their old Portal just before the crash. Location of Player was around 3000, , 6000 blocks from spawn when the portal was broken.
Crash report that was generated for the second crash:
[2022-07-04 14:27:45:303 INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.19.2.02
OS: Linux
Server start: 2022-07-04 12:19:41 EDT
Dmp timestamp: 2022-07-04 14:27:45 EDT
Upload Date: 2022-07-04 14:27:45 EDT
Session ID: cd45c973-227f-409d-a04d-7b70da613319
Commit hash: b3394b7158e4fbb6c99df8addd52f13420b1dcf8
Build id: 10134919
CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293
Crash
[2022-07-04 14:27:45:303 INFO] at clone (UnknownFile:?)
Failed to open curl lib from binary, use libcurl.so instead
it seems like restarting the computer bedrock_server was running on fixes the problem at least for some time
I started getting the same error message as in duplicate ticket
BDS-17206.I'm running on Ubuntu 18.04.6 on AWS Lightsail and when executing "apt-get upgrade" I received this message:
The following package was automatically installed and is no longer required:
linux-aws-5.4-headers-5.4.0-1083
Use 'sudo apt autoremove' to remove it.
I removed that package, but then when I tried launching bedrock_server, I started getting the error from this bug:
[2022-xx-xx xx:xx:xx:xxx INFO] at gsignal (UnknownFile:?)
at abort (UnknownFile:?)
at __libc_start_main (UnknownFile:?)
Failed to open curl lib from binary, use libcurl.so instead
I rolled back to a previous server snapshot and things are resolved, though I'm getting the message again about linux-aws-5.4-headers being no longer required. I won't bother removing the package this time.
Sharing my experience/ resolution because I have a pretty common setup, having used online guides for setting up this server on Lightsail. I figure others will run into the same thing.
This, or something ?related is still happening in 1.19.50.02.
Actually It's appears more like the bug reported in
BDS-14895and there's no mention of libcurl in the error log but that has been closed as a duplicate of this so that led me here.It anecdotally seems to be related to portal use but it's not every time so it's hard to pin down.
[2022-12-18 02:29:08]: terminate called after throwing an instance of 'std::length_error'
[2022-12-18 02:29:08]: what(): basic_string::_M_create
[2022-12-18 02:29:08] [INFO]: Package: com.mojang.minecraft.dedicatedserver
[2022-12-18 02:29:08]: Version: 1.19.50.02
[2022-12-18 02:29:08]: OS: Linux
[2022-12-18 02:29:08]: Server start: Etc
[2022-12-18 02:29:08]: Dmp timestamp: Etc
[2022-12-18 02:29:08]: Upload Date: Etc
[2022-12-18 02:29:08]: Session ID: 0a5ef2a2-2ca8-4629-8ff1-bcec096e4491
[2022-12-18 02:29:08]: Commit hash: 5d857f742e68c08c522fe18490be059b15c50f68
[2022-12-18 02:29:08]: Build id: 12558004
[2022-12-18 02:29:08]: CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293
[2022-12-18 02:29:08]: Crash
[2022-12-18 02:29:08] [INFO]: at gsignal (UnknownFile:?)
[2022-12-18 02:29:08]: at abort (UnknownFile:?)
Just saw this recently in version 1.20 of BDS. The server is running in a Debian 10 LXC container. I don't recall what was happening at the time.
[2023-09-12 16:28:44] terminate called after throwing an instance of 'std::length_error' what(): vector::_M_default_append [2023-09-12 16:28:44] [2023-09-12 16:28:44:977 INFO] Package: com.mojang.minecraft.dedicatedserver [2023-09-12 16:28:44] Version: 1.20.14.01 [2023-09-12 16:28:44] OS: Linux [2023-09-12 16:28:44] Server start: 2023-09-12 04:31:41 EDT [2023-09-12 16:28:44] Dmp timestamp: 2023-09-12 16:28:44 EDT [2023-09-12 16:28:44] Upload Date: 2023-09-12 16:28:44 EDT [2023-09-12 16:28:44] Session ID: 58368b28-58ea-4b05-8161-94729c7e534b [2023-09-12 16:28:44] Commit hash: aa6bec6a6021d5effb36cb2e97bd7e4ec54baf67 [2023-09-12 16:28:44] Build id: 17242466 [2023-09-12 16:28:44] CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293 [2023-09-12 16:28:44] [2023-09-12 16:28:44] Crash [2023-09-12 16:28:44] [2023-09-12 16:28:44:977 INFO] at gsignal (UnknownFile:?) [2023-09-12 16:28:44] at abort (UnknownFile:?) [2023-09-12 16:28:44] at clone (UnknownFile:?) [2023-09-12 16:28:44] e929f04d-b59e-4d92-88b2-e984647a5ee6