[GeoNode-users] installing geonode 2.5.6

Angelos Tzotsos gcpp.kalxas at gmail.com
Fri Jan 6 06:33:23 PST 2017


Hi,

Installation issues related with migrations are now solved.
Please make sure to reload your galaxy role.

Cheers,
Angelos

On 01/06/2017 02:11 PM, Angelos Tzotsos wrote:
> Hi Dave,
>
> Thanks for the feedback, we did some changes last night that have 
> caused this migration issue, we are working to fix them.
>
> Cheers,
> Angelos
>
> On 01/06/2017 09:57 AM, Dave Kennewell wrote:
>> Hi Angelos,
>>
>> I installed ansible 1.9.4 on Xenial. It wasn't trivial, so I'll share my
>> notes here for others:
>>
>> First I tried this:
>>
>> $ sudo apt-get install software-properties-common
>> $ sudo apt-add-repository ppa:ansible/ansible-1.9
>> $ sudo apt-get update
>> $ sudo apt-get install ansible
>>
>> This installed version 2.0.0.2 (... go figure). I ran the latest
>> geonode-ansible play anyway (even though it wasn't an ansible version
>> 1.9.x), and got an error at
>> https://github.com/GeoNode/ansible-geonode/blob/master/tasks/geoserver.yml#L57 
>>
>>
>> Not sure if this is to do with the latest commit (last night it 
>> seems) or
>> if it's still to do with the ansible 2.0.x install... but we don't 
>> want to
>> use 2.0.x anyway, so I didn't look into it too much.
>>
>> So I tried again to install 1.9.x, this time using pip.
>>
>> sudo apt-get install python-pip
>> sudo pip install --upgrade pip
>> sudo pip install ansible==1.9.6
>>
>> This throws an error to do with a crypt something something package 
>> (sorry
>> I didn't copy the message). I'm guessing the dependencies aren't 
>> right for
>> xenial. So I tried again to install 1.9.4 using deb packages (roughly 
>> based
>> on https://github.com/ansible/ansible/issues/13898):
>>
>> # Make sure we are up to date
>> sudo apt-get update
>>
>> # Download working ansible deb package
>> wget 
>> https://launchpad.net/~ansible/+archive/ubuntu/ansible-1.9/+files/ansible_1.9.4-1ppa~trusty_all.deb
>> -O /tmp/ansible.deb
>>
>> # Manually install deps
>> sudo apt-get install -y \
>>    python-jinja2 \
>>    python-yaml \
>>    python-paramiko \
>>    python-httplib2 \
>>    python-crypto sshpass
>>
>> # python-support is required too, but doesn't install from apt on
>> xenial, so use 
>> (http://askubuntu.com/questions/766169/why-no-more-python-support-in-16-04):
>>
>> wget 
>> http://launchpadlibrarian.net/109052632/python-support_1.0.15_all.deb
>> -O /tmp/python-support_1.0.15_all.deb
>>
>> sudo dpkg -i /tmp/python-support_1.0.15_all.deb
>>
>> # Install Package sudo dpkg -i /tmp/ansible.deb # Remove downloaded
>> packages sudo rm -f /tmp/ansible.deb /tmp/python-support_1.0.15_all.deb
>>
>>
>> This worked (yay).
>>
>> I'm running the playbook by git cloning from
>> https://github.com/GeoNode/ansible-geonode into a 
>> "roles/ansible-geonode"
>> directory under my playbook.yml file. I'm at commit 1e6d8f9.
>>
>> playbook.yml now looks like this:
>>
>> - hosts: webserver
>>    remote_user: ubuntu
>>    gather_facts: no
>>    pre_tasks:
>>    - name: 'install python2'
>>      raw: apt -y update && apt install -y python-minimal
>>      sudo: yes
>>    - setup:
>>    vars:
>>      app_name: my_test_app
>>      github_user: GeoNode
>>    roles:
>>      - ansible-geonode
>>
>> Under this configuration, the "makemigrations" command works, but we now
>> get stuck on "syncdb", error log is here:
>>
>> https://gist.github.com/davekennewell/130f10d6b45a88e2d1bfa9b8dcd065ad
>>
>> I reran the process with the commit I began with 2 days ago (ab17551)and
>> received the same error message.
>>
>> I'm a bit confused as to why the playbook would run makemigrations 
>> (Django
>> 1.8) and then syncdb (Django 1.6)? Should it not be makemigrations then
>> migrate?
>>
>> I get the same error if I run the playbook from ansible-galaxy.
>>
>> thanks for the help!
>>
>> cheers
>> Dave
>>
>>
>>
>>
>>
>>
>> On 6 January 2017 at 04:07, Angelos Tzotsos [via OSGeo.org] <
>> ml-node+s1560n5302236h31 at n6.nabble.com> wrote:
>>
>>> Hi Dave,
>>>
>>> It looks like this error is specific to ansible 2.x
>>> The ansible role works fine with ansible 1.9.x for now.
>>> We will try to fix this issue soon.
>>>
>>> Thanks,
>>> Angelos
>>>
>>> On 01/05/2017 01:16 PM, Dave Kennewell wrote:
>>>
>>> Hi Angelos,
>>>
>>> Thanks for this - I've tried the geonode-ansible installer. It seems 
>>> to be
>>> working well, until I get to the "makemigrations" command, when I 
>>> get this
>>> permissions error:
>>>
>>>
>>> [image: Inline images 1]
>>>
>>>
>>> If I ssh into the server, activate the venv and execute the 
>>> makemigrations
>>> command manually, it works fine... but the rest of the playbook 
>>> won't run.
>>>
>>> My playbook looks like this
>>>
>>> - hosts: webserver
>>>
>>>    remote_user: ubuntu
>>>
>>>    vars:
>>>      app_name: my_test_app
>>>      github_user: GeoNode
>>>
>>>    roles:
>>>      - geonode
>>>
>>>
>>> Both my ansible controlling machine & the geonode server are running
>>> Xenial.
>>>
>>> It's my first time using ansible, so I might be doing something not 
>>> quite
>>> right, or it might the the scripts?
>>>
>>> Thanks
>>> Dave Kennewell
>>>
>>> On 3 January 2017 at 18:29, Angelos Tzotsos [via OSGeo.org] <[hidden 
>>> email] <http:///user/SendEmail.jtp?type=node&node=5302236&i=0>> wrote:
>>>
>>>
>>> Hi all,
>>>
>>> I just completed updating the ansible installer for Ubuntu 
>>> Xenial:https://github.com/GeoNode/ansible-geonode
>>> Please test and let me know how this works out.
>>>
>>> I am going to work on the ppa issues next.
>>>
>>> Best,
>>> Angelos
>>>
>>> On 01/03/2017 10:01 AM, David Kennewell wrote:
>>>
>>> Ah, thanks Simone... I had been trying on Ubuntu 14.04 and not getting
>>> anywhere with the /testing repo.
>>>
>>> On 16.04 I'm now getting the same packaging problems as Jeff 
>>> mentioned in
>>> his recent email (subject: "GeoNode 2.5.6 is out"). But at least I'm 
>>> now on
>>> the same page as everyone else :)
>>>
>>> (and apologies for any cross-posting with this reply, I've been getting
>>> confused with my email lists)
>>>
>>>
>>> David Kennewell
>>> Water Resources Engineer
>>> Hydrata.com
>>> +971 55 409 7378[hidden email] 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=0> 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=0>
>>>
>>>
>>> On Tue, Jan 3, 2017 at 11:08 AM, Simone Dalmasso [hidden email] 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=1> 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=1>
>>> wrote:
>>>
>>>
>>> Hi, the fastest is to install geonode on xenial using the normal 
>>> geonode
>>> installation guide but just use:
>>>
>>> sudo add-apt-repository ppa:geonode/testing
>>>
>>> instead of
>>>
>>> sudo add-apt-repository ppa:geonode/stable.
>>>
>>> hope this helps
>>>
>>> 2017-01-03 7:38 GMT+01:00 David Kennewell [hidden email] 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=2> 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=2>:
>>>
>>>
>>> Hi list,
>>>
>>> I'd like to try out the new react viewer, and use django 1.8, not 1.6.
>>>
>>> As of today, what's the easiest way to get this up and running on a 
>>> clean
>>> server?
>>>
>>> regards
>>> Dave
>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list[hidden email] 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=3> 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=3>http://lists.osgeo.org/mailman/listinfo/geonode-users 
>>>
>>>
>>>   --
>>> Simone
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list[hidden email] 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=4> 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=4>http://lists.osgeo.org/mailman/listinfo/geonode-users 
>>>
>>>
>>>
>>>
>>> -- 
>>> Angelos Tzotsos, PhD
>>> OSGeo Charter Memberhttp://users.ntua.gr/tzotsos
>>>
>>>
>>> _______________________________________________
>>> geonode-devel mailing list
>>> [hidden email] 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=5> 
>>> <http:///user/SendEmail.jtp?type=node&node=5301842&i=5>http://lists.osgeo.org/mailman/listinfo/geonode-devel 
>>>
>>>
>>>
>>> ------------------------------
>>> If you reply to this email, your message will be added to the 
>>> discussion
>>> below:http://osgeo-org.1560.x6.nabble.com/Re-GeoNode-users-install
>>> ing-geonode-2-5-6-tp5301842.html
>>> To unsubscribe from GeoNode devel, click here<
>>> .
>>> NAML<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> 
>>> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> 
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list[hidden email] 
>>> <http:///user/SendEmail.jtp?type=node&node=5302236&i=1>http://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>>
>>> -- 
>>> Angelos Tzotsos, PhD
>>> OSGeo Charter Memberhttp://users.ntua.gr/tzotsos
>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5302236&i=2>
>>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>> ------------------------------
>>> If you reply to this email, your message will be added to the 
>>> discussion
>>> below:
>>> http://osgeo-org.1560.x6.nabble.com/installing-geonode-
>>> 2-5-6-tp5301801p5302236.html
>>> To unsubscribe from GeoNode users, click here
>>> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5185389&code=ZGF2ZWtlbm5ld2VsbEBnbWFpbC5jb218NTE4NTM4OXwtOTI1NjEyMTk0> 
>>>
>>> .
>>> NAML
>>> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> 
>>>
>>>
>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>



-- 
Angelos Tzotsos, PhD
OSGeo Charter Member
http://users.ntua.gr/tzotsos



More information about the geonode-users mailing list