Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check utf-8 locales before script installation #456

Open
pafade89 opened this issue Feb 15, 2024 · 9 comments
Open

Check utf-8 locales before script installation #456

pafade89 opened this issue Feb 15, 2024 · 9 comments
Labels
question Further information is requested

Comments

@pafade89
Copy link

Is your feature request related to a problem? Please describe.

It would be very useful to query the locales in the script and if incorrect, switch to UTF-8 to ensure that Nginx receives its configuration and the /var/www/pterodactyl folder is created.

Describe the solution you'd like

Same as above
I find the feature request meaningful, as there have been several issues related to this in the repository both currently and in the past.

Example:
#445
#436

@Linux123123
Copy link
Member

Nginx in this case is completly unrelated. I do not see how setting locales would fix the issue, with database password. The issue with it is commonly special characters, character which don't get escaped and such which cause issues while creating the user. The best solution would be to have a regex for mysql password.

@pafade89
Copy link
Author

I tried to install Pterodactyl with the script, which didn't work properly. It works only when I adjusted the locales to UTF-8 that your script ran smoothly.

@vilhelmprytz
Copy link
Member

The linked issues do not seem to be relevant to the issue you have opened. There is not enough information to debug this, can you clarify what went wrong and what you did to remedy it?

@vilhelmprytz vilhelmprytz added the question Further information is requested label Mar 13, 2024
@pafade89
Copy link
Author

It is difficult to provide you with log files in this case, as your script runs without errors. However, no Nginx configuration is carried out, and the entire Pterodactyl data is not transferred. If you change the locale from C POSIX (ASCII) to the UTF-8 locale, then the script runs without errors again. This time, the Nginx configuration is made, and the Pterodactyl data is transferred correctly. The server starts thereafter and runs as expected.

The entire process was tested multiple times on a freshly installed Debian system with no prior configuration. Only the net install of Debian was performed.

Thank you in advanced

P

@vilhelmprytz
Copy link
Member

Interesting. It would be good however to check the logs, specifically script logs. Could you include the logs here?

Script logs:

cat /var/log/pterodactyl-installer.log | nc termbin.com 9999

Panel logs:

tail -n 100 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc bin.ptdl.co 99

Daemon logs:

sudo wings diagnostics --debug

@pafade89
Copy link
Author

Interesting. It would be good however to check the logs, specifically script logs. Could you include the logs here?

Script logs:

cat /var/log/pterodactyl-installer.log | nc termbin.com 9999

Link: https://termbin.com/0d50

Panel logs:

tail -n 100 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc bin.ptdl.co 99

As I stated before the pterodactyl folder isn't created:

root@test:/# tail -n 100 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc bin.ptdl.co 99
tail: cannot open '/var/www/pterodactyl/storage/logs/laravel-2024-03-14.log' for reading: No such file or directory

Daemon logs:

sudo wings diagnostics --debug

As expected wings has no configuration file:

root@test:/# wings diagnostics --debug

Error: Configuration File Not Found

Wings was not able to locate your configuration file, and therefore is not
able to complete its boot process. Please ensure you have copied your instance
configuration file into the default location below.

Default Location: /etc/pterodactyl/config.yml

This is not a bug with this software. Please do not make a bug report
for this issue, it will be closed.

@pafade89 pafade89 changed the title Check uft-8 locales before script installation Check utf-8 locales before script installation Mar 21, 2024
@vilhelmprytz
Copy link
Member

Sorry for the delay in this. I think the termbin link expired. If this is still an issue, can you upload the logs again from the installation process?

@pafade89
Copy link
Author

pafade89 commented Jun 1, 2024

@vilhelmprytz No problem. Here is the new upload.

https://termbin.com/qa0g

pterodactyl is not being created.

image

@pafade89
Copy link
Author

pafade89 commented Jun 5, 2024

@vilhelmprytz
Have you had a chance to look at it? I've uploaded the log again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants