katubug

Untitled

Jun 2nd, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.52 KB | None | 0 0
  1. ZahirToday at 10:36 AM
  2. Np and don't forget to restart the panel
  3. sudo systemctl restart pteroq
  4. katubugToday at 10:37 AM
  5. It says it's unable to resolve host
  6. ZahirToday at 10:37 AM
  7. Run this
  8. Support BotBOTToday at 10:37 AM
  9. 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.
  10. tail -n 100 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc bin.ptdl.co 99
  11. ZahirToday at 10:37 AM
  12. ^ get the log output
  13. katubugToday at 10:38 AM
  14. "Cannot open [filepath] for reading: no such file or directory. Use netcat"
  15. Support BotBOTToday at 10:38 AM
  16. It looks like the file you are trying to upload is missing or you need to install netcat
  17. Ubuntu apt-get install -y netcat
  18. CentOS yum install -y nmap-ncat
  19. katubugToday at 10:39 AM
  20. ah, thank you botfriend
  21. Still cannot open, file does not exist
  22. ZahirToday at 10:40 AM
  23. Hmmm was the panel working before timezone change?
  24. katubugToday at 10:40 AM
  25. yes
  26. ZahirToday at 10:40 AM
  27. Lemme check something
  28. katubugToday at 10:40 AM
  29. maybe "America/Chicago" is an invalid timezone name?
  30. ZahirToday at 10:40 AM
  31. most likely, so I'll check via artisan, even though I shouldn't
  32. katubugToday at 10:42 AM
  33. I'll check for typos
  34. ZahirToday at 10:42 AM
  35. ensure the caps are right, it's sensitive
  36. katubugToday at 10:43 AM
  37. https://puu.sh/DAF6U/0d92f24f99.png
  38. ZahirToday at 10:43 AM
  39. Hmm can't see any typo
  40. katubugToday at 10:44 AM
  41. When I save, it prompts me with "File Name to Write: .env" - last time I just hit enter, should I change that at all?
  42. ZahirToday at 10:44 AM
  43. Just hit enter
  44. then Ctrl+X for exit
  45. Oh and try this, sudo systemctl restart pteroq && sudo systemctl status pteroq
  46. If there's no log output, just grab it directly from systemctl
  47. katubugToday at 10:47 AM
  48. https://puu.sh/DAFbx/c38c57b3b0.png
  49. ZahirToday at 10:47 AM
  50. should be fine to connect then
  51. katubugToday at 10:47 AM
  52. I can't tell if there's sensitive information there, lmk if I should delete it
  53. Is there a way to tell inside the panel itself what Timezone it's using?
  54. ZahirToday at 10:48 AM
  55. Okay so it's an issue with the address you're using
  56. ZahirToday at 10:48 AM
  57. it can't resolve it meaning wherever it's pointing to it isn't the server, double check your name hosts
  58. The timezone itself is a valid one
  59. ZahirToday at 10:49 AM
  60. Oh btw can you access the panel via browser?
  61. katubugToday at 10:49 AM
  62. Yes
  63. ZahirToday at 10:49 AM
  64. Do you have daemons setup?
  65. E.g nodes
  66. katubugToday at 10:50 AM
  67. Yes, it was set up for me by the host I'm renting the vds from
  68. ZahirToday at 10:51 AM
  69. Your host is EnthusiastiCraft right?
  70. or is the i after Enthusiast a typo?
  71. katubugToday at 10:51 AM
  72. that's my domain, and yes it's typed correctly
  73. portmanteau of enthusiastic and craft xD
  74. ZahirToday at 10:52 AM
  75. mind showing what you left as the APP_URL from the .env?
  76. Cut out any keys and etc
  77. katubugToday at 10:53 AM
  78. https://puu.sh/DAFiO/11f0a3ccc4.png
  79.  
  80. oh you know what, i bet it's because it's https://
  81. ZahirToday at 10:53 AM
  82. You have a SSL cert for that right?
  83. katubugToday at 10:53 AM
  84. i don't have an ssl certificate for that domain
  85. ZahirToday at 10:53 AM
  86. Gen one
  87. don't change it
  88. it'll mess with any preset daemons
  89. https://pterodactyl.io/tutorials/creating_ssl_certificates.html
  90. Basically, stop the webserver, install certbot, do the cmd to gen a cert
  91. and use the web server option
  92. it should then store the cert on the server
  93. if you're using nginx as a webserver use sudo systemctl stop nginx or change nginx to apache if you're using apache
  94. katubugToday at 10:55 AM
  95. Ah, that I'll have to ask about. I don't know whether it's setup with nginx or apache
  96. ZahirToday at 10:56 AM
  97. alright to check just do systemctl status nginx
  98. if it's not nginx, it'll give an error
  99. therefore it'll be apache
  100. katubugToday at 10:56 AM
  101. Ah okay, no error. Thank you very much for walking me through all this, btw
  102. I really appreciate it
  103. ZahirToday at 10:56 AM
  104. Np, happy to help; so you're using Nginx
  105. So yeah install certbot the guide, first 3 cmds
  106. then do sudo systemctl stop nginx && certbot certonly -d panel.enthusiasticraft.cf
  107. katubugToday at 10:58 AM
  108. It's asking me how I'd like to authenticate
  109. ZahirToday at 10:58 AM
  110. spin up a web server
  111. katubugToday at 10:59 AM
  112. It says I have an existing certificate that has exactly the same domains or certificate name I requested, and isn't close to expiry.
  113. So I guess I was wrong
  114. ZahirToday at 10:59 AM
  115. Hmm weird then, the panel works via web right?
  116. katubugToday at 11:00 AM
  117. It was, it's down now.
  118. ZahirToday at 11:00 AM
  119. unsure to why it'd try and resolve that host then
  120. Try changing it back to the timezone it was in just to check it is the timezone causing the fault
  121. Oh and if it's down now, don't forget to restart nginx
  122. sudo systemctl restart nginx
  123. katubugToday at 11:01 AM
  124. Weirdly, it gives me the unable to resolve host when I do the restart command, even though it does start it back up
  125. Also, changing it back to America/New_York doesn't help - still the same error
  126. ZahirToday at 11:02 AM
  127. so you can you access the panel rn?
  128. katubugToday at 11:02 AM
  129. yes
  130. ZahirToday at 11:02 AM
  131. Hmm maybe the error can safely be ignored, not sure
  132. But must be a reason why it's trying to resolve something other than the APP_URL
  133. AcidzDesignsToday at 11:02 AM
  134. do
  135. nginx -t
  136. if there is an error it will tell you where it is
  137. katubugToday at 11:03 AM
  138. It says syntax is okay, test is successful
  139. AcidzDesignsToday at 11:03 AM
  140. then there is no nginx error
Advertisement
Add Comment
Please, Sign In to add comment