# Permission denied on my windows xp sp2 development system

**URL:** <https://www.ruby-forum.com/t/permission-denied-on-my-windows-xp-sp2-development-system/110001>\
**Category:** Rails\
**Created:** [July 21, 2007, 1:36am UTC](https://www.ruby-forum.com/t/permission-denied-on-my-windows-xp-sp2-development-system/110001 "2007-07-21T01:36:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mischka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3da27b/32.png) [@mischka](https://www.ruby-forum.com/u/mischka)\
**Post date:** [July 21, 2007, 1:36am UTC](https://www.ruby-forum.com/t/permission-denied-on-my-windows-xp-sp2-development-system/110001/1 "2007-07-21T01:36:28Z")

</div>

Hello all,

I want to test rails on my development system. I use Eclipse with the  
Aptana Rails Support. But when I start webrick and want to see the  
aplication properties I get an Error.

Permission denied - ./script/…/config/…/tmp/sessions//ruby\_sess.  
6d3884b6a1a60c03.tmp or ./script/…/config/…/tmp/sessions//ruby\_sess.  
6d3884b6a1a60c03.new

or so. This is very stange because ruby\_sess.6d3884b6a1a60c03.tmp  
exist and an file with the name ruby\_sess.6d3884b6a1a60c03  
without .tmp. So the system has permissions.  
I am Admin on thies maschine so the program has my privileges.

Please help me I am a rails noob.

mischka

---

<div class="post-metadata">

**Author:** ![mischka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3da27b/32.png) [@mischka](https://www.ruby-forum.com/u/mischka)\
**Post date:** [July 22, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/permission-denied-on-my-windows-xp-sp2-development-system/110001/2 "2007-07-22T19:31:26Z")

</div>

Here are the log:

Permission denied - ./script/…/config/…/tmp/sessions//ruby\_sess.  
6d3884b6a1a60c03.tmp or ./script/…/config/…/tmp/sessions//ruby\_sess.  
6d3884b6a1a60c03.new

D:/Lang/ruby/lib/ruby/1.8/pstore.rb:333:in `rename’

D:/Lang/ruby/lib/ruby/1.8/pstore.rb:333:in `transaction’

D:/Lang/ruby/lib/ruby/1.8/cgi/session/pstore.rb:62:in `initialize’

D:/Lang/ruby/lib/ruby/1.8/cgi/session.rb:273:in `new’

D:/Lang/ruby/lib/ruby/1.8/cgi/session.rb:273:in `initialize’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/cgi\_process.rb:123:in `new’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/cgi\_process.rb:123:in `session’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/cgi\_process.rb:155:in `stale\_session\_check!’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/cgi\_process.rb:110:in `session’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/base.rb:1052:in `assign\_shortcuts\_without\_flash’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/flash.rb:140:in `assign\_shortcuts’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/base.rb:424:in `process\_without\_filters’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/filters.rb:624:in  
`process\_without\_session\_management\_support’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/session\_management.rb:114:in `process’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/  
action\_controller/base.rb:330:in `process’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:  
41:in `dispatch’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick\_server.rb:  
113:in `handle\_dispatch’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick\_server.rb:  
79:in `service’

D:/Lang/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’

D:/Lang/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run’

D:/Lang/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start\_thread’

D:/Lang/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start’

D:/Lang/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start\_thread’

D:/Lang/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start’

D:/Lang/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each’

D:/Lang/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start’

D:/Lang/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start’

D:/Lang/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick\_server.rb:  
63:in `dispatch’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/  
webrick.rb:59

D:/Lang/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem\_original\_require’

D:/Lang/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/  
active\_support/dependencies.rb:495:in `require’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/  
active\_support/dependencies.rb:342:in `new\_constants\_in’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/  
active\_support/dependencies.rb:495:in `require’

D:/Lang/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:  
39

D:/Lang/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem\_original\_require’

D:/Lang/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’

./script/server:3

-e:4:in `load’

-e:4

I think ruby can’T rename the session file but why???

---

<div class="post-metadata">

**Author:** ![mischka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3da27b/32.png) [@mischka](https://www.ruby-forum.com/u/mischka)\
**Post date:** [July 22, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/permission-denied-on-my-windows-xp-sp2-development-system/110001/3 "2007-07-22T23:20:34Z")

</div>

have you solved the problem? may you share the solution if you solved,  
please?

---

<div class="post-metadata">

**Author:** ![mischka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3da27b/32.png) [@mischka](https://www.ruby-forum.com/u/mischka)\
**Post date:** [July 23, 2007, 11:41am UTC](https://www.ruby-forum.com/t/permission-denied-on-my-windows-xp-sp2-development-system/110001/4 "2007-07-23T11:41:50Z")

</div>

Matthew R. wrote:

> does the #{myapp}/tmp/sessions directory exist?  
> try creating it.

the directory exists and in the sessiondir are files with .tmp and  
without but no file with .new so I think ruby can create files but not  
rename it. So ruby can’t rename foo.tmp -\> foo.new or so. And I don’t  
know why. can the Files be locked from the Filesystem(ntfs), but I think  
I can not be the only own how has this prolem if this is the reason.

> you should probably look at using database sessions anyway.  
> rake db:sessions:create should do that for you  
> then in /app/config/environment.rb uncomment the line about using  
> “ActiveRecordSessionStore” or something of that sort.

I will test is.

---

<div class="post-metadata">

**Author:** ![mischka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3da27b/32.png) [@mischka](https://www.ruby-forum.com/u/mischka)\
**Post date:** [July 23, 2007, 12:28am UTC](https://www.ruby-forum.com/t/permission-denied-on-my-windows-xp-sp2-development-system/110001/5 "2007-07-23T00:28:37Z")

</div>

does the #{myapp}/tmp/sessions directory exist?  
try creating it.

you should probably look at using database sessions anyway.  
rake db:sessions:create should do that for you  
then in /app/config/environment.rb uncomment the line about using  
“ActiveRecordSessionStore” or something of that sort.

---

<div class="post-metadata">

**Author:** ![mischka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3da27b/32.png) [@mischka](https://www.ruby-forum.com/u/mischka)\
**Post date:** [May 22, 2009, 11:43am UTC](https://www.ruby-forum.com/t/permission-denied-on-my-windows-xp-sp2-development-system/110001/6 "2009-05-22T11:43:36Z")

</div>

Hi

I solved the problem by renaming the file. I tried to find out whether  
the tmp/sessions directory exist or not. In that directory, I saw one  
file (ruby\_sess.a122324b45535c6556defg). I renamed this file into  
ruby\_sess. When I run my application, it works successfully. When I go  
and look at that directory again, there is a new file  
(ruby\_sess.z56a768d89g00ghgl) created. I hope it will help you too.

swe

> Matthew R. wrote:
> 
> > does the #{myapp}/tmp/sessions directory exist?  
> > try creating it.

---

<div class="post-metadata">

**Author:** ![mischka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3da27b/32.png) [@mischka](https://www.ruby-forum.com/u/mischka)\
**Post date:** [July 23, 2007, 1:19pm UTC](https://www.ruby-forum.com/t/permission-denied-on-my-windows-xp-sp2-development-system/110001/7 "2007-07-23T13:19:45Z")

</div>

Kay Petzold wrote:

> I will test is.  
> ok I have test it and it works. But hits is only a workaround and don’t  
> fix the Problem. Please help
