Upgrading panel causes Laravel migration issues #364

Closed
opened 2026-02-04 17:45:08 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @risingfish on GitHub (Jun 24, 2025).

Current Behavior

I'm upgrading my panel (sorry, i couldn't figure out the original version) to latest. Running migrations causes an error.
Image

Here's the migrations that were run as part of this upgrade:
Image

Expected Behavior

These migrations should just run.

  • Ubuntu 24.04
  • PHP 8.3.22
  • MariaDB

Steps to Reproduce

Take an existing server that was used for a few servers, and try running migrations.

Panel Version

v.1.0.0-beta21

Wings Version

v1.0.0-beta11

Games and/or Eggs Affected

N/A

Docker Image

No response

Error Logs

Here's the full log:
Image

/pelican$ sudo php artisan migrate --seed --force

   INFO  Running migrations.  

  2025_01_09_143607_database_host_node_foreign_delete_cascade .............................................................................. 1s DONE
  2025_02_11_181129_remove_audit_logs_table .......................................................................................... 105.85ms DONE
  2025_03_28_104348_drop_gravatar_column_in_users .................................................................................... 438.23ms DONE
  2025_04_01_033956_egg_variable_unique_foreign_key .................................................................................. 734.55ms DONE
  2025_04_01_214953_add_customization_column ......................................................................................... 207.37ms DONE
  2025_04_07_062945_remove_additional_roles_of_root_admins ........................................................................... 174.87ms DONE
  2025_04_08_113556_create_node_role_table ................................................................................................. 1s DONE
  2025_05_01_193002_move_to_mountables ..................................................................................................... 3s DONE


   INFO  Seeding database.  

  Database\Seeders\EggSeeder ............................................................................................................... RUNNING  
****************************************
*     Updating Eggs for: Minecraft     *
****************************************

Updated Bungeecord
Updated Forge Minecraft
Updated Paper
Created Sponge
Updated Vanilla Minecraft

********************************************
*     Updating Eggs for: Source Engine     *
********************************************

Updated Garrys Mod
Updated Insurgency
Updated Counter-Strike: Global Offensive
Updated Custom Source Engine Game
Updated Team Fortress 2

********************************************
*     Updating Eggs for: Voice Servers     *
********************************************

Updated Mumble Server
Updated Teamspeak3 Server

***********************************
*     Updating Eggs for: Rust     *
***********************************


In Connection.php line 817:
                                                                                                                                                                    
  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '13-Server Name' for key 'egg_variables_egg_id_name_unique' (Connection: mariadb, SQL: ins  
  ert into `egg_variables` (`user_editable`, `user_viewable`, `rules`, `env_variable`, `name`, `description`, `default_value`, `sort`, `egg_id`, `updated_at`, `cr  
  eated_at`) values (1, 1, ["required","string","max:60"], SERVER_HOSTNAME, Server Name, The name of your server in the public server list., A Rust Server, 1, 13,  
   2025-06-24 20:17:01, 2025-06-24 20:17:01))                                                                                                                       
                                                                                                                                                                    

In MySqlConnection.php line 53:
                                                                                                                                     
  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '13-Server Name' for key 'egg_variables_egg_id_name_unique' 

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • 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.
  • 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.
Originally created by @risingfish on GitHub (Jun 24, 2025). ### Current Behavior I'm upgrading my panel (sorry, i couldn't figure out the original version) to latest. Running migrations causes an error. ![Image](https://github.com/user-attachments/assets/949be9e6-1d77-4a66-9cd5-8eec75ed7b11) Here's the migrations that were run as part of this upgrade: ![Image](https://github.com/user-attachments/assets/24f6c93a-0c04-4420-ad11-b96988a7fac1) ### Expected Behavior These migrations should just run. - Ubuntu 24.04 - PHP 8.3.22 - MariaDB ### Steps to Reproduce Take an existing server that was used for a few servers, and try running migrations. ### Panel Version v.1.0.0-beta21 ### Wings Version v1.0.0-beta11 ### Games and/or Eggs Affected N/A ### Docker Image _No response_ ### Error Logs Here's the full log: ![Image](https://github.com/user-attachments/assets/b2e4fe77-72eb-4f9c-9e25-5cc119d12199) ```bash /pelican$ sudo php artisan migrate --seed --force INFO Running migrations. 2025_01_09_143607_database_host_node_foreign_delete_cascade .............................................................................. 1s DONE 2025_02_11_181129_remove_audit_logs_table .......................................................................................... 105.85ms DONE 2025_03_28_104348_drop_gravatar_column_in_users .................................................................................... 438.23ms DONE 2025_04_01_033956_egg_variable_unique_foreign_key .................................................................................. 734.55ms DONE 2025_04_01_214953_add_customization_column ......................................................................................... 207.37ms DONE 2025_04_07_062945_remove_additional_roles_of_root_admins ........................................................................... 174.87ms DONE 2025_04_08_113556_create_node_role_table ................................................................................................. 1s DONE 2025_05_01_193002_move_to_mountables ..................................................................................................... 3s DONE INFO Seeding database. Database\Seeders\EggSeeder ............................................................................................................... RUNNING **************************************** * Updating Eggs for: Minecraft * **************************************** Updated Bungeecord Updated Forge Minecraft Updated Paper Created Sponge Updated Vanilla Minecraft ******************************************** * Updating Eggs for: Source Engine * ******************************************** Updated Garrys Mod Updated Insurgency Updated Counter-Strike: Global Offensive Updated Custom Source Engine Game Updated Team Fortress 2 ******************************************** * Updating Eggs for: Voice Servers * ******************************************** Updated Mumble Server Updated Teamspeak3 Server *********************************** * Updating Eggs for: Rust * *********************************** In Connection.php line 817: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '13-Server Name' for key 'egg_variables_egg_id_name_unique' (Connection: mariadb, SQL: ins ert into `egg_variables` (`user_editable`, `user_viewable`, `rules`, `env_variable`, `name`, `description`, `default_value`, `sort`, `egg_id`, `updated_at`, `cr eated_at`) values (1, 1, ["required","string","max:60"], SERVER_HOSTNAME, Server Name, The name of your server in the public server list., A Rust Server, 1, 13, 2025-06-24 20:17:01, 2025-06-24 20:17:01)) In MySqlConnection.php line 53: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '13-Server Name' for key 'egg_variables_egg_id_name_unique' ``` ### 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.
Author
Owner

@notAreYouScared commented on GitHub (Jun 24, 2025):

This has already been fixed for the next beta and it can be ignored

@notAreYouScared commented on GitHub (Jun 24, 2025): This has already been fixed for the next beta and it can be ignored
Author
Owner

@risingfish commented on GitHub (Jun 24, 2025):

Later migrations also break:

Image

Image

@risingfish commented on GitHub (Jun 24, 2025): Later migrations also break: ![Image](https://github.com/user-attachments/assets/87016587-09e6-4da1-8f78-1fd61d4648d2) ![Image](https://github.com/user-attachments/assets/4bf956ce-947d-4f93-83b4-de695faec5f1)
Author
Owner

@notAreYouScared commented on GitHub (Jun 24, 2025):

Thats a whole different issue. Please use discord support, if its deemed an actual issue, you will be asked to create a github issue.

@notAreYouScared commented on GitHub (Jun 24, 2025): Thats a whole different issue. Please use discord support, if its deemed an actual issue, you will be asked to create a github issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#364