oaeproject / Hilary

Open Academic Environment (OAE) Back-End
http://www.oaeproject.org
Educational Community License v2.0
106 stars 96 forks source link

ERROR: EACCES, unlink 'usr/bin' #823

Closed souske closed 10 years ago

souske commented 10 years ago

Hi guys, I was totally messed up on this problem. As i start up on this server i encounter this issue on : ERROR: oae-cleaner/12635 on server: Deleting expired temporary file. ERROR: oae-cleaner/12635 on server: could not delete an expired temporary file. hilary-putty.

itried to sudo chown -R uadmin /usr/bin/ knowing that it will solve the issue yet it deleted some directory files in my ubuntu server. and i think i need to start it all over again from the start. hope that you can help me on this. I was new in this things. thanks in advance.

mrvisser commented 10 years ago

@souske What is your config.files.tmpDir configuration key set to? Whatever that is set to, OAE will manage that directory and ensure files that have been around for a long time are eventually removed. It should not be set to a non-temporary directory.

mrvisser commented 10 years ago

yet it deleted some directory files in my ubuntu server. and i think i need to start it all over again from the start

Yes it appears your temporary files directory was set to /usr/bin and so all files in that directory were flagged as expired and deleted. You'll definitely need to start over on a brand new Ubuntu VM.

souske commented 10 years ago

Hi can you give me some example of config.files.tmp.directory? I really confused about that it should be not followed by slashes I think.do I need to create a specific directory or what? Im just also using putty and newbie in ubuntu thats why i raised a lot of questions.thanks in advanced. On Mar 8, 2014 10:57 AM, "Branden Visser" notifications@github.com wrote:

@souske https://github.com/souske What is your config.files.tmpDirconfiguration key set to? Whatever that is set to, OAE will manage that directory and ensure files that have been around for a long time are eventually removed. It should not be set to a non-temporary directory.

Reply to this email directly or view it on GitHubhttps://github.com/oaeproject/Hilary/issues/823#issuecomment-37087165 .

mrvisser commented 10 years ago

@souske if you leave them as the default it should be fine. What did you change it to?

The properties are uploadDir and tmpDir in this config object in config.js: https://github.com/oaeproject/Hilary/blob/master/config.js#L99

souske commented 10 years ago

i tried to create a directory to my server coz i dont have that kind of directory in my server..but based on what you have said, i can leave it as ease..thank you very much for your help. hope that you can still answer my question after i re installed it on monday.

On Sat, Mar 8, 2014 at 8:33 PM, Branden Visser notifications@github.comwrote:

@souske https://github.com/souske if you leave them as the default it should be fine. What did you change it to?

The properties are uploadDir and tmpDir in this config object in config.js: https://github.com/oaeproject/Hilary/blob/master/config.js#L99

Reply to this email directly or view it on GitHubhttps://github.com/oaeproject/Hilary/issues/823#issuecomment-37096472 .

mrvisser commented 10 years ago

I'm still not sure what you've set the temporary directory to, I'm guessing you set it to /usr/bin. That said I'll close this ticket and if it happens again even when the value is the default please re-open the ticket.