Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Unable to generate REPORTS


#1

Hi everyone
I’ve seen similar reports errors in the forum, but no solutions yet.
We are using Trial version of TestRail v5.6.0.3841 (waiting for the requested licenses).
Background Task activated, Reports forlder permissions to Full control.
Tried to create a report, worked very good 1st day ONLY, then

An error occurred while generating the report. Please contact your TestRail administrator or the person who built this report to resolve this issue. The following error message and details were recorded:

Could not create temporary file or directory:

[Show details](javascript:void(0))

Could not create temporary file or directory:

Details: <missing>
File: D:\APP\web\TestRail\sys\helpers\ex.php
Line: 25
Status Code: 500
Host: <missing>
Uri: ()

Browser: <missing>
PHP: 5.6.20
Server: Windows NT 6.1 build 7601 (Windows Server 2008 R2 Datacenter Edition Service Pack 1) i586

Trace:
at ex::raise (ex.php:43)
at ex::raisev (ex.php:73)
at ex::raiset (files.php:42)
at files::open_temp (report.php:232)
at Report_plugin->render_page (report.php:332)
at Cases_activity_summary_report_plugin->run (reports.php:688)
at reports::run (reports.php:98)
at Reports_job->_run_report (reports.php:44)
at Reports_job->run (tasks.php:174)
at Tasks_controller->_run_job (tasks.php:143)
at Tasks_controller->_process_job (tasks.php:61)
at Tasks_controller->_run (tasks.php:50)
at Tasks_controller->index (<unknown>:<unknown>)
at call_user_func (controller.php:126)
at Controller->_invoke_cli (controller.php:116)
at Controller->_invoke (gizmo.php:107)
at require_once (index.php:106)
at require_once (task.php:49)

Help please.


#2

Hello ##CUSTOMERFIRST##,

Thank you for your email! Has there been any changes to your PHP configuration? The “temporary file or directory” is likely TestRail trying to create a file in the PHP temporary directory (sys_temp_dir) and is somehow unable to. The default for Windows should be C:\Windows\Temp but you’ll want to confirm this with a info.php file.

http://docs.gurock.com/testrail-admin/howto-running-phpinfo

Once this temp file is created and populated the file is moved to the configured TestRail reports directory. Where the reports are stored and ready for download upon request.


#3

Hello Vu

I did as you suggested and here a section of the PHP info

Environment


#4

Hello Vu
I did as you suggested and here a section of the PHP info

Environment

Variable Value
PROCESSOR_ARCHITEW6432 AMD64
FCGI_X_PIPE \.\pipe\IISFCGI-10592e14-41fb-4182-b093-6147ee43a821
PHPRC C:\PHP\5.6.20\
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\TestRail\TestRail.config
APP_POOL_ID TestRail
CANDLE_HOME C:\IBM\ITM
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME NC0275ASC26
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
KUIFILEPATH C:\IBM\ITM\bin\xml
LIBPATH C:\IBM\ITM\TMAITM6;C:\IBM\ITM\InstallITM;
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 4
OS Windows_NT
Path C:\Program Files\Legato\nsr\bin;C:\Program Files\Perl64\site\bin;C:\Program Files\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft\Web Platform Installer;C:\Windows\System32\WindowsPowerShell\v1.0;C:\IBM\ITM\bin;C:\IBM\ITM\TMAITM6;C:\IBM\ITM\InstallITM;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\WindowsPowerShell\v1.0;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 37 Stepping 1, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 2501
ProgramData C:\ProgramData
ProgramFiles C:\Program Files (x86)
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC C:\Users\Public
RBKA_LOGRETENTION 60
RBKA_SOURCE_FILES C:\Runbook\SourceFiles
RBKA_SYSTEMSTATE_PATH C:\Runbook\SystemState
RBKA_TOOLS C:\Runbook\Tools
RBKA_TOOLS_PATH C:\Runbook\Tools
Runbook C:\Runbook
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Windows\TEMP
TMP C:\Windows\TEMP
UATDATA C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
USERDOMAIN BLC
USERNAME NC0275ASC26$
USERPROFILE C:\Windows\system32\config\systemprofile
WinCollect_Install_Dir C:\Program Files\IBM\WinCollect\
windir C:\Windows
windows_tracing_flags 3
windows_tracing_logfile C:\BVTBin\Tests\installpackage\csilogfile.log

I verified the folder C:\Windows\Temp exists.

Any Suggestions ? Help… :slight_smile: