snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.86k stars 3.14k forks source link

Backup error using by browser. #15475

Open trongbn92 opened 1 week ago

trongbn92 commented 1 week ago

Debug mode

Describe the bug

Because my programming skills are not good. So I want to ask how to fix the error problem when backing up the database. I have already authorized IUSR and IIS_. Please help how to fix the error when I back up: "Can't create TCP/IP socket (10106) when trying to connect"

Many thanks!!!

Reproduction steps

  1. Turn on XAMPP
  2. Start snipe server by .BAT "@echo off set snipe_it_dir=c:\xampp\htdocs\snipe-it cd %snipe_it_dir% php artisan key:generate php artisan serve
  3. Open snipe by browser
  4. setting -> make backup
  5. See error ...

Expected behavior

I hope no more errors when backup

Screenshots

image

image

Snipe-IT Version

v7.0.11 build 14904 (g6c0cf9447)

Operating System

Windows

Web Server

XAMPP

PHP Version

8.2.12

Operating System

Windows

Browser

Google Chrome (CocCoc)

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

Error: Backup failed because: The dump process failed with a none successful exitcode. Exitcode ======== 2: Misuse of shell builtins Output ====== <no output> Error Output ============ mysqldump: Got error: 2004: "Can't create TCP/IP socket (10106)" when trying to connect . #0 C:\xampp\htdocs\snipe-it\vendor\spatie\db-dumper\src\DbDumper.php(194): Spatie\DbDumper\Exceptions\DumpFailed::processDidNotEndSuccessfully(Object(Symfony\Component\Process\Process)) #1 C:\xampp\htdocs\snipe-it\vendor\spatie\db-dumper\src\Databases\MySql.php(161): Spatie\DbDumper\DbDumper->checkIfDumpWasSuccessFul(Object(Symfony\Component\Process\Process), 'C:\\xampp\\htdocs

Additional context

No response

welcome[bot] commented 1 week ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.