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

Unable to view new users

Open vr1994 opened this issue 10 years ago • 10 comments

When I create a new user it doesn't show up when I try to view all users but I can login with the user I just created. When I go to to the users page, I would get the message "No matching records found".\

Please provide answers to these questions before posting your bug report:

  • Version of Snipe-IT you're running - v3.6.0-g91caba0
  • What OS and web server you're running Snipe-IT on - Ubuntu 16.04 LTS and Apache
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) install.sh

vr1994 avatar Nov 30 '16 15:11 vr1994

Got the same problem, try hit the "refresh" button. After that it shows all users. image

MichaelAlt avatar Nov 30 '16 15:11 MichaelAlt

I've done this several times already and it didn't work. I logged out and back in and still didn't see anything.

vr1994 avatar Nov 30 '16 15:11 vr1994

I've checked the database and the user is in the table. So it knows the user exists but it just doesn't display in the application.

vr1994 avatar Nov 30 '16 15:11 vr1994

I'm thinking maybe a value in some field must be changed so it can be visible in application.

vr1994 avatar Nov 30 '16 16:11 vr1994

The same thing happens when I create an asset or anything else. It would be in the database but it won't show up in application.

vr1994 avatar Nov 30 '16 16:11 vr1994

Check the /api/users/list URL and tell me whether you get JSON, or an error. Also, per the initial issue template, please check your browser console and tell us if there are any javascript errors. Also try clearing your cookies and cache and reloading the page.

snipe avatar Dec 01 '16 08:12 snipe

It's fixed now. I had to change some things with the database.

vr1994 avatar Dec 01 '16 13:12 vr1994

Could you be more specific, in case anyone else has a similar issue?

snipe avatar Dec 01 '16 14:12 snipe

I had performed an upgrade on the application and it seems some of the tables weren't properly updated so I had to update some field names and create the action_logs table before anything could show up in the application.

vr1994 avatar Dec 03 '16 19:12 vr1994

Did you run migrations? You should never have to alter data or tables directly, and in fact we strongly recommend against it. Migrations do all that for you.

snipe avatar Dec 03 '16 21:12 snipe