Reputation: 111
When I try to run play app I get the following error (this didn't happen before):
$ start 9010
[error] {file:/home/bogunovi/guesstiment/}guesstiment/compile:copy-resources: java.io.FileNotFoundException: /home/bogunovi/guesstiment/target/scala-2.9.1/classes/evolutions/default/1.sql (Permission denied)
Oops, cannot start the server?
Upvotes: 0
Views: 471
Reputation: 55798
Although other guys suggested nobody gave a solution. Most probably some of previous start was done with other user or with sudo
, so it created files which can't be read by current user, check it in terminal:
(use sudo
if required)
ls -la /home/bogunovi/guesstiment/target/scala-2.9.1/classes/evolutions/default
then you can chown
all files/folders to current user/group or just remove all generated files (ie. sudo play clean
) and start application with current user.
Optionally you can continue with starting application with sudo, it will prevent other (non sudoers) to start it.
Upvotes: 4
Reputation: 307
Maybe you don't have permission for the file. I guess user who start application is different from user who own it. This is not about play, it's about linux file permission.
http://en.wikipedia.org/wiki/File_system_permissions
Upvotes: 1