Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Error update system from ssh console (Release 1.2.0)

Hello Colleagues,

I have got next error during update process:

root@storage0:/# apt-get update

......

Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Err:1 http://archive.ubuntu.com/ubuntu xenial InReleasen't create tempfiles for splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_xenial_InRelease
Could not execute 'apt-key' to verify signature (is gnupg installed?)
......

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Could not execute 'apt-key' to verify signature (is gnupg installed?)
W: Some index files failed to download. They have been ignored, or old ones used instead.

root@storage0:/# pwd
/
root@storage0:/# ls -la
......
drwxr-xr-x   2 root root  4096 Jul 19  2016 srv
dr-xr-xr-x  12 root root     0 Mar 15 07:51 sys
drwxr-xr-x   6 root root  4096 Mar 16 18:25 tmp
drwxr-xr-x  10 root root  4096 Mar 15 09:49 usr
drwxr-xr-x  13 root root  4096 Mar 15 09:50 var

root@storage0:/# chmod -v 1777 /tmp
chmod: changing permissions of '/tmp': Operation not permitted
failed to change mode of '/tmp' from 0755 (rwxr-xr-x) to 1777 (rwxrwxrwt)
root@storage0:/#

Thanks for reporting this. we will add it to 1.2.1.

For now you can fix the apt-get issues by running

chmod 1777 /tmp

When installing extra packages, just make sure you do not install Ubuntu kernel updates or Ceph updates, since we use custom versions of these.

We had the 1.2.1 release build already being QAed awaiting release,  this will delay it by  1 or 2 days 🙂

Thank you again  !

update: i just released you too tried chmod 1777 /tmp

but it works here on several machines , i am surprised you get a permission not permitted...are you root ?

can you try it on the other 2 machines ?

 

 

Hi,

Problem is only in first monitoring node!
In other cluster nodes workaround has been deployed successfully.

root@storage2:/# chmod -v 1777 /tmp

mode of '/tmp' changed from 0755 (rwxr-xr-x) to 1777 (rwxrwxrwt)

root@storage2:/#

it does work on the first node with me.

do you get the same error as before or something else ? can you try rebooting node ?

Hello guys,

Today is very nice day, I have workaround for this issue:

root@storage0:/# lsattr /

......

-----a----I--e-- /tmp
......

root@storage0:/# chattr -a /tmp

root@storage0:/# chmod -v 1777 /tmp

mode of '/tmp' changed from 0755 (rwxr-xr-x) to 1777 (rwxrwxrwt)

root@storage0:/# ls -la

......

dr-xr-xr-x  12 root root     0 Mar 17 17:12 sys
drwxrwxrwt  13 root root 20480 Mar 18 17:35 tmp
drwxr-xr-x  10 root root  4096 Mar 15 09:49 usr
......

AND

root@storage0:/# apt-get update

Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [496 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [198 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7176 B]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2396 B]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [440 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [168 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [8664 B]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [4028 B]
Fetched 13.7 MB in 4s (3366 kB/s)
Reading package lists... Done
root@storage0:/#

WOW! Thank you for ALL!

the permission is fixed in 1.2.1 release

🙂