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

Processing a CSV gets stuck.

Open jrosenhq opened this issue 8 years ago • 10 comments

Please confirm you have done the following before posting your bug report:

Describe the bug When processing an imported CSV, the process freezes on "Processing" and does not move forward to import the data.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Import'
  2. Click 'Process' on the CSV to import data from.
  3. Click 'Import'
  4. Page states that it is processing.
  5. Page never advances.

Expected behavior I expect to see a message saying that the import is complete. I also expect the page to have imported the data.

Screenshots error

Server (please complete the following information):

  • Snipe-IT Version: 4.6.3
  • OS: [e.g. Ubuntu, CentOS] RedHat
  • Web Server: [e.g. Apache, IIS] Apache
  • PHP Version: 7.1.19

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10
  • Browser [e.g. chrome, safari] Chrome and FireFox
  • Version [e.g. 22] Chrome (64.0.3282.140), FireFox (61.0.1)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] N/A
  • OS: [e.g. iOS8.1] N/A
  • Browser [e.g. stock browser, safari] N/A
  • Version [e.g. 22] N/A

Error Messages No error messages on the screen. The image attached has the Chrome console with the error it sees behind the scenes. Checked the Laravel.log file and it only had an error from June that has since been fixed.

Additional context

  • Is this a fresh install or an upgrade? Upgrade
  • What OS and web server you're running Snipe-IT on
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc): install.sh
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database: no

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

jrosenhq avatar Jul 29 '18 04:07 jrosenhq

it look likes the same question with v4.6.2 ?

huangshifang avatar Jul 29 '18 08:07 huangshifang

Can you see in the network tab what the response is for the imports/6 post? Alternatively, what is added to storage/logs/laravel.log when you try to import?

mnemonicly avatar Jul 29 '18 13:07 mnemonicly

The response on imports/6 is just "Whoops, looks like something went wrong.". Here is the Laravel log file. laravel.log

jrosenhq avatar Jul 29 '18 15:07 jrosenhq

It looks like an issue with email settings. Do you have email configured properly on your site?

mnemonicly avatar Jul 29 '18 19:07 mnemonicly

I left the email settings set as the default since I haven't allowed my mail server to accept relay information from my asset server yet. Why would the importer need to use the email settings?

jrosenhq avatar Jul 29 '18 19:07 jrosenhq

The importer sends users that are imported with an email address an email with the generated password. I'm now wondering if this respects global site notification settings.

mnemonicly avatar Jul 29 '18 19:07 mnemonicly

I dont want users to have the ability to login. Is there a way around that setting?

jrosenhq avatar Jul 29 '18 19:07 jrosenhq

@jrosen175 leave their email address out of the import. That's the best you can do for now until we update the importer to let you decide whether or not to email the user.

snipe avatar Aug 01 '18 10:08 snipe

@jrosen175 leave their email address out of the import. That's the best you can do for now until we update the importer to let you decide whether or not to email the user.

@snipe thanks for the response. I was able to successfully import the users without emails.

Sent with GitHawk

jrosenhq avatar Aug 04 '18 03:08 jrosenhq

There is another issue opened for this, so I'm going to close it as a duplicate even though this one came first, since it's more to the point of the actual thing that needs to be fixed.

Closing as duplicate of #6042

snipe avatar Aug 04 '18 03:08 snipe