Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ZahirToday at 10:36 AM
- Np and don't forget to restart the panel
- sudo systemctl restart pteroq
- katubugToday at 10:37 AM
- It says it's unable to resolve host
- ZahirToday at 10:37 AM
- Run this
- Support BotBOTToday at 10:37 AM
- You'll need to grab the error logs from the Panel. The following command uploads the last 100 lines of this day's log to our pastebin and provides a link you can share.
- tail -n 100 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc bin.ptdl.co 99
- ZahirToday at 10:37 AM
- ^ get the log output
- katubugToday at 10:38 AM
- "Cannot open [filepath] for reading: no such file or directory. Use netcat"
- Support BotBOTToday at 10:38 AM
- It looks like the file you are trying to upload is missing or you need to install netcat
- Ubuntu apt-get install -y netcat
- CentOS yum install -y nmap-ncat
- katubugToday at 10:39 AM
- ah, thank you botfriend
- Still cannot open, file does not exist
- ZahirToday at 10:40 AM
- Hmmm was the panel working before timezone change?
- katubugToday at 10:40 AM
- yes
- ZahirToday at 10:40 AM
- Lemme check something
- katubugToday at 10:40 AM
- maybe "America/Chicago" is an invalid timezone name?
- ZahirToday at 10:40 AM
- most likely, so I'll check via artisan, even though I shouldn't
- katubugToday at 10:42 AM
- I'll check for typos
- ZahirToday at 10:42 AM
- ensure the caps are right, it's sensitive
- katubugToday at 10:43 AM
- https://puu.sh/DAF6U/0d92f24f99.png
- ZahirToday at 10:43 AM
- Hmm can't see any typo
- katubugToday at 10:44 AM
- When I save, it prompts me with "File Name to Write: .env" - last time I just hit enter, should I change that at all?
- ZahirToday at 10:44 AM
- Just hit enter
- then Ctrl+X for exit
- Oh and try this, sudo systemctl restart pteroq && sudo systemctl status pteroq
- If there's no log output, just grab it directly from systemctl
- katubugToday at 10:47 AM
- https://puu.sh/DAFbx/c38c57b3b0.png
- ZahirToday at 10:47 AM
- should be fine to connect then
- katubugToday at 10:47 AM
- I can't tell if there's sensitive information there, lmk if I should delete it
- Is there a way to tell inside the panel itself what Timezone it's using?
- ZahirToday at 10:48 AM
- Okay so it's an issue with the address you're using
- ZahirToday at 10:48 AM
- it can't resolve it meaning wherever it's pointing to it isn't the server, double check your name hosts
- The timezone itself is a valid one
- ZahirToday at 10:49 AM
- Oh btw can you access the panel via browser?
- katubugToday at 10:49 AM
- Yes
- ZahirToday at 10:49 AM
- Do you have daemons setup?
- E.g nodes
- katubugToday at 10:50 AM
- Yes, it was set up for me by the host I'm renting the vds from
- ZahirToday at 10:51 AM
- Your host is EnthusiastiCraft right?
- or is the i after Enthusiast a typo?
- katubugToday at 10:51 AM
- that's my domain, and yes it's typed correctly
- portmanteau of enthusiastic and craft xD
- ZahirToday at 10:52 AM
- mind showing what you left as the APP_URL from the .env?
- Cut out any keys and etc
- katubugToday at 10:53 AM
- https://puu.sh/DAFiO/11f0a3ccc4.png
- oh you know what, i bet it's because it's https://
- ZahirToday at 10:53 AM
- You have a SSL cert for that right?
- katubugToday at 10:53 AM
- i don't have an ssl certificate for that domain
- ZahirToday at 10:53 AM
- Gen one
- don't change it
- it'll mess with any preset daemons
- https://pterodactyl.io/tutorials/creating_ssl_certificates.html
- Basically, stop the webserver, install certbot, do the cmd to gen a cert
- and use the web server option
- it should then store the cert on the server
- if you're using nginx as a webserver use sudo systemctl stop nginx or change nginx to apache if you're using apache
- katubugToday at 10:55 AM
- Ah, that I'll have to ask about. I don't know whether it's setup with nginx or apache
- ZahirToday at 10:56 AM
- alright to check just do systemctl status nginx
- if it's not nginx, it'll give an error
- therefore it'll be apache
- katubugToday at 10:56 AM
- Ah okay, no error. Thank you very much for walking me through all this, btw
- I really appreciate it
- ZahirToday at 10:56 AM
- Np, happy to help; so you're using Nginx
- So yeah install certbot the guide, first 3 cmds
- then do sudo systemctl stop nginx && certbot certonly -d panel.enthusiasticraft.cf
- katubugToday at 10:58 AM
- It's asking me how I'd like to authenticate
- ZahirToday at 10:58 AM
- spin up a web server
- katubugToday at 10:59 AM
- It says I have an existing certificate that has exactly the same domains or certificate name I requested, and isn't close to expiry.
- So I guess I was wrong
- ZahirToday at 10:59 AM
- Hmm weird then, the panel works via web right?
- katubugToday at 11:00 AM
- It was, it's down now.
- ZahirToday at 11:00 AM
- unsure to why it'd try and resolve that host then
- Try changing it back to the timezone it was in just to check it is the timezone causing the fault
- Oh and if it's down now, don't forget to restart nginx
- sudo systemctl restart nginx
- katubugToday at 11:01 AM
- Weirdly, it gives me the unable to resolve host when I do the restart command, even though it does start it back up
- Also, changing it back to America/New_York doesn't help - still the same error
- ZahirToday at 11:02 AM
- so you can you access the panel rn?
- katubugToday at 11:02 AM
- yes
- ZahirToday at 11:02 AM
- Hmm maybe the error can safely be ignored, not sure
- But must be a reason why it's trying to resolve something other than the APP_URL
- AcidzDesignsToday at 11:02 AM
- do
- nginx -t
- if there is an error it will tell you where it is
- katubugToday at 11:03 AM
- It says syntax is okay, test is successful
- AcidzDesignsToday at 11:03 AM
- then there is no nginx error
Advertisement
Add Comment
Please, Sign In to add comment