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

Error 500 #58

Open
moracabanas opened this issue May 29, 2020 · 2 comments
Open

Error 500 #58

moracabanas opened this issue May 29, 2020 · 2 comments

Comments

@moracabanas
Copy link

moracabanas commented May 29, 2020

I followed the steps and map /data to local directory so everything seems to be ok.

I run it with the following:

docker run --name=pp -p 80:80 -p 443:443 -d -v /home/--my user---/data:/data --env-file=./.env ccarney16/pterodactyl-panel

After I set the IP on the browser and try to load the web pannel, it says error 500.

the live docker log output this:

src:"----my IP----" time:"29/May/2020:05:03:43 +0000" req:"GET / HTTP/1.1" status:"500" agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" for:"-" src:"----my IP -----" time:"29/May/2020:05:03:43 +0000" req:"GET /svg/500.svg HTTP/1.1" status:"500" agent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" for:"-"

And laravel logs output this repetedly:
production.ERROR: QueryException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name does not resolve (SQL: select * from information_schem a.tables where table_schema = pterodactyl and table_name = migrations) in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 Stack trace: #0 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(624): Illuminate\Database\Connection->runQueryCallback #1 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(333): Illuminate\Database\Connection->run #2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php(18): Illuminate\Database\Connection->select #3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php(169): Illuminate\Database\Schema\MySqlBuilder->hasTable #4 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(556): Illuminate\Database\Migrations\DatabaseMigrationRepository->repositoryExists #5 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(91): Illuminate\Database\Migrations\Migrator->repositoryExists #6 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(63): Illuminate\Database\Console\Migrations\MigrateCommand->prepareDatabase #7 (0): Illuminate\Database\Console\Migrations\MigrateCommand->handle #8 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): call_user_func_array #9 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure} #10 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod #11 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(572): Illuminate\Container\BoundMethod::call #12 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\Container\Container->call #13 /var/www/html/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute #14 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\Component\Console\Command\Command->run #15 /var/www/html/vendor/symfony/console/Application.php(886): Illuminate\Console\Command->run #16 /var/www/html/vendor/symfony/console/Application.php(262): Symfony\Component\Console\Application->doRunCommand #17 /var/www/html/vendor/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun #18 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Application.php(89): Symfony\Component\Console\Application->run #19 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(122): Illuminate\Console\Application->run #20 /var/www/html/artisan(37): Illuminate\Foundation\Console\Kernel->handle

I am lost at this time, any help is welcomed thanks.

@maxfield-allison
Copy link

I'm also encountering this issue both with and without Traefik

@argetlam-coder
Copy link

You cannot use this image individually. Pterodactyl requires a MySQL database, which is not included in this image.

The best way is to follow the steps in the wiki (https://github.com/ccarney16/pterodactyl-containers/wiki/Quick-Start). This will create a docker-compose file which contains all needed services.

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

No branches or pull requests

3 participants