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

Custom Asset report incomplete data set

Open StiM-git opened this issue 8 years ago • 4 comments

Describe the bug Running the custom asset report downloads a csv with only 216 assets instead of 736. Below the last entry I get the following html text: snipe-itAssetReportError.txt

To Reproduce Steps to reproduce the behavior:

  1. Reports
  2. Custom Asset Report
  3. Generate

Expected behavior All 736 assets exported into a CSV

Server:

  • Snipe-IT Version: v4.6.6 - build 3926
  • OS: Windows Server 2016
  • Web Server: IIS
  • PHP Version: 7.2.7

Desktop:

  • OS: Windows 10
  • Browser: Chrome
  • Version: 70.0.3538.102

Additional context

  • Fresh install
  • Git install
  • No manual data in database

StiM-git avatar Nov 21 '18 10:11 StiM-git

Hi there - If you're seeing the error "Whoops. Something went wrong" with no other output on the screen and a status code of 500, you'll need to enable debug mode.

screen shot 2018-05-16 at 4 14 10 pm

There are many reasons why you might trigger a 500 error (misconfigured .env file, etc), but we won't be able to help you unless you can provide us with a stacktrace, either by enabling debug mode, or by looking in your app logs, located at storage/logs/laravel.log.

To enable debug mode:

  • Open your .env file and change APP_DEBUG=false to APP_DEBUG=true
  • From the command line at your Snipe-IT project root, run php artisan config:clear

It is quite literally impossible for us to be able to assist you with a 500 "Whoops" error without additional information. The stack trace tells us where the error is occurring, and what might have triggered it.

When debug is enabled, you'll see a long stack trace on your screen:

screen shot 2018-05-16 at 4 18 08 pm

In order to be able to see what's happening on your install (what specific errors you're triggering), we need the entire stack trace from that page, or as much of the app error log as is possible.

Paste Only, Please!

When opening/updating a Github issue and providing the stack trace, please copy+paste the errors into the Github issue. Do not attach them as files. If you're not familiar with GH Markdown, we'll reformat it for you to make it more readable.

If for some reason you cannot enable debug but you have access to the app logs, the easiest way to provide us with ONLY the relevant information (which will make it easier for us to troubleshoot your issue), is to tail the log file and then trigger the error.

Tailing a Log File in Linux/OSX:

Type the following into a Linux command line prompt from your Snipe-IT project root:

 tail -f storage/logs/laravel.log

Then trigger the error again, which would give you output like this:

screen shot 2018-05-16 at 4 35 28 pm

Or you can tail it and output the relevant information into a file:

 tail -f storage/logs/laravel.log > snipe-logfile.txt

Tailing the Log File on IIS:

To tail a log file on IIS, you can use Powershell:

Get-Content C:\inetpub\wwwroot\snipe-it\storage\logs\laravel.log -Wait

If you're not comfortable with Powershell, see the other options available to Windows users at this StackOverflow article.

Then copy and paste the contents of that file into the Github issue. (Remember, don't attach it, paste it in.) Be sure to redact any personal or sensitive data before including it in Github. Information such as database passwords, email passwords, app keys, etc should NEVER be exposed on Github.

Once your issue is resolved, do not forget to turn debugging OFF, or you could expose sensitive information about your system!

(If you need to bookmark this information for easy access, it can be found in the Snipe-IT documentation here.)

snipe avatar Dec 06 '18 01:12 snipe

I don't get an error on the page, it just downloads an incomplete spreadsheet. I would have turned on debugging mode if I received an error.

StiM-git avatar Dec 06 '18 08:12 StiM-git

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] avatar Feb 07 '19 06:02 stale[bot]

This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.

stale[bot] avatar Feb 14 '19 07:02 stale[bot]