Thanks Branden! It's sorted now.
Happy holidays. On 19 December 2013 14:10, Branden Visser <mrvis...@gmail.com> wrote: > Hi Kabelo, sorry we didn't catch this before but your 2nd PP node > shouldn't have "globalAdminPort" changed, as it only determines which > port the global admin listens on, it doesn't determine which port the > PP will contact for processing previews. > > Can you flip that port back to 2000 and see how the PP nodes work? I'm > assuming those PP nodes have an /etc/hosts mapping for "admin.oae.com" > that points to the machine that is running the Nginx server, correct? > > Thanks, > Branden > > On Thu, Dec 19, 2013 at 3:46 AM, Kabelo Letsoalo > <kab...@opencollab.co.za> wrote: > > Greetings all. > > > > Changed the 2nd PP node config.servers.serverInternalAddress from null to > > admin.oae.com. > > Changed config.servers.globalAdminPort to 80 as per Simon's suggestion. > > > > Now the 2nd PP runs without error (console returns "preview processing > done" > > for 2nd PP node). > > But I'm experiencing problems whenever the 2nd PP node does preview > > proccesing. The request for the preview image always fails and inserts > > default document image: > > > > GET > > > http://tenant.oae.co.za/api/download/signed?uri=local:c/tenant/ey/SW/1V/hj/eySW1VhjI/previews/rev-tenant-x1L1bI2oI/wide.png&signature=b15710e71a06e8a70085eaa9059579a366be575a&expires=1387440900000 > > 404 (Not Found) > > > > My config.js for 2nd node: > > > > config.servers = { > > 'globalAdminAlias': 'admin', > > 'globalAdminHost': 'admin.oae.com', > > 'globalAdminPort': 80, > > 'serverInternalAddress': 'admin.oae.com', > > 'tenantPort': 2001, > > 'useHttps': false, > > 'strictHttps': true > > }; > > > > My config.js for 1st node(running on same server as nginx): > > > > config.servers = { > > 'globalAdminAlias': 'admin', > > 'globalAdminHost': 'admin.oae.com', > > 'globalAdminPort': 2000, > > 'serverInternalAddress': null, > > 'tenantPort': 2001, > > 'useHttps': false, > > 'strictHttps': true > > }; > > > > The possible cause for this? > > > > Thanks. > > > > > > > > On 5 December 2013 17:18, Kabelo Letsoalo <kab...@opencollab.co.za> > wrote: > >> > >> Thanks Simon. > >> > >> Connection works fine, ping and curl run without a problem (got back the > >> JSON with anonymous user) > >> > >> > >> On 5 December 2013 13:52, Simon Gaeremynck <gaeremyn...@gmail.com> > wrote: > >>> > >>> Hi Kabelo, > >>> > >>> That looks like a networking issue? > >>> Can the second PP node resolve the globalAdminHost DNS name? > >>> ping globalAdminHost > >>> > >>> If you’re running in EC2, can you reach > >>> http://globalAdminHost:globalAdminPort ? You might need to tweak the > >>> security group settings. > >>> You can test it by doing a curl request like so: > >>> curl -v http://globalAdminHost:globalAdminPort/api/me > >>> Replace globalAdminHost and globalAdminPort by their respective config > >>> values obviously. > >>> It should respond with some JSON telling you’re an anonymous user on > the > >>> global admin server > >>> > >>> > >>> Small tip: > >>> It’s usually easiest if you point your PP to the nginx endpoint, that > way > >>> nginx will distribute the load generated by the PP across all app > servers. > >>> In that case the globalAdminPort should be 80. > >>> > >>> Simon > >>> > >>> > >>> On 5 Dec 2013, at 08:26, Kabelo Letsoalo <kab...@opencollab.co.za> > wrote: > >>> > >>> Thanks for the help. > >>> > >>> I have two PP nodes. My 2nd PP node is running on a different server > (not > >>> the same server as where my globalAdminHost is reachable by users). > >>> > >>> How do I configure the 2nd PP node? Pointing globalAdminHost to where > the > >>> admin UI is returns error: > >>> > >>> We could not log in on the tenant. The status of the content item will > >>> not be set. (contentId=c:tenant:x1KwWPQxI) > >>> err: { > >>> "code": 500, > >>> "msg": "Something went wrong trying to contact the server:\nread > >>> ECONNRESET\nError: read ECONNRESET\n at errnoException > (net.js:884:11)\n > >>> at TCP.onread (net.js:539:19)" > >>> } > >>> > >>> Thanks for the help. > >>> > >>> > >>> On 4 December 2013 10:36, Simon Gaeremynck <gaeremyn...@gmail.com> > wrote: > >>>> > >>>> Hi Kabelo, > >>>> > >>>> That looks like the PP can't connect to an app server. > >>>> > >>>> Make sure you've configured the `config.servers` block appropriately > >>>> (especially the globalAdminHost and globalAdminPort fields). > >>>> Also ensure that the `credentials` block in the `config.previews` > block > >>>> is appropriately filled in. > >>>> > >>>> Kind regards, > >>>> > >>>> Simon > >>>> > >>>> On 4 Dec 2013, at 08:12, Kabelo Letsoalo <kab...@opencollab.co.za> > >>>> wrote: > >>>> > >>>> > Got an unexpected error from the REST api. > >>>> > Error: connect ECONNREFUSED > >>>> > at errnoException (net.js:884:11) > >>>> > at Object.afterConnect [as oncomplete] (net.js:875:19) > >>>> > [2013-12-04T07:40:48.833Z] ERROR: oae-preview-processor/2336 on > >>>> > server: We could not get a signed token for the tenant. The status > of the > >>>> > content item will not be set. > (contentId=c:businesscollege:gkT_ovLJ8) > >>>> > err: { > >>>> > "code": 500, > >>>> > "msg": "Something went wrong trying to contact the > >>>> > server:\nconnect ECONNREFUSED\nError: connect ECONNREFUSED\n at > >>>> > errnoException (net.js:884:11)\n at Object.afterConnect [as > oncomplete] > >>>> > (net.js:875:19)" > >>>> > } > >>>> > > >>>> > > >>>> > On 4 December 2013 10:09, Kabelo Letsoalo <kab...@opencollab.co.za> > >>>> > wrote: > >>>> > Hello. > >>>> > > >>>> > I'm getting an error from the preview processor reads: > >>>> > > >>>> > Got an unexpected error from the REST api. > >>>> > err: { > >>>> > "code": 401, > >>>> > "msg": "Unauthorized" > >>>> > } > >>>> > > >>>> > Seems to be a known issue. > >>>> > > >>>> > Appreciate the help! > >>>> > > >>>> > > >>>> > See OpenCollab email disclaimer at > >>>> > > http://www.opencollab.co.za/email-disclaimer_______________________________________________ > >>>> > oae-dev mailing list > >>>> > oae-dev@collab.sakaiproject.org > >>>> > http://collab.sakaiproject.org/mailman/listinfo/oae-dev > >>>> > >>> > >>> > >>> ________________________________ > >>> See OpenCollab email disclaimer at > >>> http://www.opencollab.co.za/email-disclaimer > >>> > >>> > >> > > > > > > > > -- > > Kabelo Letsoalo > > Junior Developer > > opencollab > > Tel: +27 21 970 4000 | Fax: +27 21 914 3098 > > Web: www.opencollab.co.za > > > > > > ________________________________ > > See OpenCollab email disclaimer at > > http://www.opencollab.co.za/email-disclaimer > > > > _______________________________________________ > > oae-dev mailing list > > oae-dev@collab.sakaiproject.org > > http://collab.sakaiproject.org/mailman/listinfo/oae-dev > > > -- Kabelo Letsoalo Junior Developer opencollab Tel: +27 21 970 4000 | Fax: +27 21 914 3098 Web: www.opencollab.co.za -- ------------------------------ See OpenCollab email disclaimer at http://www.opencollab.co.za/email-disclaimer
_______________________________________________ oae-dev mailing list oae-dev@collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/oae-dev