stat.st_gid unsupported on this platform
----------------------------------------
Key: JRUBY-3510
URL: http://jira.codehaus.org/browse/JRUBY-3510
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.2
Environment: Solaris 10 x86, jdk6
Reporter: Igor Minar
Assignee: Thomas E Enebo
Something related to handling files or temp files has changed in 1.2 since
1.1.6.
My Rails (2.2.2) app now throws this error when I have fragment caching turned
on:
{noformat}
ActionView::TemplateError (stat.st_gid unsupported on this platform) on line #8
of app/views/shared/_tabs.rhtml:
...
...
vendor/rails/activesupport/lib/active_support/core_ext/file/atomic.rb:40:in
`atomic_write'
vendor/rails/activesupport/lib/active_support/cache/file_store.rb:19:in
`write'
vendor/rails/actionpack/lib/action_controller/caching/fragments.rb:58:in
`write_fragment'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in
`benchmark'
vendor/rails/actionpack/lib/action_controller/caching/fragments.rb:57:in
`write_fragment'
vendor/rails/actionpack/lib/action_controller/caching/fragments.rb:44:in
`fragment_for'
vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb:35:in
`cache'
app/views/shared/_tabs.rhtml:8
{noformat}
I looked at
[atomic.rb|http://github.com/rails/rails/blob/ff561370739eb809d1d006ea842cd2b1e43f6950/activesupport/lib/active_support/core_ext/file/atomic.rb]
and line 40 is: {noformat}
chown(old_stat.uid, old_stat.gid, file_name)
{noformat}
I can reproduce the problem on a Solaris 10 server but not on my mac 10.5.6
notebook.
When I downgrade to jruby 1.1.6 the problem goes away.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email