Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error raised when attempting to run a 2nd instance of a green_shoes application from another thin client #88

Open
jrobertson opened this issue May 10, 2016 · 0 comments

Comments

@jrobertson
Copy link

The following error was observed while attempting to execute my green_shoes application from a thin client when another instance of the green_shoes application is already running in another thin client.

error while writing to output stream
/usr/local/lib/ruby/gems/2.1.0/gems/green_shoes-1.1.374/lib/shoes/ruby.rb:130:in `delete': Operation not permitted @ unlink_internal - /tmp/__green_shoes_temporary_file__ (Errno::EPERM)
    from /usr/local/lib/ruby/gems/2.1.0/gems/green_shoes-1.1.374/lib/shoes/ruby.rb:130:in `block in '

Please would you modify the file lib/green_shoes.rb containing the statement

TMP_PNG_FILE = File.join(Dir.tmpdir, '__green_shoes_temporary_file__')

to use a unique temporary file.

A unique temporary file can be created using the tempfile gem e.g.

require 'tempfile'

tmpfile = Tempfile.new('green_shoes_temporary_file')
puts tmpfile.path
#=> /tmp/green_shoes_temporary_file20160510-21215-1tl5lfr

Note: This bug only occurs when attempting to execute instances of a green shoes application from multiple thin clients connected to a Linux Thin Server Project (LTSP) setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant