Error In Tempfile Using Data/params
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Can not update Bugzilla Parameters up vote 0 down vote favorite I'm running Bugzilla 4.4.5 on Windows 2008 r2 with IIS 7.5. My path to Index.cgi is C:\Inetpub\wwwroot\bugzilla-4.4.5 The URL I'm using is http://localhost/bugzilla I can bring the website up and login, but when I edit the parameters and click "Save" I get this message: Software error: Error in tempfile() using template data\params.XXXXX: Could not create temp file data\params.I19Ig: Permission denied at Bugzilla/Config.pm line 270. For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. [Wed Sep 17 13:14:16 2014] editparams.cgi: Error in tempfile() using template data\params.XXXXX: Could not create temp file data\params.I19Ig: Permission denied at Bugzilla/Config.pm line 270. I ran process monitor (from sysinternals) on it and noticed this interesting line: "Time of Day","Process Name","PID","Operation","Path","Result","Detail" "12:11:37.2166449 PM","w3wp.exe","1172","CreateFile","C:\Inetpub\wwwroot\bugzilla-4.4.5\editparams.cgi\web.config","PATH NOT FOUND","Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a" Any ideas about what I need to change? ETA: I verified that permissions for IUSR are Full Control for ALL folders, subfolders & files. No changes were made. It doesn't work. windows-server-2008-r2 iis-7.5 bugzilla share|improve this question edited Sep 22 '14 at 18:14 Barry 31 asked Sep 17 '14 at 17:33 bcole 1 its clearly saying its a permission issue, make sure that whe
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
on multiple criteria (1 month, 3 days ago) http://www.stegriff.co.uk/upblog/bugzilla-permission-denied-iis-windows Quick Reference - .Net File Open Dialog (1 month, 8 http://stackoverflow.com/questions/5014688/rails3-confused-about-using-paramsfilename-tempfile-path-vs-paramsfilename days ago) Postman sets login cookie but my web app doesn't (1 month, 9 days ago) Next & Previous Bugzilla cannot determine local time zone on Windows (newer) Emoji Studio (older) Bugzilla Permission Denied in IIS on Windows You're error in setting up Buzilla on Windows with IIS and get a permissions error like this whenever you try to save config values: Error in tempfile() using template data\params.XXXXX: Could not create temp file data\params.I19Ig: Permission denied at Bugzilla/Config.pm line 270. For help, please send mail to this site's webmaster, giving this error in tempfile error message and the time and date of the error. [Wed Sep 17 13:14:16 2014] editparams.cgi: Error in tempfile() using template data\params.XXXXX: Could not create temp file data\params.I19Ig: Permission denied at Bugzilla/Config.pm line 270. You've probably already tried setting the Application Pool to use a different user account and set all the file permissions on %bugzilla%/data but it still doesn't work. This is because the CGI settings are being used, rather than the App Pool. How to fix it Open IIS Navigate to your Buzilla site/application Go to Features View if it's not by default (use the tabs at the bottom of the window) Double-click on CGI Change Impersonate User to False Restart the site or the whole IIS instance Try to submit your Bugzilla config again from /editconfig.cgi and hopefully everything should now be working! Hope this helps! Written 2015-06-03 2014 SteGriff - Stephen Griffiths
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up rails3, confused about using params[:filename].tempfile.path vs params[:filename][:tempfile].path up vote 1 down vote favorite On a Rails 3 app hosted at Heroku, where a multipart file is POSTed to my app, I'm trying to use some sample code that says : File.open(params['filename'][:tempfile].path) however, my logs show the error NoMethodErr no such method as tempfile. I also tried File.open(params[:filename].tempfile.path) got the same error. I added require 'tempfile' to my Controller, made no difference. ruby-on-rails ruby temporary-files share|improve this question asked Feb 16 '11 at 9:31 jpwynn 7,3431671140 can you show the view file also.. –rubyprince Feb 16 '11 at 9:41 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted When a file is posted to your application, the object in the params should already be a Tempfile so calling [:tempfile] or .tempfile should not be necessary. Try something like this: File.open params[:filename].path share|improve this answer answered Feb 16 '11 at 10:59 DanneManne 17k33944 i will try that now, thanks! –jpwynn Feb 16 '11 at 20:08 1 it needed ot be params['filename'].temofile.path Thank you for your suggestion, the text you wrote about tempfile being done fo rus was actually the key to debugging a problem where they used the SAME keyname 'filename' in BOTH the POSt data and the url, so the latter overwrites the former. –jpwynn Feb 16 '11 at 21:38 Glad to hear it worked out –