Hello list,<br><br>My RT project was stalled for a bit. I went to look how it's been doing... and it isn't. I haven't touched it in a while, so i'm not sure what to trace this back to. I fixed it, but i'd like to know what happened.<br>
<br>I'm seeing this in the logs:<br>---<br>May 14 09:39:29 data postfix/local[4855]: 0C17C4560A4: to=<<a href="mailto:rt@rt.phillycarshare.org">rt@rt.phillycarshare.org</a>>, relay=local, delay=0.12, delays=0.02/0/0/0.1, dsn=4.3.0, status=deferred (temporary failure. Command output: RT server error. The RT server which handled your email did not behave as expected. It said: mkdir /opt/rt3/var/mason_data/obj/2098779359: Permission denied at /usr/local/share/perl/5.8.8/HTML/Mason/Compiler/ToObject.pm line 107 )<br>
---<br><br>ToObject.pm has this code block where line 107 appears, as marked:<br><br> if (defined $file && !-f $file) {<br> my ($dirname) = dirname($file);<br> if (!-d $dirname) {<br> unlink($dirname) if (-e _);<br>
LINE 107 -> push @newfiles, mkpath($dirname, 0, 0775);<br> system_error "Couldn't create directory $dirname: $!"<br> unless -d $dirname;<br> }<br> rmtree($file) if (-d $file);<br>
}<br><br>So, ok, it's lost directory permissions somehow. While i wasn't paying attention to it. How??<br>How can i figure out what it's trying to write to? Also, i noticed that the "couldn't create!" error is NOT appearing in the logs.<br>
<br> > mkdir /opt/rt3/var/mason_data/obj/2098779359: Permission denied<br><br>in mason_data/ cache and etc are both owned by www-data, but obj is owned by root and in the root group. I'm assuming it must also be accessible by the webserver, but how could this have changed? chowning obj/ back to www-data solved the issue, but i'd like to avoid whatever caused it.<br>
<br>Thanks,<br>Rob<br clear="all"><br>-- <br>/chown -R us:us /yourbase<br><br>