-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Asset search function not showing any results when searching #15891
Comments
👋 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. |
Hi there @Ghosty216 We don't officially support PostgreSQL and I suspect that is what is causing the issue. Do your logs, browser console/network tabs or app log ( |
Hey Marcusmoore thanks for getting back. I actually did just now see this in my browser console: is deprecated. Please include Understand this warningAI
|
Your application log in the |
Hey, these are the logs from the /storage/logs/ directory: #22 /var/www/snipe-it/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(87): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter() |
Is there more in there? I don't see an actual exception. |
Sorry I was using tail to get the log, when looking at the actual log file, I see these exceptions: [2024-11-27 15:33:58] production.ERROR: PDOException: SQLSTATE[42703]: Undefined column: 7 ERROR: column " " does not exist Also see this one: Next Illuminate\Database\QueryException: SQLSTATE[42703]: Undefined column: 7 ERROR: column " " does not exist I appreciate the help, I am very new to this and databases in general. |
It looks like you're using postgres, which is not officially supported by Snipe-IT. We try our best to support as many databases as is realistic, but it's possible that that particular concatenation query isn't completely compatible. That said, I do know of some other folks who use postgres with Snipe-IT and I haven't seen this come up before. We'll try to do a little digging to see if there's a different way to phrase that query that might be a little more postgres friendly. |
@snipe Thank you all for looking into it so quickly. I use postgre for a reporting project that we are currently working on, so I figured it would be convenient to use the same database software. I do not have much in postgre for Snipe-IT currently, so I think I will try and migrate what I have over to a MySQL db once I install and configure that. Thanks for all the work, if you find anything please update! |
Hey update on this, I was able to get the search working correctly by switching to MySQL instead of PostgreSQL. |
Debug mode
Describe the bug
When going to the all assets page, everything I type in displays no results. If I type in the asset tag, s/n, or user, still results in no results found. When I use the lookup by asset tag bar at the top, that works but only with the asset tag, anything partial will not show any results. I am using PostgreSQL and am able to query assets in psql.
Reproduction steps
1.The behavior is reproduced every time when searching.
Expected behavior
The expected behavior is to display the asset you are searching for.
Screenshots
Snipe-IT Version
v7.1.15 build 16052 (g25bfd3e84)
Operating System
Ubuntu
Web Server
Nginx
PHP Version
8.3.6
Operating System
Windows 10
Browser
Chrome
Version
Version 131.0.6778.86
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: