← Back to team overview

dhis2-users team mailing list archive

Re: Ngnix Failed

 

Dear Morten & Bob,
Thanks for your help. I had finally successfully install DHIS2 using
the dhis2-tool.

Morten & Bob,
This is the beginning of a long journey: Our Malaria control program
is running DHIS2 version 2.5 and i will like to upgrade it to version
2.22; then export these information to our National server.
Can i have technical advice on how to achieve this task successfully?
Secondly i want to send the logview to see if there are any errors or
limitation of resource to achieve my goal.

On 7/26/16, gerald thomas <gerald17006@xxxxxxxxx> wrote:
> Dear Morten,
> Yes i did because Bob said i am using the old version of the tool.
> Please can you send a link where i can get the latest version of the
> tool because i want to start all over again.
>
> On 7/26/16, Morten Olav Hansen <morten@xxxxxxxxx> wrote:
>> Hi Gerald
>>
>> What I'm guessing has happened here is that you have download the dhis2
>> nginx config embedded in github (you can see the doctype there)
>>
>> Please try this url instead:
>> https://raw.githubusercontent.com/dhis2/dhis2-tools/master/dhis2-tools/dhis2-tools/usr/share/dhis2-tools/samples/nginx/dhis2
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Tue, Jul 26, 2016 at 3:17 PM, gerald thomas <gerald17006@xxxxxxxxx>
>> wrote:
>>
>>> Dear Bob,
>>>
>>> This is the error:
>>>
>>> inveneo@NMCP:~$ sudo nginx -t
>>> nginx: [emerg] unknown directive "<!DOCTYPE" in
>>> /etc/nginx/sites-enabled/dhis2:41
>>> nginx: configuration file /etc/nginx/nginx.conf test failed
>>>
>>>
>>> On 7/26/16, Bob Jolliffe <bobjolliffe@xxxxxxxxx> wrote:
>>> > What error?
>>> >
>>> > On 26 July 2016 at 10:46, gerald thomas <gerald17006@xxxxxxxxx> wrote:
>>> >> Yes Morten it returns an error stating nginx failed.
>>> >>
>>> >> On Jul 26, 2016 9:21 AM, "Morten Olav Hansen" <morten@xxxxxxxxx>
>>> >> wrote:
>>> >>>
>>> >>> If it's config related, it can also be good to run "nginx -t" which
>>> will
>>> >>> test the config and return any errors it can see
>>> >>>
>>> >>> --
>>> >>> Morten Olav Hansen
>>> >>> Senior Engineer, DHIS 2
>>> >>> University of Oslo
>>> >>> http://www.dhis2.org
>>> >>>
>>> >>> On Tue, Jul 26, 2016 at 11:15 AM, Bob Jolliffe
>>> >>> <bobjolliffe@xxxxxxxxx>
>>> >>> wrote:
>>> >>>>
>>> >>>> Hi Gerald
>>> >>>>
>>> >>>> You should not touch /etc/nginx/nginx.conf at all.  All
>>> >>>> customisation
>>> >>>> is done under sites-enabled.
>>> >>>>
>>> >>>> If your nginx is failing to start the chances are that
>>> >>>> /var/log/nginx/error.log will tell you what the problem is.
>>> >>>>
>>> >>>> Bob
>>> >>>>
>>> >>>> On 25 July 2016 at 21:08, gerald thomas <gerald17006@xxxxxxxxx>
>>> wrote:
>>> >>>> > Dear Bob,
>>> >>>> > I am still having issue with the dhis2-tool. After replacing the
>>> file
>>> >>>> > /etc/nginx/sites-enabled/dhis2
>>> >>>> > with the link you provided nginx failed to start:
>>> >>>> >
>>> >>>> > wget
>>> >>>> >
>>> https://github.com/dhis2/dhis2-tools/blob/master/dhis2-tools/dhis2-tools/usr/share/dhis2-tools/samples/nginx/dhis2
>>> >>>> >
>>> >>>> > Kindly note that i replaced all dhis with hmis on
>>> >>>> > /etc/nginx/nginx.conf file but i am still having issues.
>>> >>>> >
>>> >>>> > Please i need help. This is the only procedure I had NOT
>>> successfully
>>> >>>> > create an instance on.
>>> >>>> > --
>>> >>>> > Regards,
>>> >>>> >
>>> >>>> > Gerald
>>> >>>> >
>>> >>>> > _______________________________________________
>>> >>>> > Mailing list: https://launchpad.net/~dhis2-users
>>> >>>> > Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> >>>> > Unsubscribe : https://launchpad.net/~dhis2-users
>>> >>>> > More help   : https://help.launchpad.net/ListHelp
>>> >>>>
>>> >>>> _______________________________________________
>>> >>>> Mailing list: https://launchpad.net/~dhis2-users
>>> >>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> >>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> >>>> More help   : https://help.launchpad.net/ListHelp
>>> >>>
>>> >>>
>>> >
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Gerald
>>>
>>
>
>
> --
> Regards,
>
> Gerald
>


-- 
Regards,

Gerald


Follow ups

References