#(amkiwi) ddiscordbot lags my server to the point the entire computer freezes
1 messages · Page 1 of 1 (latest)
(amkiwi) ddiscordbot lags my server to the point the entire computer freezes
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
Content of Server Log Paste #121542: server crashing randomly... pasted 2024/04/02 00:51:13 UTC-07:00, Paste length: 25511 characters across 259 lines, Content: [16:53:59] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com,...
Pufferfish version git-Pufferfish-47 (MC: 1.20.4)
Denizen v1.3.0-SNAPSHOT (build 1803-REL) -- (Version tracker error)
dDiscordBot v0.7 (build 300) -- (Current build :white_check_mark:)
@chilly otter
4 (:white_check_mark: Online)
17.0.9 :white_check_mark:
ProtocolLib v5.2.0-SNAPSHOT-679
ViaVersion v4.9.3 - Mixed client vs server versions can sometimes cause packet-related issues.
LaggRemover v2.0.6 - 'Lag fix' plugins usually don't actually fix lag, they just delete spawned entities. If you have issues with entities disappearing, this plugin is likely the cause.
What I initially noticed is that your server starts up fine, however, your server runs into issues after joining the server.
I also noticed the entity count goes up, quick.
[17:06:20] [Server thread/INFO]: Petronator[/ ip ] logged in with entity id 1
[17:06:44] [Server thread/INFO]: kiwisus[/ ip ] logged in with entity id 76 at ([world]-179.95934948503063, 75.83999997377396, -365.1733116884545)
[17:10:42] [Server thread/INFO]: AmKiwi[/ ip ] logged in with entity id 666 at ([world]-218.96047394942113, 120.03264306031436, -230.30602500258559)```
I'd like to request 2 things.
- Does the issue persist when you run your server without denizen scripts? i.e. Rename the /plugins/Denizen/Scripts folder, or move it elsewhere?
- Can you run a spark profile from console, without anyone joining the server -- both with and without the scripts folder.
gimme a sec
I also noticed that the dDiscordbot plugin loads before Denizen.
I would assume that Denizen is a dependancy for dDiscordbot, but, I am not sure about that.
Perhaps a more seasoned helped can help shed light on whether that is an issue.
Just restarted a server to check on my side. dDiscordbot loads before Denizen there as well, so I will assume that this is intended behavior.
found something, idk if it matters but when i load the server up with ddiscordbot theres this thing called JDA that appears in the console as well
also getting this:
If I compare my test server's Denizen log times
Mine:
[10:17:11 INFO]: +> [Denizen] Final full init took 3235ms.```
Yours:
```[16:54:43] [Server thread/INFO]: +> [DenizenCore] Scripts loaded! File load took 43ms, processing 27ms.
[16:54:43] [Server thread/INFO]: +> [Denizen] Final full init took 10064ms.```
Your Denizen took 7 additional seconds to load, on start up over mine. Could be hardware differences.
!logs
Please post your full latest log file.
Background Info: One of the most helpful tools to identifying the source of a problem is your server logs file! Logs contain all sorts of important information like server and plugin versions, any error messages, and a lot more important information (More Info).
How To: Your log can be found in the logs folder within your server folder. The most recent log is a text file labeled latest.log. To get help using these logs, please open that file in a text editor and copy all of the text, then open https://paste.denizenscript.com/New/Log and paste the text into the box on the page. Then click "Submit" and copy the URL and paste that back into this channel.
Please do not upload the file to Discord or to other pastebin services, use the log pastebin linked above.
Screenshots are seldom helpful.
ye im running on a raspberry pi rn
ok, this new log will be for the server with ddiscordbot, no players and no script file
https://paste.denizenscript.com/View/121547
Content of Server Log Paste #121547: Unnamed Server Log Paste... pasted 2024/04/02 01:24:04 UTC-07:00, Paste length: 15258 characters across 161 lines, Content: [19:15:35] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com,...
Can you run a spark profile with the scripts folder as well?
yup
it did automatically make a scripts folder upon running the server but it was empty
im pretty sure its the players and the ddiscordbot that kills the server
Could be, yes. Right now, I'd like to exclude scripts running in the background as a cause.
Because if it is an active player-related script, then the issue would most likely be a script, and not the dDiscordbot plugin.
the server with scripts and players but without ddiscordbot worked fine
dDiscordbot in of itself does little to nothing, unless instructed to do something.
o for the previous logs i forgot to make it so that ddiscordbot actually logged into a bot
oops
i should probably do that right
ill make it so it does that for the next spark profiles
https://paste.denizenscript.com/View/121548 heres a log with the bot running
Content of Server Log Paste #121548: Unnamed Server Log Paste... pasted 2024/04/02 01:45:57 UTC-07:00, Paste length: 24646 characters across 248 lines, Content: [19:35:41] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com,...
nothing seemed to happen
most of the errors in the first log ( the original one ) had something to do with the paper watchdog and entities, but now that entities arent loaded there doesnt seem to be any errors about that
Can you think of any intensive scripts? For example something with all players, or big foreach/while loops?
type: world
events:
on player chats:
- narrate "<&3><player.name>:<&f> <context.message> " targets:<server.online_players>
- determine cancelled
on player join:
- if !<player.has_flag[joins]>:
- flag <player> joins:1
- announce "<&8>[<&6><&l>+<&r><&8>] <&r><&gradient[from=yellow;to=aqua]><player.name>"
- give cooked_beef player:<player> quantity:32
- give acacia_boat player:<player>
- determine none
- else:
- flag <player> joins:++
- announce "<&8>[<&a>+<&8>] <&3><player.name>"
- determine none
on player quit:
- announce "<&8>[<dark_red>-<&8>] <red><player.name>"
- determine none
after server start:
- ~discordconnect id:mybot token:<secret[my_token]>
``` This is the only script
and im pretty sure its not intensive
This is your only script?
I noticed that the debug isn't set to false, so it should output to console, which I did not see happening in the initial log. Did you remove the debug key from the script?
in the initial log it was left out
sorry
Can you upload a full log, with debug, of your server crashing?