snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Git Pull is resulting in error 500

Open LSNIGHTSHOT opened this issue 4 years ago • 5 comments

Debug mode

Describe the bug

Running git pull results in an error 500 on the website.

Reproduction steps

  1. Open terminal in project root folder
  2. Type git pull and press enter
  3. Broken Site.

Expected behavior

Working site

Screenshots

No response

Snipe-IT Version

5.4.4

Operating System

Windows Server 2022

Web Server

IIS

PHP Version

7.4.19

Operating System

Windows

Browser

Chrome / Edge

Version

101.0.1210.47

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

Generating optimized autoload files> Illuminate\Foundation\ComposerScripts::postAutoloadDump

@php artisan package:discover --ansi Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 Loading composer repositories with package information Installing dependencies from lock file Your requirements could not be resolved to an installable set of packages.

Problem 1 - Installation request for doctrine/dbal 3.3.2 -> satisfiable by doctrine/dbal[3.3.2]. - doctrine/dbal 3.3.2 requires composer-runtime-api ^2 -> no matching package found.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

In ProviderRepository.php line 208:

Class 'Barryvdh\DomPDF\ServiceProvider' not found

LSNIGHTSHOT avatar May 16 '22 06:05 LSNIGHTSHOT

Same here.

jeffmcm64 avatar May 16 '22 16:05 jeffmcm64

Please try upgrading your version of composer.

snipe avatar May 16 '22 18:05 snipe

https://snipe-it.readme.io/docs/common-issues#use-composer-2

Snipe-IT Documentation
These commands should be run from your Snipe-IT project root, just like every other cli command we mention. They should not need to be run as root/sudo/admin. Or to run them as a one-liner all at once: These commands clear out cached service files that help speed up modern PHP applications but can a...

snipe avatar May 16 '22 18:05 snipe

This fixed it for me!

LSNIGHTSHOT avatar May 16 '22 18:05 LSNIGHTSHOT

Glad to hear you're all sorted! In the future, if you've resolved your issue, please try to remember to close your ticket - it helps us out a lot. (We have to manage a lot of tickets.)

tenant-tyvm

snipe avatar May 16 '22 21:05 snipe