Rubydesic / minecraft-dynamic-discs

GNU General Public License v3.0
6 stars 9 forks source link

Dynamic disc not working on server. #7

Closed Seikm closed 2 years ago

Seikm commented 3 years ago

The mod works perfectly on singleplayer, but when I put it on the server it's not working. The only error that appears on the console is just one line: [Server thread/ERROR]: java.lang.IllegalStateException: Not a JSON Object: null

HyperlyBola commented 3 years ago

Having the same issue but there's no real log I can really show? I'll try grabbing client logs, but idk if that'll help because it worked fine on singleplayer.

02.06 23:57:45 [Server] Server thread/ERROR java.io.IOException: Cannot run program "/dynamic-discs/youtube-dl": error=13, Permission denied

Rubydesic commented 3 years ago

@HyperlyBola Please make a separate issue with your full server log. If it contains confidential information (probably not) either redact it or privately message it to me on GitHub or discord. Thanks

Seikm commented 3 years ago

@Rubydesic is there anything i can do to fix my problem? I really thought this mod was awesome and wanted to be able to use it on my server...

Rubydesic commented 3 years ago

@Seikm Your error should no longer occur in the latest version, can you update to 2.0.7 and see if it works?

Seikm commented 3 years ago

@Rubydesic this time the error message changed: [Server thread/ERROR]: java.io.IOException: Cannot run program "/home/container/dynamic-discs/youtube-dl": error=13, Permission denied I'm using a host, maybe the problem is because of that. Is there something I should do?

HyperlyBola commented 3 years ago

@Rubydesic this time the error message changed: [Server thread/ERROR]: java.io.IOException: Cannot run program "/home/container/dynamic-discs/youtube-dl": error=13, Permission denied I'm using a host, maybe the problem is because of that. Is there something I should do?

I actually managed to somehow figure it out in the server, I think I figured it out by accident. Delete youtube-dl, and just to be safe, the cache as well and anything but the config. I too am using a host (ExtraVM they're gr8) but I didn't have to contact them at all.

Rubydesic commented 3 years ago

@Seikm Please send your whole log

Seikm commented 3 years ago

@Rubydesic I tested doing what @HyperlyBola said, and the error message was weird. Couldn't find a result for the song name, but I tested it with several different songs, and restarted the server several times. Here are the logs from when I restarted the server until I tested it: Could not ffind a result for the search.txt I installed everything again and the error is "Permission denied" again. Here are the logs from when the server started: Permission denied.txt

HyperlyBola commented 3 years ago

Did you delete youtube-dl from the server or client? Also maybe try like a random well known song name just to test

Rubydesic commented 3 years ago

Strange. potentially youtube is blocked on the server? I will look into it more

Seikm commented 3 years ago

@Rubydesic Sorry I didn't respond for a while, I was asking the host if they were blocking something. The answer was that they didn't block anything. @HyperlyBola I tried to do it on both of them, just on one of them, anyway, and it didn't work.

Seikm commented 3 years ago

I spent some time trying to solve this annoying bug, but until today I haven't been able to. I've tried everything anyone can imagine, the only thing I think it might be is something on my host, but they said there's nothing blocking. I've given up for now, if you need me to test something, please tell me.

Rubydesic commented 2 years ago

I think this problem is fixed in the latest version, reopen if it's not.