{"id":15383,"date":"2005-03-14T19:06:30","date_gmt":"2005-03-14T19:06:30","guid":{"rendered":"http:\/\/gaisan.com\/blogs\/?p=15383"},"modified":"2005-03-14T19:06:30","modified_gmt":"2005-03-14T19:06:30","slug":"re-problems-with-brians-installation-3","status":"publish","type":"post","link":"http:\/\/gaisan.com\/blogs\/?p=15383","title":{"rendered":"RE: problems with brian&#8217;s installation"},"content":{"rendered":"<p>Hi Brian,<br \/>\n&gt;<br \/>\n&gt; sorry, just incredibly busy at the moment &#8212; didn&#8217;t even get a break<br \/>\n&gt; over the weekend<br \/>\n&gt;<br \/>\n&gt;<br \/>\n&gt; On 14 Mar 2005, at 2:24 pm, Shane Michael Dempsey wrote:<br \/>\n&gt; &gt;<br \/>\n&gt; &gt; Hi Brian,<br \/>\n&gt; &gt; A few comments about Brian&#8217;s installation of our Secure Networks<br \/>\n&gt; &gt; &#8220;Camera<br \/>\n&gt; &gt; Viewer&#8221; web application.<br \/>\n&gt; &gt;<br \/>\n&gt; &gt; 1) He can&#8217;t change the access rights for the camera using the<br \/>\n&gt; &gt; administration<br \/>\n&gt; &gt; pages.<br \/>\n&gt;<br \/>\n&gt; Yes he can, and he has done. Or his engineer has. The superuser creates<br \/>\n&gt; locations, adds cameras and users to them and nominated a location<br \/>\n&gt; administrator for each one. Log in with user\/pass localadmin\/localadmin<br \/>\n&gt; and you&#8217;ll see the changes he&#8217;s made.<\/p>\n<p>OK, well he didn&#8217;t know about that himself.. He&#8217;s been trying to make those<br \/>\nchanges using the admin\/admin user which obviously enough isn&#8217;t working.<br \/>\nI&#8217;ll let him know.. <\/p>\n<p>&gt;<br \/>\n&gt; &gt; 2) In attempting to fix a problem with the current system. Don&#8217;t<br \/>\n&gt; &gt; reinstall<br \/>\n&gt; &gt; your files on the server. The ownership of the files used by the run<br \/>\n&gt; &gt; script<br \/>\n&gt; &gt; in the \/etc\/init.d dir should be user: nobody &amp; group: daemon. Your<br \/>\n&gt; &gt; script<br \/>\n&gt; &gt; copies over them with files that are owned by brian\/user..<br \/>\n&gt;<br \/>\n&gt; What script ? There is no install script. The PHP application is just a<br \/>\n&gt; tarball . It doesn&#8217;t touch any log files. If these are being changed<br \/>\n&gt; its most likely down to Brian and his prize winning engineer.<\/p>\n<p>Shit.. well I&#8217;ve changed their ownership 3 times now and somebody keeps<br \/>\nchanging them back. Getting a bit pissed off .. I think I&#8217;ll write a cron<br \/>\njob to change the ownership back every few minutes. <\/p>\n<p>&gt;<br \/>\n&gt; &gt; 5) My stream server is receiving requests for a camera with id 4. It<br \/>\n&gt; &gt; finds<br \/>\n&gt; &gt; the camera in the database but there&#8217;s an access restriction. This is<br \/>\n&gt; &gt; most<br \/>\n&gt; &gt; confusing . from reading the code in the server again I&#8217;m not sure why<br \/>\n&gt; &gt; this<br \/>\n&gt; &gt; is the case. The database has the correct session with seemingly the<br \/>\n&gt; &gt; correct<br \/>\n&gt; &gt; accdata. The user (testuser) IS authorised to use that camera. The java<br \/>\n&gt; &gt; server isn&#8217;t telling me it can&#8217;t connect to the database.. I&#8217;m sure<br \/>\n&gt; &gt; there&#8217;s<br \/>\n&gt; &gt; something wrong as we keep returning a null URL but I&#8217;m not quite sure<br \/>\n&gt; &gt; what<br \/>\n&gt; &gt; it is yet. I&#8217;d appreciate it if you could take a look.<br \/>\n&gt; &gt;<br \/>\n&gt;<br \/>\n&gt;  From the video servers log, it throws a null pointer exception. Can you<br \/>\n&gt; take a look at this running in the debugger and see where that occurs ?<br \/>\n&gt; I&#8217;m kinda pushed on time at the moment, it&#8217;ll be later on this evening<br \/>\n&gt; before I get to look at it in any detail.<br \/>\n&gt;<br \/>\nIt has thrown this ONCE. The rest of the time it&#8217;s not throwing an<br \/>\nexception, just failing to parse the accdata for some reason that I&#8217;m not<br \/>\nsure of and outputting the aforementioned SECURITY RESTRICTION.. .<br \/>\nCheck the code for HTTPRequestHandler line 163. It only throws this error<br \/>\nwhen<br \/>\n1) it can&#8217;t contact the database<br \/>\n2) it fails to parse the accdata..<br \/>\n3) the accdata says that the camera can&#8217;t be accessed..<br \/>\nHhmm.. I&#8217;ll run a few more tests on the box tonight.. <\/p>\n<p>regards, <\/p>\n<p>   &#8230;shane<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi Brian, &gt; &gt; sorry, just incredibly busy at the moment &#8212; didn&#8217;t even get a break &gt; over the weekend &gt; &gt; &gt; On 14 Mar 2005, at 2:24 pm, Shane Michael Dempsey wrote: &gt; &gt; &gt; &gt; Hi Brian, &gt; &gt; A few comments about Brian&#8217;s installation of our Secure Networks &gt; &gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/gaisan.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/15383"}],"collection":[{"href":"http:\/\/gaisan.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gaisan.com\/blogs\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gaisan.com\/blogs\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gaisan.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15383"}],"version-history":[{"count":0,"href":"http:\/\/gaisan.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/15383\/revisions"}],"wp:attachment":[{"href":"http:\/\/gaisan.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gaisan.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15383"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gaisan.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}