gislab-npo / gislab

GIS.lab - total reduction of deployment and maintenance costs for complete free and open source geospatial infrastructure
http://gislab-npo.github.io/gislab/
GNU General Public License v3.0
40 stars 14 forks source link

unit installation fails (apt-cache) #481

Closed landam closed 8 years ago

landam commented 8 years ago

To be sure I tried to reinstall the unit from scratch (create usb disc & run providers/gislab-unit/gislab-unit.yml and system/gislab.yml). Unfortunately gislab.yml fails with

TASK: [basic-configuration | Update apt cache] ******************************** 
failed: [gislab-unit-roudnice] => {"failed": true, "parsed": false}
invalid output was: SUDO-SUCCESS-picljavisdqcppjlbisgtznxbfixjlzp
Traceback (most recent call last):
  File "/home/ubuntu/.ansible/tmp/ansible-tmp-1453736181.61-63842394148062/apt", line 1907, in <module>
    main()
  File "/home/ubuntu/.ansible/tmp/ansible-tmp-1453736181.61-63842394148062/apt", line 507, in main
    cache.update()
  File "/usr/lib/python2.7/dist-packages/apt/deprecation.py", line 98, in deprecated_function
    return func(*args, **kwds)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 441, in update
    raise FetchFailedException(e)
apt.cache.FetchFailedException: E:GPG error: http://ubuntu.supp.name precise Release: The following signatures were invalid: NODATA 1 NODATA 2

FATAL: all hosts have already failed -- aborting
landam commented 8 years ago

With ansible 1.9.2 it fails on the same place:

TASK: [basic-configuration | Update apt cache] ******************************** 
failed: [gislab-unit-roudnice] => {"failed": true}
msg: Could not fetch updated apt files

FATAL: all hosts have already failed -- aborting
imincik commented 8 years ago

@landam, try to run apt-get update by hand. I guess it is a problem with your Ubuntu mirror.

landam commented 8 years ago

Right, it fails with the same error message. I removed from source.list all lines which starts with deb http://ubuntu.supp.name/ubuntu/ and it works. How to fix installation process? The source.list files is regenerated.

imincik commented 8 years ago

I guess it will be just temporary problem with mirror.

landam commented 8 years ago

You are right, now it works.

lfurtkevicova commented 8 years ago

I tried to reinstall the unit from scratch. Unfortunately gislab.yml fails:

...
...

TASK: [basic-configuration | Move apt cache to storage directory] ************* 
ok: [gislab-unit-fem]

TASK: [basic-configuration | Deactivate original apt cache] ******************* 
changed: [gislab-unit-fem]

TASK: [basic-configuration | Activate shared apt cache] *********************** 
changed: [gislab-unit-fem]

TASK: [basic-configuration | Update apt cache] ******************************** 
failed: [gislab-unit-fem] => {"failed": true}
msg: Could not fetch updated apt files

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/home/ludka/gislab.retry

gislab-unit-fem            : ok=55   changed=9    unreachable=0    failed=1 

My version of Ansible is 1.9.3

landam commented 8 years ago

@lfurtkevicova: the error was probably caused temporary problem with mirror. Closing.