<div dir="ltr"><div><div><div><div><div>Sorry for not replying in-line. I'd like to, but Google seems to have broken something in their accessibility, and I can't navigate the quoted text in my reply. The joys of using a screen reader.<br><br></div>To your questions: I ran strace, and I have a 1.5mb file of output. I don't pretend to understand any of it, but I was scanning backwards from the bottom, and I may have found the problem.<br><br>12875 stat("/var/cache/request-tracker4/mason_data/obj", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0<br>12875 stat("/var/cache/request-tracker4/mason_data/obj/.__obj_create_marker", 0x1bf8238) = -1 ENOENT (No such file or directory)<br>12875 open("/var/cache/request-tracker4/mason_data/obj/.__obj_create_marker", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied)<br><br></div>When i cleared my mason cache, I deleted the obj folder as directed. It looks like this process can't re-create the necessary structure inside the mason_data directory. I've made www-data the owner, but as I'm invoking this command as root, perhaps I need to do something different? I've also given /var/cache/request-tracker4/mason_data 777 permissions recursively, and that did the trick! What permissions should I set, though, to be sure it's as secure as it needs to be? Oh, I should say, the FCGI command I use is:<br><br></div>spawn-fcgi -u www-data -g www-data -a 127.0.0.1 -p 9876 /usr/share/request-tracker4/libexec/rt-server.fcgi<br><br></div>www-data is the same user used in Nginx, and I gather they have to match.<br><br></div>Anyway, back to the extension. Now that RT is running, I once again enabled the plugin and updated my settings (yes, my main configuration file updates as it should). But when I ran my FCGI command, I once again got the exit code 255 message. I deleted sason_data/obj again, but that didn't help. I reset the permissions, but that, too, did nothing. There's something odd happening with the extension enabled that doesn't seem to happen with it disabled. I'm not sure what the deal is, though. Has anyone ever seen this happen with an extension?<br><div><div><div><div><br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 23, 2016 at 11:34 AM, Matt Zagrabelny <span dir="ltr"><<a target="_blank" href="mailto:mzagrabe@d.umn.edu">mzagrabe@d.umn.edu</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Hi Alex,<br>
<span class="gmail-"><br>
On Fri, Sep 23, 2016 at 7:07 AM, Alex Hall <<a href="mailto:ahall@autodist.com">ahall@autodist.com</a>> wrote:<br>
> Strange... I get an exit code of 255 on my FCGI server with the extension<br>
> enabled.<br>
<br>
</span>Hmmm. Enabling extensions shouldn't be too complicated. There is<br>
nothing tricky going on.<br>
<span class="gmail-"><br>
If I comment out the lines in my Plugins file and update<br>
> siteconfig, I get no error code, but the server immediately quits silently.<br>
> There's nothing in any log to tell me what's going on, at least that I can<br>
> find.<br>
<br>
</span>Is there a foreground option for your FCGI server?<br>
<br>
Run it through strace?<br>
<br>
strace -f /some/path/to/your/fcgi-server<br>
<span class="gmail-"><br>
RT was working perfectly until I installed and enabled the<br>
> PriorityAsString extension, though I don't know if the install itself or the<br>
> attempt to modify my settings did it.<br>
<br>
</span>Check the actual siteconfig file after running your update-rt-siteconfig.<br>
<br>
% view /etc/request-tracker4/RT_<wbr>SiteConfig.pm<br>
<br>
and see if the PriorityAsString is commented out or not.<br>
<span class="gmail-"><br>
> Is there a way to remove an extension so I can start over?<br>
<br>
</span>You'd remove the files on disk. I'm not sure if the makefile that is<br>
generated has an uninstall target.<br>
<br>
Now that we're talking about it, did you use the RTHOME variable to<br>
set your RT libs when generating the makefile for the extension?<br>
<br>
% tar xvfz some-rt-extension.tar.gz<br>
% cd some-rt-extension<br>
% RTHOME=/usr/share/request-<wbr>tracker4/lib perl Makefile.PL<br>
<span class="gmail-"><br>
I installed using<br>
> the commands on its homepage, not CPAN, so I don't know if that caused a<br>
> problem. I don't see any uninstall/remove commands on the plugin's page, but<br>
> maybe there's a standard way using Perl commands that I don't know?<br>
<br>
</span>If there were a standard way, then it would be the makefile that gets<br>
generated would have an uninstall target.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
-m<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a target="_blank" href="mailto:ahall@autodist.com">ahall@autodist.com</a><br></div></div>
</div></div></div></div></div></div></div></div>