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

Manual Install with MariaDB 10.11 - ERROR at line 1: Unknown command '\-'. #5240

Open
willnode opened this issue Nov 3, 2024 · 1 comment
Labels
not confirmed Report seems plausible but requires additional testing or 3rd part confirmation.

Comments

@willnode
Copy link

willnode commented Nov 3, 2024

Current Behavior

Migration from fresh fails since I'm in shared hosting and It's using MariaDB 10.11.

Apparently I have to just comment out these two lines and it's working

./database/schema/mysql-schema.sql:1:/*M!999999\- enable the sandbox mode */ 
./database/schema/mysql-schema.sql:686:/*M!999999\- enable the sandbox mode */

Expected Behavior

php artisan migrate:fresh success.

Steps to Reproduce

  • Have a system with MariaDB 10.11
  • git clone https://github.com/pterodactyl/panel/ .
  • Set envar
  • php artisan migrate:fresh

Panel Version

1.11.9

Wings Version

Games and/or Eggs Affected

Docker Image

Error Logs

[whimsical-knee-nag@sgp public_html]$ php artisan migrate:fresh --force

   INFO  Preparing database.  

  Creating migration table ............................................................................................................ 14.09ms DONE

   INFO  Loading stored database schemas.  

  database/schema/mysql-schema.sql .................................................................................................... 54.64ms FAIL

   Symfony\Component\Process\Exception\ProcessFailedException 

  The command "mysql  --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed.

Exit Code: 1(General error)

Working directory: /home/whimsical-knee-nag/public_html

Output:
================


Error Output:
================
ERROR at line 1: Unknown command '\-'.

  at vendor/symfony/process/Process.php:269
    265▕      */
    266▕     public function mustRun(?callable $callback = null, array $env = []): static
    267▕     {
    268▕         if (0 !== $this->run($callback, $env)) {
  ➜ 269▕             throw new ProcessFailedException($this);
    270▕         }
    271▕ 
    272▕         return $this;
    273▕     }

      +33 vendor frames 

  34  artisan:35
      Illuminate\Foundation\Console\Kernel::handle()

[whimsical-knee-nag@sgp public_html]$ mysql --version
mysql  Ver 15.1 Distrib 10.11.6-MariaDB, for Linux (aarch64) using  EditLine wrapper
[whimsical-knee-nag@sgp public_html]$ 


### Is there an existing issue for this?

- [X] I have searched the existing issues before opening this issue.
- [X] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
- [X] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
@willnode willnode added the not confirmed Report seems plausible but requires additional testing or 3rd part confirmation. label Nov 3, 2024
@WeeskyBDW
Copy link

I can't reproduce that error with the devlopment setup, php 8.3 Mysql 10.11 and panel in last version, no update what made on the schema file since it's creation. Can you still reproduce that bug and can you in a clean setup ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not confirmed Report seems plausible but requires additional testing or 3rd part confirmation.
Projects
None yet
Development

No branches or pull requests

2 participants