r/Snipe_IT • • Jun 30 '20

Welcome to r/Snipe_IT!

10 Upvotes

Welcome!

This Community is for anyone Interested in Using, Already Using or simply Curious about the Snipe-IT System Created by Snipe.

This is a Free and Open-Source IT Asset/License/Consumable/Accessory/Component Management System. The Source Code can be Found on the Snipe-IT GitHub Page. There is also a Paid Version where they Host it for those of Us that aren't Programmers (Although it doesn't take much to Deploy the System and the Extensive Manuals will walk you through just about anything).

There is already extensive Support through Gitter and GitHub but I wanted to create this Sub for a place of General Discussion, Troubleshooting and Feature Requests among many other things.

Content

Basically, if it relates to Snipe-IT or IT Asset Management in General it will be allowed. Vulgarity and Bullying will not be tolerated and Posts concerning something not related to Snipe-IT or IT Asset Management at all will be removed.

Feel free to Comment any General Questions, Comment or Concerns on this Post and I will get back to you as soon as we can!

Affiliation

I want to point out that this Sub is in NO WAY Related to or Affiliated with Snipe or the Snipe-IT Team or Platform. This was created by Fans for Fans. There is hope that one Day Snipe or Snipe-IT will recognize us and help point Users this way as a place to congregate.

The Future

As time goes on this Post will be updated and added to with any information deemed necessary. We are also looking for an Experienced Moderator who Uses Snipe-IT and preferably someone who has been active on the GitHub before.


r/Snipe_IT • • 5d ago

Snipe-IT v8.8.4 is out! New MCP server, draggable columns and more

Thumbnail
github.com
45 Upvotes

What's new in Snipe-IT v8.8.4:

  • Official Snipe-IT MCP server - integrate your favorite (or mandatory) AI tools using the official MCP. (More info on the tools and prompts currently available in the documentation).
  • Draggable columns in table views - set your views up in the way that makes the most sense to you.
  • Much nicer Custom Fields interface - custom fields finally got a refresh as we're preparing to add custom fields to non-assets (users, etc).
  • Lots of Sync Adapter improvements - your beta feedback has been incredible, thank you!
  • Nicer Advanced Search UI for lists with a lot of fields - instead of a mile-long scrolling modal, build your search using only the fields you actually care about.
  • Mark consumables as consumed 

See the full changelog (complete with the usual cringey millennial memes) at the release notes via the link above!


r/Snipe_IT • • 4d ago

Restore from backup options

3 Upvotes

Greetings all. I did a deployment of snipe a few years ago on a windows machine. Afterwards I tried deploying using the docker method but I wasn't able to restore the windows deployment backup to the docker instance.

Is this possible now or i be better off installing directly on a Linux host?


r/Snipe_IT • • 6d ago

Snipe-IT and the October 2026 PHP Security Vulnerability: What You Need to Know

Thumbnail grokstar.dev
19 Upvotes

tldr; Our code isn't vulnerable. If you're hosted with us, we're in the process of updating you anyway though.

If you're self hosted and for some reason cannot upgrade right away, change your php.ini file setting to (if it's not already):

session.upload_progress.enabled = 0


r/Snipe_IT • • 21d ago

Maintenance - Am I missing something here?

2 Upvotes

I went in to create some maintenance and found that I can only assign it to a specific asset. How is this intended to be used? Wouldn't most maintenance be created and done at the category or model level? For example if I have a monthly Windows update that we do during a standard window and I wanted to create that - it looks like I'd have to create it for every single asset individually?

If so then I must be mis-understanding how maintenance is supposed to be used? My goal here was to create a "monthly checklist" for things to be done to a category or model and, as we do it for each asset it gets checked off for that particular asset. It doesn't seem like this is how this was intended to be implemented however.

Am I missing something?


r/Snipe_IT • • 22d ago

New advanced search and saved searches

Thumbnail github.com
14 Upvotes

Details at the PR! The advanced search just got a HUGE upgrade, and you can now save searches that you use often.

We'll be reworking the UX on this a bit, since asset-based advanced searches could get reeeeeeally awkward if you have a hundred custom fields, but this is on master now, so pull from latest if you want to check it out.


r/Snipe_IT • • 22d ago

Software licences / assets - custom fields

6 Upvotes

I would love to use SnipeIT as a tracker for a myriad of security and compliance attributes (dates / does the application have 2FA, hosting location / SSO etc etc) across my software estate but sadly can't given it doesn't support custom fields in the same way it does with assets.

Domain names also have to be added as a 1 seat software asset and checked out to the (for instance) VPS asset hosting the respective website, so would love to see that improved as more of a native domain tracker.

I just wondered what others thoughts were about these bits. It's a fantastic product (I have two hosted accounts for different companies) but would really appreciate the above improvements!


r/Snipe_IT • • 28d ago

I built an open-source tool to auto-sync hardware warranties and factory specs into Snipe-IT (Dell, Lenovo, HP, Mac)

1 Upvotes

Hey everyone,

If you manage physical hardware in Snipe-IT, you've probably noticed that warranty expiration dates and factory hardware configurations (CPU, RAM, SSD) either remain blank or take hours of manual portal lookups to maintain.

To automate this, we built a standalone, zero-dependency Python synchronizer:

🔗 GitHub: https://github.com/checkwarranty/snipeit-warranty-sync
🐳 Docker: ghcr.io/checkwarranty/snipeit-warranty-sync:latest

How it works:

  1. Queries your Snipe-IT API for hardware assets missing warranty dates.
  2. Performs vendor lookups (Dell, Lenovo, HP, Apple) via CheckWarranty API.
  3. Automatically computes warranty_months and purchase_date so Snipe-IT's native calculated warranty_expires field updates cleanly.
  4. Enriches custom fields for factory CPU, RAM, and SSD storage if mapped in your .env.

Quick Test (Dry Run):

You don't have to install pip packages — it uses Python's standard library:

git clone https://github.com/checkwarranty/snipeit-warranty-sync.git
cd snipeit-warranty-sync
cp .env.example .env
# Fill in your SNIPEIT_URL, SNIPEIT_API_TOKEN, and CHECKWARRANTY_API_KEY
python sync.py --dry-run

Or run via Docker:

docker run --rm \
  -e SNIPEIT_URL="https://assets.yourcompany.com" \
  -e SNIPEIT_API_TOKEN="token" \
  -e CHECKWARRANTY_API_KEY="key" \
  ghcr.io/checkwarranty/snipeit-warranty-sync:latest --dry-run

Features:

  • --dry-run mode to preview before touching live data.
  • --limit and --brand filters (e.g., --brand dell).
  • Handles Snipe-IT HTTP 200 validation error responses gracefully.
  • Zero external pip dependencies required.

Hope this saves some of you the headache of manual serial lookups! Let me know if you have feedback or edge-case hardware models you'd like supported.


r/Snipe_IT • • Oct 26 '26

Error when signing EULA

1 Upvotes

We updated to the newest version of Snipe it and the system is showing this message: No signature was detected. If you’re using an older browser, please switch to a more up-to-date browser to accept the item.


r/Snipe_IT • • Oct 26 '26

JumpCloud Sync Adapter issues

1 Upvotes

Is anyone here using the JumpCloud sync adapter with Snipe-IT? I've set it up recently, and whenever I perform a test pull I get the following error:

record:
{
  "source_key": "managed-computers",
  "source_id": "REDACTED",
  "hostname": "REDACTED",
  "serial": "REDACTED",
  "model": null,
  "manufacturer": "Apple",
  "asset_tag": null,
  "last_seen": "2026-10-26T08:14:27+00:00"
}
upserted_asset_id: null

[02:14:28] ERROR: diagnostic run threw: could not save asset for managed-computers record REDACTED: The model id field is required.

When I run a curl command to pull asset information directly from JumpCloud, I get a field for "hardware_model" with the correct model information, so it appears that Snipe-IT isn't reading the model field from JumpCloud properly.

What's odd is that the minute I created the connection with JumpCloud, Snipe-IT pulls the correct field from JumpCloud, and I have it set to map the "Hardware model" field from JumpCloud to the "Asset model (auto-created)" field in Snipe-IT, so I'm really not sure where the issue.

Any help would be much appreciated!


r/Snipe_IT • • Oct 23 '26

Importing old Snipe IT database to new

3 Upvotes

I have an old self-hosted Snipe-IT setup running v4.8.0 on Ubuntu. I built a new Ubuntu Server 24.04 with Snipe-IT v8, but it won't import the v4.8.0 database directly. What are my options for migrating/importing my old database into the new version?


r/Snipe_IT • • Oct 21 '26

PHP critical vulnerabilities, both rated CVSS v4.0 9.2.

13 Upvotes

What are the plan sto fix it for hosted versions?

https://www.php.net/archive/2026.php#2026-10-20-1


r/Snipe_IT • • Oct 20 '26

New Release: v8.8.1 is available!

Thumbnail
github.com
26 Upvotes

r/Snipe_IT • • Oct 20 '26

[Solved] All tables (Assets, Licenses, Users, etc.) completely blank in v8.8.0 (Build 25378) when using German language (de-DE / de-if)

2 Upvotes

Issue: After updating to v8.8.0 - Build 25378 (master), all tables across the entire web UI (Assets, Licenses, Accessories, Consumables, Users, etc.) fail to load and stay completely blank for users with their profile language set to German (de-DE or de-if).

The browser console throws the following JavaScript error on any table view: Uncaught SyntaxError: Invalid or unexpected token

Root Cause: There is an accidental line break inside the 'search_tip' translation string in resources/lang/de-DE/general.php and resources/lang/de-if/general.php (at line 715). Because this string is injected globally into a single-quoted JavaScript html.push('...') call inside BootstrapTable.prototype.createToolbarForm, the newline breaks the JS syntax and prevents all Bootstrap Tables across Snipe-IT from rendering.

Solution / Quick Fix: Remove the line break at line 715 in both German translation files and clear the view cache. Run this inside your Snipe-IT installation directory (e.g., /opt/snipe-it):

sed -i '715{N;s/\n/ /}' resources/lang/de-DE/general.php
sed -i '715{N;s/\n/ /}' resources/lang/de-if/general.php
php artisan view:clear

r/Snipe_IT • • Oct 19 '26

Gathering meter reads from Konica printers.

1 Upvotes

(I'll start by admitting that some of my PoSh may be unconventional / and abbreviated - I have embraced it accordingly).
(Edit - I discovered some discrepancies and found additional OID's that count towards both 'Black' and 'Color' totals - Added: "ScanFax_Black" and "Copy_SingleColor")

I needed to come up with a way to create some logs of the usage on the fleet of 10 Konica printers across four locations / print servers.

These logs will be used to validate the pricing figures our printer support vendor provides (pricing is based on estimated / averaged usage per device - that data is audited on a quarterly basis, via automated auditing tools on each print server - FM Audit).

Currently - Without any of our own historical data - We have to take the vendors word, that those quarterly averages are 'OK'...

So, someone from accounting asked me for help.

The below script collects settings info for all of the Konica printers on each of the print servers, then uses the 'PortName' (IP address) to run an SNMP query on each device (SNMP must be enabled in the devices network settings).

The critical items are the OID's.

Figuring out which ones pull in the values for 'black' and for 'color' were the first challenge.

Once I got that figured out - It took me a while to find the OID that gathers the devices serial number - I could NOT find this documented anywhere, and AI (Copilot, Gemini, Claude) wasn't able to either.

For this last bit - I ended up walking (snmpwalk) through ALL 7125 OID's to locate the one that gathers the serial number.

wsl snmpwalk -v2c -c public <printer IP> 1.3.6.1 > 'C:\Users\richie\Documents\PoSh_Stuff\OID_walk.txt'

And looking for the serial number I already knew for that printer.

Select-String -Path 'C:\Users\richie\Documents\PoSh_Stuff\OID_walk.txt' -Pattern '<SerialNumber>'

OID_walk.txt:460:iso.3.6.1.2.1.43.5.1.1.17.1 = STRING: "<SerialNumber>"

Posting what I figured out.

I will pipe '$Report' to a Csv, and save it accordingly.

I'll be scheduling this to run on a quarterly basis - And handing the Csv's over to accounting when they ask for them.

$AllKonica = @()

("Site1,site2,site3,site4").Split(',') | % {
    If (Test-Connection $_ -Count 1 -ErrorAction SilentlyContinue) {
    $AllKonica += Get-Printer -ComputerName $_ | ? { $_.DriverName -match 'Konica' -and $_.PortName -NOTmatch "portprompt|microsoft|_"} | Select ComputerName, Name, PortName, DriverName, Comment 
    } 
}

$Report = @()
$AllKonica | % {

$PrintServer =  $_.ComputerName 
$PrinterIP = $_.PortName  
$PrinterName = $_.Name
$Sn = $_.Comment
$SNMP_Community = "public"

If (Test-Connection $PrinterIP -Count 1 -ErrorAction SilentlyContinue) {

$OIDs = [Ordered]@{
    "Model"            = ".1.3.6.1.4.1.18334.1.1.1.3.5.2.2.0"
    "SerialNo"         = ".1.3.6.1.2.1.43.5.1.1.17.1"
    "Total"            = ".1.3.6.1.4.1.18334.1.1.1.5.7.2.1.1.0"
    "Print_Black"      = ".1.3.6.1.4.1.18334.1.1.1.5.7.2.2.1.5.1.2"
    "Copy_Black"       = ".1.3.6.1.4.1.18334.1.1.1.5.7.2.2.1.5.1.1"
    "ScanFax_Black"    = ".1.3.6.1.4.1.18334.1.1.1.5.7.2.3.1.7.1"
    "Copy_SingleColor" = ".1.3.6.1.4.1.18334.1.1.1.5.7.2.2.1.5.3.1"
    "Print_Color"      = ".1.3.6.1.4.1.18334.1.1.1.5.7.2.2.1.5.2.2"
    "Copy_Color"       = ".1.3.6.1.4.1.18334.1.1.1.5.7.2.2.1.5.2.1"
    "Print_2Color"     = ".1.3.6.1.4.1.18334.1.1.1.5.7.2.2.1.5.4.2"
    "Copy_2Color"      = ".1.3.6.1.4.1.18334.1.1.1.5.7.2.2.1.5.4.1"
}

$snmp = New-Object -ComObject OlePrn.OleSNMP

try {
    $snmp.Open($PrinterIP, $SNMP_Community, 2, 1200)
    $Data = [Ordered]@{ "Printer" = "$PrinterName - $PrinterIP" }

foreach ( $Key in $OIDs.Keys ) {
    try { $Value = $snmp.Get($OIDs[$Key])
         if ( $null -eq $Value -or $Value -eq "" ) 
         { $Data[$Key] = 0 }
         #{ $Data[$Key] = $null }
          else { $Data[$Key] = $Value }
    } # END 'try' # 2
    # catch { $Data[$Key] = $null }
    catch { $Data[$Key] = 0 }
} # END 'foreach ($Key in $OIDs.Keys)'

$TotalColor = [int]$Data["Print_Color"] + [int]$Data["Print_2Color"] + [int]$Data["Copy_Color"] + [int]$Data["Copy_2Color"] + [int]$Data["Copy_SingleColor"]
$TotalBlack = [int]$Data["Print_Black"] + [int]$Data["Copy_Black"] + [int]$Data["ScanFax_Black"] 

$Report += [PSCustomObject][Ordered]@{
"Model"    = $Data["Model"]
"SerialNo" = $Data["SerialNo"]
"Printer"  = $Data["Printer"]
"Total"    = $Data["Total"]
"Black"    = $TotalBlack
"Color"    = $TotalColor
    }
} # END 'try' # 1

catch { Write-Host "Connection failed: $PrintServer -> $PrinterIP ($PrinterName)" -F 14 }
finally { $snmp.Close() }

} # END 'If (Test-Connection...'

else {
    $Report += [PSCustomObject][Ordered]@{
        "Model"    = "Unk"
        "SerialNo" = $Sn
    "Printer"  = "$PrinterName - Unreacheable"
        "Total"    = "NULL"
        "Black"    = "NULL"
        "Color"    = "NULL"
    }
} # END 'else'

} # END '$AllKonica | %'

$Report | ft

r/Snipe_IT • • Oct 13 '26

Predefined Kits Question

2 Upvotes

I am working on setting up packages for our users that include a PC, 2 monitors and the standard licenses/CALs everyone gets. I only seem to be able to add Assets to a predefined kit. How do I add components, accessories and licenses to the kit as well?

I just upgraded my instance to 8.8.0.


r/Snipe_IT • • Oct 06 '26

SnipeMobile for Android is now live! 🎉

21 Upvotes

A little while ago I posted here looking for testers for the Android version of SnipeMobile. Thanks a lot to everyone who took the time to test it, report bugs and suggest improvements! The feedback was really helpful in getting the Android version ready. ❤️

I’m happy to say that SnipeMobile is now live on Google Play! 🚀

https://play.google.com/store/apps/details?id=com.callandt.snipemobile

For anyone who hasn’t seen SnipeMobile before, it’s a free (no ads/no tracking and open source) mobile client for Snipe-IT that lets you manage your Snipe-IT instance from your phone or tablet. You can manage assets, accessories, licenses, consumables, components, users and locations, scan QR codes, check assets in/out, perform audits, manage maintenance, search your inventory and more.

The complete source code is available here:
https://github.com/Callandt/SnipeMobile

App Store for iPhone and iPad users:
https://apps.apple.com/us/app/snipemobile/id6759792710

I also know that the official Snipe-IT mobile app is now in beta, which is great to see! I don’t see SnipeMobile as a replacement for it. I think having another open-source client can be a nice addition to the Snipe-IT ecosystem.

So if you’re using Snipe-IT and need a mobile client, give SnipeMobile a try. And as always, feedback, bug reports and feature requests are very welcome! 🙌

Thanks again to everyone who helped test the Android version!

Previous post:
https://www.reddit.com/r/Snipe_IT/comments/1vmqqc3/looking_for_testers_for_the_android_version_of/


r/Snipe_IT • • Sep 30 '26

Snipe-IT v8.8.0 is out 🧑‍🩰

Thumbnail
github.com
42 Upvotes

Deets in the release notes <3


r/Snipe_IT • • Sep 30 '26

Dashboards for non-admins now on develop

Thumbnail
github.com
17 Upvotes

r/Snipe_IT • • Sep 30 '26

Help with error on Backup

2 Upvotes

Hi, I'm having issues with backups through both the web portal and the console line command.

I'm using snipe-it through the docker compose, and every time I try to back up it gives me the following error.

Of course, I've checked /usr/bin/ on Snipe-it's container, and mariadb-dump is not there, because it's in mariadb's container.

. Error Output
============
sh: 1: /usr/bin/mariadb-dump: not found
.
#0 /var/www/html/vendor/spatie/db-dumper/src/DbDumper.php(200): Spatie\DbDumper\Exceptions\DumpFailed::processDidNotEndSuccessfully()
#1 /var/www/html/vendor/spatie/db-dumper/src/Databases/MySql.php(189): Spatie\DbDumper\DbDumper->checkIfDumpWasSuccessFul()
#2 /var/www/html/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(289): Spatie\DbDumper\Databases\MySql->dumpToFile()
#3 [internal function]: Spatie\Backup\Tasks\Backup\BackupJob->Spatie\Backup\Tasks\Backup\{closure}()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(841): array_map()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(829): Illuminate\Support\Arr::map()
#6 /var/www/html/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(259): Illuminate\Support\Collection->map()
#7 /var/www/html/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(198): Spatie\Backup\Tasks\Backup\BackupJob->dumpDatabases()
#8 /var/www/html/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(172): Spatie\Backup\Tasks\Backup\BackupJob->createBackupManifest()
#9 /var/www/html/vendor/spatie/laravel-backup/src/Commands/BackupCommand.php(72): Spatie\Backup\Tasks\Backup\BackupJob->run()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Spatie\Backup\Commands\BackupCommand->handle()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\Container\Util::unwrapIfClosure()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\Container\BoundMethod::call()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#16 /var/www/html/vendor/symfony/console/Command/Command.php(341): Illuminate\Console\Command->execute()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\Component\Console\Command\Command->run()
#18 /var/www/html/vendor/spatie/laravel-backup/src/Commands/BaseCommand.php(29): Illuminate\Console\Command->run()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(68): Spatie\Backup\Commands\BaseCommand->run()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(29): Illuminate\Console\Command->runCommand()
#21 /var/www/html/app/Console/Commands/SystemBackup.php(56): Illuminate\Console\Command->call()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Console\Commands\SystemBackup->handle()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\Container\Util::unwrapIfClosure()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\Container\BoundMethod::call()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#28 /var/www/html/vendor/symfony/console/Command/Command.php(341): Illuminate\Console\Command->execute()
#29 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\Component\Console\Command\Command->run()
#30 /var/www/html/vendor/symfony/console/Application.php(1117): Illuminate\Console\Command->run()
#31 /var/www/html/vendor/symfony/console/Application.php(356): Symfony\Component\Console\Application->doRunCommand()
#32 /var/www/html/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application->doRun()
#33 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(198): Symfony\Component\Console\Application->run()
#34 /var/www/html/artisan(33): Illuminate\Foundation\Console\Kernel->handle()
#35 {main}
Backup failed because: The dump process failed with a none successful exitcode.
Exitcode
========
127: Command not found

Output
======
<no output>

Error Output
============
sh: 1: /usr/bin/mariadb-dump: not found

This is my .env (The relevant parts)

# --------------------------------------------
# REQUIRED: DATABASE SETTINGS
# --------------------------------------------
# The docker-compose db service uses MariaDB, so we route through the mariadb
# driver so spatie's backup uses mariadb-dump + --skip-ssl.
DB_CONNECTION=mariadb
DB_HOST=db
DB_SOCKET=null
DB_PORT='3306'
DB_DATABASE={db}
DB_USERNAME={user}
DB_PASSWORD={password}
MYSQL_ROOT_PASSWORD={otherpassword}
DB_PREFIX=null
DB_DUMP_PATH='/usr/bin'
# Left off by default: the composed mariadb service has no TLS configured,
# so mariadb-dump connects unencrypted regardless. Opt in only if your
# server actually requires an SSL-skip flag.
DB_DUMP_SKIP_SSL=false
DB_DUMP_SINGLE_TRANSACTION=false
DB_CHARSET=utf8mb4
DB_COLLATION=utf8mb4_unicode_ci

# --------------------------------------------
# OPTIONAL: SSL DATABASE SETTINGS
# --------------------------------------------
DB_SSL=false
DB_SSL_IS_PAAS=false
DB_SSL_KEY_PATH=null
DB_SSL_CERT_PATH=null
DB_SSL_CA_PATH=null
DB_SSL_CIPHER=null
DB_SSL_VERIFY_SERVER=null

EDIT:
I haven't solved it, but I got around it by making a small powershell script that does it for me (I run a docker compose on W11).

<#

.SYNOPSIS

Backs up Snipe-IT (Docker) and archives the result locally and on the network backup folder.

.DESCRIPTION

-Auto Runs the built-in Snipe-IT backup ("php artisan snipeit:backup") in the app container.

WARNING: CURRENTLY NOT WORKING

-Manual Builds the full manual backup: config files, storage volume, MariaDB dump,

zip, copy to network share and move to the local backup folder

If no parameter is given, -Manual is used. If both are given, -Auto runs first, then -Manual.

Every temporary artifact the script creates turns on a flag. When the workflow finishes

(or crashes), Invoke-Cleanup checks every flag and deletes whatever is still flagged.

.EXAMPLE

.\Snipe-IT-Backup.ps1 # same as -Manual

.\Snipe-IT-Backup.ps1 -Auto

.\Snipe-IT-Backup.ps1 -Auto -Manual

#>

[CmdletBinding()]

param(

[switch]$Auto,

[switch]$Manual

)

# If the program finds a non-terminating error, it triggers the catch

# (ErrorActionPreference is a built-in PS variable)

$ErrorActionPreference = 'Stop'

# Default to Manual when no mode is specified

if (-not $Auto -and -not $Manual) { $Manual = $true }

# ---------------- Settings ----------------

$AppContainerName = 'snipe-it-app-1' # runs "php artisan snipeit:backup"

$DbContainerName = 'snipe-it-db-1' # MariaDB container, runs mariadb-dump

$SourceConfigDir = '' # .env and docker compose location

$StorageDataPath = '\\wsl$\docker-desktop\mnt\docker-desktop-disk\data\docker\volumes\snipe-it_storage_data' # WSL data folder

$NetworkShare = '' # Network Backup Folder

$LocalBackupDir = '' #Local Backup Folder

# ------------------------------------------

function Write-Step($msg) { Write-Host "\n=== $msg ===" -ForegroundColor Cyan }`

function Get-ContainerId([string]$Name) {

$id = (docker ps -a --filter "name=^/?$Name$" --format '{{.ID}}' | Select-Object -First 1)

if (-not $id) { throw "Container '$Name' was not found." }

return $id

}

# =====================================================================

# Artifact tracking / cleanup

# =====================================================================

# Each artifact has a flag (Created) and what is needed to delete it.

$script:Artifacts = [ordered]@{

ContainerSql = @{ Created = $false; Path = $null; ContainerId = $null } # temp .sql inside the DB container

NetworkZip = @{ Created = $false; Path = $null } # partial zip on the network share

Zip = @{ Created = $false; Path = $null } # zip in Documents (cleared once moved)

WorkFolder = @{ Created = $false; Path = $null } # work folder in Documents

}

function Set-ArtifactFlag([string]$Name, [string]$Path, [string]$ContainerId = $null) {

$script:Artifacts[$Name].Created = $true

$script:Artifacts[$Name].Path = $Path

if ($ContainerId) { $script:Artifacts[$Name].ContainerId = $ContainerId }

}

function Clear-ArtifactFlag([string]$Name) {

$script:Artifacts[$Name].Created = $false

}

function Invoke-Cleanup {

$flagged = $script:Artifacts.Keys | Where-Object { $script:Artifacts[$_].Created }

if (-not $flagged) { return }

Write-Step 'CLEANUP: Removing generated files'

foreach ($name in $flagged) {

$item = $script:Artifacts[$name]

try {

if ($name -eq 'ContainerSql') {

docker exec $item.ContainerId rm -f $item.Path 2>&1 | Out-Null

}

elseif (Test-Path -LiteralPath $item.Path) {

Remove-Item -LiteralPath $item.Path -Recurse -Force

}

$item.Created = $false

Write-Host "Deleted ($name): $($item.Path)" -ForegroundColor Green

}

catch {

Write-Host "Could not delete ($name): $($item.Path) - $($_.Exception.Message)" -ForegroundColor Yellow

}

}

}

# =====================================================================

# AUTO: built-in Snipe-IT backup

# =====================================================================

function Invoke-AutoBackup {

Write-Step 'AUTO: Listing all Docker containers'

docker ps -a

if ($LASTEXITCODE -ne 0) { throw 'Unable to run "docker ps". Is Docker Desktop running?' }

Write-Step "AUTO: Looking for container '$AppContainerName'"

$appContainerId = Get-ContainerId $AppContainerName

Write-Host "Found container ID: $appContainerId" -ForegroundColor Green

Write-Step 'AUTO: Running Snipe-IT backup inside the app container'

# -it is omitted on purpose so the script also works in non-interactive sessions (e.g. Task Scheduler).

docker exec $appContainerId php artisan snipeit:backup

if ($LASTEXITCODE -ne 0) { throw "snipeit:backup failed (exit code $LASTEXITCODE)." }

}

# =====================================================================

# MANUAL: full manual backup package

# =====================================================================

function Invoke-ManualBackup {

$timestamp = Get-Date -Format 'yyyyMMdd_HHmm'

$folderName = "${timestamp}_SnipeIT_Backup"

$documents = [Environment]::GetFolderPath('MyDocuments')

$workFolder = Join-Path $documents $folderName

$zipPath = Join-Path $documents "$folderName.zip"

Write-Step "MANUAL: Creating work folder: $workFolder"

Set-ArtifactFlag 'WorkFolder' $workFolder # flag first, so a partial creation is cleaned too

New-Item -Path $workFolder -ItemType Directory -Force | Out-Null

Write-Step 'MANUAL: Copying .env and docker-compose.yml'

foreach ($file in '.env', 'docker-compose.yml') {

$src = Join-Path $SourceConfigDir $file

if (-not (Test-Path -LiteralPath $src)) { throw "Missing file: $src" }

Copy-Item -LiteralPath $src -Destination $workFolder -Force

}

Write-Step 'MANUAL: Copying _data folder from the WSL volume'

if (-not (Test-Path -LiteralPath $StorageDataPath)) {

throw "Storage path not found: $StorageDataPath"

}

Copy-Item -LiteralPath $StorageDataPath -Destination (Join-Path $workFolder '_data') -Recurse -Force

Write-Step 'MANUAL: Dumping MariaDB with mariadb-dump'

$dbContainerId = Get-ContainerId $DbContainerName

Write-Host "DB container '$DbContainerName': $dbContainerId" -ForegroundColor Green

# Read DB credentials from the .env that was just copied

$envVars = @{}

Get-Content -LiteralPath (Join-Path $workFolder '.env') | ForEach-Object {

if ($_ -match '^\s*([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*)\s*$') {

$envVars[$Matches[1]] = $Matches[2].Trim().Trim('"').Trim("'")

}

}

foreach ($key in 'DB_DATABASE', 'DB_USERNAME', 'DB_PASSWORD') {

if (-not $envVars[$key]) { throw "$key not found in .env" }

}

$sqlName = "${timestamp}_snipeit_db.sql"

$containerSql = "/tmp/$sqlName"

Set-ArtifactFlag 'ContainerSql' $containerSql $dbContainerId

# Dump inside the container (avoids PowerShell re-encoding the SQL), password passed via env var

`docker exec -e "MYSQL_PWD=$($envVars['DB_PASSWORD'])" $dbContainerId ``

`/usr/bin/mariadb-dump -u $envVars['DB_USERNAME'] ``

`--single-transaction --routines --triggers ``

--result-file=$containerSql $envVars['DB_DATABASE']

if ($LASTEXITCODE -ne 0) { throw "mariadb-dump failed (exit code $LASTEXITCODE)." }

docker cp "${dbContainerId}:$containerSql" (Join-Path $workFolder $sqlName)

if ($LASTEXITCODE -ne 0) { throw 'Could not copy the SQL dump out of the container.' }

Write-Host "Database dump saved as $sqlName" -ForegroundColor Green

Write-Step "MANUAL: Compressing to $zipPath"

if (Test-Path -LiteralPath $zipPath) { Remove-Item -LiteralPath $zipPath -Force }

Set-ArtifactFlag 'Zip' $zipPath

Compress-Archive -Path (Join-Path $workFolder '*') -DestinationPath $zipPath -CompressionLevel Optimal

Write-Step "MANUAL: Copying zip to network share: $NetworkShare"

if (-not (Test-Path -LiteralPath $NetworkShare)) {

New-Item -Path $NetworkShare -ItemType Directory -Force | Out-Null

}

# Flag the share copy only while it is in progress: a half-written file is removed on failure,

# but a finished copy is a real backup and is kept.

Set-ArtifactFlag 'NetworkZip' (Join-Path $NetworkShare "$folderName.zip")

Copy-Item -LiteralPath $zipPath -Destination $NetworkShare -Force

Clear-ArtifactFlag 'NetworkZip'

Write-Step "MANUAL: Moving zip to local backup folder: $LocalBackupDir"

if (-not (Test-Path -LiteralPath $LocalBackupDir)) {

New-Item -Path $LocalBackupDir -ItemType Directory -Force | Out-Null

}

Move-Item -LiteralPath $zipPath -Destination $LocalBackupDir -Force

Clear-ArtifactFlag 'Zip' # the zip now lives in the backup folder: keep it

Write-Host "\nManual backup completed: $folderName.zip" -ForegroundColor Green`

}

# =====================================================================

# Main

# =====================================================================

$exitCode = 0

try {

if ($Auto) { Invoke-AutoBackup }

if ($Manual) { Invoke-ManualBackup }

}

catch {

Write-Host "\nERROR: $($_.Exception.Message)" -ForegroundColor Red`

$exitCode = 1

}

finally {

Invoke-Cleanup # runs on success AND on failure

}

exit $exitCode


r/Snipe_IT • • Sep 17 '26

Snipe-IT Integration for Freshservice

19 Upvotes

Hi all,
We now have a very comprehensive and feature-rich integration for Snipe-IT on Freshservice!
You can manage your Snipe-IT assets directly on your tickets with things like:

  1. Linking assets to tickets
  2. Checkout/check in assets (hardware, accessories, licenses, consumables)
  3. View assets assigned to ticket reporter
  4. View and modify asset details and custom fields
  5. View and create asset maintenance records, etc.
  • Get the app here.
  • Checkout app features here.
  • Installation guide here.

Feedback is highly appreciated.


r/Snipe_IT • • Sep 17 '26

Unable to connect to snipeit local server

1 Upvotes

Hello, I have setup Snipe-It on a Debian machine and have configured it completely. For some reason, I'm unable to connect to the Snipe-It server hosted on the Debian server from a Windows 10 laptop connected to it via LAN, and whenever I try to open the website using the domain setup in Apache, I get an error saying dns_probe_finished_nxdomain.

How could I go about troubleshooting this?


r/Snipe_IT • • Sep 09 '26

Official Snipe-IT mobile app ready for beta testing

28 Upvotes

r/Snipe_IT • • Sep 09 '26

In development (testers needed): Added Fleet, InTune, Unifi, Addigy, etc RMM/MDM sync adapters

Thumbnail
github.com
22 Upvotes

This PR adds a new settings page under Admin -> Sync Adapters where you can hook Snipe-IT up to whatever manages your devices out in the world. It currently includes 14 adapters:

  • Fleet
  • Kandji
  • Jamf Pro
  • Jamf School
  • JumpCloud
  • Mosyle
  • osctrl
  • Addigy
  • UniFi
  • Microsoft Intune
  • Omnissa Workspace ONE
  • Meraki Systems Manager
  • Zentral
  • NinjaOne