dynmap icon indicating copy to clipboard operation
dynmap copied to clipboard

Web files are not matched with plugin version: All files need to be same version (undefined) - try refreshing browser cache (shift-reload)

Open realGretix opened this issue 3 years ago • 8 comments

template is bold sample data is italicized

Issue Description: I tried hosting dynmap on my vps with apache2 and sqlite but after setting everything up with this guide https://github.com/webbukkit/dynmap/issues/2609 and copying web folder files to website directory dynmap gives me error like in the title

  • Dynmap Version: 3.4-beta-3-774
  • Server Version: paper 379 1.18.2
  • Pastebin of Configuration.txt: https://pastebin.com/s2a8Vi4T
  • Server Host (if applicable): Contabo
  • Pastebin of crashlogs or other relevant logs: https://pastebin.com/LKKJy3Jk
  • Other Relevant Data/Screenshots: image
  • Steps to Replicate: Setting everything like in my configuration file and copying web folder files to apache2 web directory

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

realGretix avatar Jul 18 '22 18:07 realGretix

that guide is not entirely proper, we adapted it to ours and added it to the wiki: https://github.com/webbukkit/dynmap/wiki/%5BTutorial%5D-Setting-up-a-standalone-web-server-with-MySQL-SQLite/ changes are to the web entry of configuration.txt and the need of installing php-fpm and php-mysqli, always check the error.log of apache2

JurgenKuyper avatar Jul 18 '22 18:07 JurgenKuyper

well i have this in error.log https://pastebin.com/AKJdYmbp

realGretix avatar Jul 18 '22 18:07 realGretix

PHP Warning: file(dynmap_config.php): failed to open stream: No such file or directory in /var/www/mapa.geoplay.pl/standalone/configuration.php . it cannot find that file, check that you did the proper settings according to the guide on our wiki, and the php modules are installed, then check that all the files have the right user:group so apache2 can read them.

JurgenKuyper avatar Jul 18 '22 18:07 JurgenKuyper

i set the permissions and downloaded php modules but still it's not working. And the file surely is in correct detination image

realGretix avatar Jul 18 '22 18:07 realGretix

so what do i do?

realGretix avatar Jul 18 '22 18:07 realGretix

check that you did the proper settings according to the guide on our wiki, you didn't answer on that so I guess that the web part especially of the configuration.txt is still improper, then restart the mc server, shut it down, re-upload the web files and try

JurgenKuyper avatar Jul 18 '22 18:07 JurgenKuyper

everything is like in the tutorial

realGretix avatar Jul 18 '22 19:07 realGretix

then I don't know what is wrong, because I did the tutorial many times, and it always worked out for me, could be something is wrong wit a proxy or sth.

JurgenKuyper avatar Jul 31 '22 10:07 JurgenKuyper

closing this issue because we cannot reproduce the sircumstances in which this error arises.

JurgenKuyper avatar Aug 19 '22 15:08 JurgenKuyper

I am experiencing the same issue with my Nginx setup. For some reason file dynmap_config.php did not generate.

OstojaOfficial avatar Oct 21 '22 15:10 OstojaOfficial

PHP Warning: file(dynmap_config.php): failed to open stream: No such file or directory in /var/www/mapa.geoplay.pl/standalone/configuration.php . it cannot find that file, check that you did the proper settings according to the guide on our wiki, and the php modules are installed, then check that all the files have the right user:group so apache2 can read them.

Its actually looking for dynmap_config.php not configuration.php. The error message is saying that it tried to open file dynmap_config.php while running configuration.php.

OstojaOfficial avatar Oct 21 '22 15:10 OstojaOfficial

I fixed my issue. For anyone experiencing this issue in the future. Read the guide, you are unable to use SQLite if your web server is not on the same machine as your minecraft server. https://github.com/webbukkit/dynmap/wiki/%5BTutorial%5D-Setting-up-a-standalone-web-server-with-MySQL-SQLite/#setting-up-the-web-server-thats-on-the-same-server-as-the-minecraft-server

OstojaOfficial avatar Oct 21 '22 15:10 OstojaOfficial

It should still work, if the nginx module for SQLite is installed most likely

JurgenKuyper avatar Oct 21 '22 15:10 JurgenKuyper

It should still work, if the nginx module for SQLite is installed most likely

Are you sure it will? How does the webserver connect to the SQLite DB?

OstojaOfficial avatar Oct 21 '22 15:10 OstojaOfficial

I don't really know, but you might use a symlink over ssh to connect to the file? But idk how SQLite handles multiple connections to a file

JurgenKuyper avatar Oct 21 '22 16:10 JurgenKuyper

I don't really know, but you might use a symlink over ssh to connect to the file? But idk how SQLite handles multiple connections to a file

NFS might work. But best solution is MySQL in this case.

OstojaOfficial avatar Oct 21 '22 16:10 OstojaOfficial