Will not update from 101.2 to 101.3

Ok, I finally fixed it.
For reference, I had to comment api_password: line.
I was not using it, but it was still there.
I read in the changelog that api_password was not supported anymore, but I didn’t know that it could block the upgrade process.
Now I’m on 0.101.3.

Where did you comment out that line from?

If you had API password set up under http: in your config, you either have to remove it or move it under auth_providers (which is under homeassistant:) before updating to 0.101.

But it’s going to be removed entirely sometime in the future, so moving it under auth_providers isn’t the best idea anyway.

Ok, thanks…I didn’t have that set.

configuration.yaml, HTTP section.

Thank you.

I have removed the api_password: but it’s still doing a rollback after 10 minutes.
Trying to upgrade from 0.99.3 to 0.101.3.

Any other suggestions?

Edit: also had to remove trusted_networks :slight_smile:

I also ran into the same problem yesterday when I tried to update.
First it didn’t update from 100.x to 101.3 at all but the second time when I tried to update the HA never came up again. I never where able to connect to the HA frontend.
I’m running Hassio in a docker on a Ubuntu machine.
I can see from the Portainer that the Homeassistant and the Hassio supervision containers are running.
But I don’t have any Samba connection to the Hassio any more :sweat:.
Is there any other way to change the configuration.yaml file if you running Hassio in a container?
I can see in the Portainer that I can open a console window but how do I run the Hassio commands, wrong promt!
OR
Is it possible to restore a snapshot in any otherway in Portainer?

How do I get Hassio up and running again?

Thanks for the help

I have exactly the same, trying to upgrade to 102.2 from 101.2.

Running hass.io and trying to upgrade via UI goes round and round, tries to restart and eventually requires a hard reboot to get it up and running again, no access via SSH etc.

Tried to run upgrade command using terminal and get the following log

➜  ~ pip3 install --upgrade homeassistant   
                                                                                                  
Collecting homeassistant                                                                                                                      
  Downloading https://files.pythonhosted.org/packages/0a/4b/614613ac7fa62e80008dbbaa384d5f61e1b19616464b87f4cb91a186e527/homeassistant-0.102.2
-py3-none-any.whl (5.8MB)                                                                                                                     
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5.8MB 4.9MB/s  
                                                                                       
Requirement already satisfied, skipping upgrade: async-timeout==3.0.1 in /usr/lib/python3.7/site-packages (from homeassistant) (3.0.1)        
Requirement already satisfied, skipping upgrade: pip>=8.0.3 in /usr/lib/python3.7/site-packages (from homeassistant) (19.2.3) 
                
Collecting voluptuous==0.11.7 (from homeassistant)                                                                                            
  Downloading https://files.pythonhosted.org/packages/24/3b/fe531688c0d9e057fccc0bc9430c0a3d4b90e0d2f015326e659c2944e328/voluptuous-0.11.7.tar
.gz (45kB)                                                                                                                                    
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 51kB 2.0MB/s                                                                                          
Requirement already satisfied, skipping upgrade: pyyaml==5.1.2 in /usr/lib/python3.7/site-packages (from homeassistant) (5.1.2)
               
Collecting requests==2.22.0 (from homeassistant)                                                                                              
  Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.p
y3-none-any.whl (57kB)                                                                                                                        
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 61kB 230kB/s     
                                                                                     
Collecting voluptuous-serialize==2.3.0 (from homeassistant)                                                                                   
  Downloading https://files.pythonhosted.org/packages/9c/b0/4df1ac9857141ff20d58a97afa66a128f8dd45b80116204e0c4021a4b9a5/voluptuous-serialize-
2.3.0.tar.gz                                                                                                                                  
Collecting importlib-metadata==0.23 (from homeassistant)                                                                                      
  Downloading https://files.pythonhosted.org/packages/f6/d2/40b3fa882147719744e6aa50ac39cf7a22a913cbcba86a0371176c425a3b/importlib_metadata-0.
23-py2.py3-none-any.whl 
                                                                                                                      
Requirement already satisfied, skipping upgrade: async-timeout==3.0.1 in /usr/lib/python3.7/site-packages (from homeassistant) (3.0.1[215/236]
Requirement already satisfied, skipping upgrade: pip>=8.0.3 in /usr/lib/python3.7/site-packages (from homeassistant) (19.2.3)  
               
Collecting voluptuous==0.11.7 (from homeassistant)                                                                                            
  Downloading https://files.pythonhosted.org/packages/24/3b/fe531688c0d9e057fccc0bc9430c0a3d4b90e0d2f015326e659c2944e328/voluptuous-0.11.7.ta$
.gz (45kB)                                                                                                                                    
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 51kB 2.0MB/s                                                                                          
Requirement already satisfied, skipping upgrade: pyyaml==5.1.2 in /usr/lib/python3.7/site-packages (from homeassistant) (5.1.2)               
Collecting requests==2.22.0 (from homeassistant)                                                                                              
  Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.$
y3-none-any.whl (57kB)                                                                                                                        
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 61kB 230kB/s                                                                                          
Collecting voluptuous-serialize==2.3.0 (from homeassistant)                                                                                   
  Downloading https://files.pythonhosted.org/packages/9c/b0/4df1ac9857141ff20d58a97afa66a128f8dd45b80116204e0c4021a4b9a5/voluptuous-serialize$
2.3.0.tar.gz                                                                                                                                  
Collecting importlib-metadata==0.23 (from homeassistant)                                                                                      
  Downloading https://files.pythonhosted.org/packages/f6/d2/40b3fa882147719744e6aa50ac39cf7a22a913cbcba86a0371176c425a3b/importlib_metadata-0$
23-py2.py3-none-any.whl                                                                                                                       
Collecting aiohttp==3.6.1 (from homeassistant)                                                                                                
  Downloading https://files.pythonhosted.org/packages/10/28/ab9decdf95f0b2babe509f264ca531fd6c910615e0b4be5f240dba500832/aiohttp-3.6.1.tar.gz 
(1.1MB)                                                                                                                                       
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.1MB 1.7MB/s                                                                                         
  Installing build dependencies ... done                                                                                                      
  Getting requirements to build wheel ... done                                                                                                
    Preparing wheel metadata ... done                                                                                                         
Collecting bcrypt==3.1.7 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/fa/aa/025a3ab62469b5167bc397837c9ffc486c42a97ef12ceaa6699d8f5a5416/bcrypt-3.1.7.tar.gz (
42kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 51kB 2.5MB/s 

  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.7 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-f34y728r/
overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel 'cffi>=1.1;
 python_implementation != '"'"'PyPy'"'"''
       cwd: None
  Complete output (69 lines):
  Collecting setuptools>=40.8.0
    Using cached https://files.pythonhosted.org/packages/9e/d5/444a443d890f09fc1ca1a2c3c9fc7e84cb148177b05ac94fe5084e3d9abb/setuptools-42.0.1-
py2.py3-none-any.whl                                                                                                                  
  Collecting wheel                                                                                                                   
    Using cached https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.p
y3-none-any.whl
  Collecting cffi>=1.1
    Downloading https://files.pythonhosted.org/packages/2d/bf/960e5a422db3ac1a5e612cb35ca436c3fc985ed4b7ed13a1b4879006f450/cffi-1.13.2.tar.gz 
(460kB)
  Collecting pycparser (from cffi>=1.1)
    Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.
gz (158kB)
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for pycparser: started
      Running setup.py install for pycparser: finished with status 'done'
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ui8qt3m7/cffi/setup.py'"'"'; _
_file__='"'"'/tmp/pip-install-ui8qt3m7/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'
"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-bm7vuryf/install-record.txt --si
ngle-version-externally-managed --prefix /tmp/pip-build-env-f34y728r/overlay --compile
           cwd: /tmp/pip-install-ui8qt3m7/cffi/
      Complete output (48 lines):
      unable to execute 'gcc': No such file or directory
      unable to execute 'gcc': No such file or directory
  
          No working compiler found, or bogus compiler options passed to
          the compiler from Python's standard "distutils" module.  See
          the error messages above.  Likely, the problem is not related 
          to CFFI but generic to the setup.py of any Python package that
          tries to compile C code.  (Hints: on OS/X 10.8, for errors about
          -mno-fused-madd see http://stackoverflow.com/questions/22313407/
          Otherwise, see https://wiki.python.org/moin/CompLangPython or 
          the IRC channel #python on irc.freenode.net.)
  
          Trying to continue anyway.  If you are trying to install CFFI from
          a build done in a different context, you can ignore this warning.
  
      running install
      running build
      running build_py                                                                                                               
      creating build
      creating build/lib.linux-armv7l-3.7
      creating build/lib.linux-armv7l-3.7/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi 
      copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi 
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv7l-3.7
      creating build/temp.linux-armv7l-3.7/c
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-f
rame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o 
build/temp.linux-armv7l-3.7/c/_cffi_backend.o
      unable to execute 'gcc': No such file or directory
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-insta
ll-ui8qt3m7/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ui8qt3m7/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__)
;code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record
-bm7vuryf/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-f34y728r/overlay --compile Check the logs for fu$
 l command output.                                                                                                                    
  WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.7 /usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --
prefix /tmp/pip-build-env-f34y728r/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'se
tuptools>=40.8.0' wheel 'cffi>=1.1; python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

No clues where to turn now!

SSH, SCP, SFTP…or you could fix your samba…you should run samba on the host and not the add-on.

you should never try to install/update a running docker image.

Fix THIS

flamingm0e, can I add samba to host now when I not have access to the Hassio frontend working?
Can I restore the Hassio from the Portainer?

Working on the host has nothing to do with Hassio. You don’t need hassio at all to add samba to the host.

No. Portainer is a docker management tool, NOT a hassio tool. To restore snapshots you need hassio, so either get into the hassio supervisor docker and run the restore commands, or just fix your configuration and boot your hassio like normal.

If I go into hassio supervision docker and like to restore Hassio. How do I do that?

Have I understod it correct?
The configuration files are stored outside the docker.
I just need to know where?

I think the problem has someting do with the auth_providers.
Maybe, I can just remove this part from the configuration.yaml

I would imagine that somewhere on the HA website are commands which are useful for hassio. I don’t use hassio, but I know there are commands available. You’re going to have to put in some effort to find those commands.

If you read the installation script you ran to install hassio, you would see the files are in /usr/share/hassio/homeassistant on your host.

Yeah, that’s probably the case, which is why it’s easier to fix the config (hint: read the log to see why it fails to start), than it is to try to restore a snapshot only to have it all happen again when you try to update.

SSH works normally, it’s only when I try to upgrade from UI it restarts and HA never upgrades and restarts properly.

Can’t find anything in the log and haven’t got API password in http: settings like others have said as is deprecated in latest release.

Fixes by doing a hard reset but not ideal on Raspberry Pi w/ SD card as can corrupt.

May sit this update out and try when new release is out

flamingm0e, I tried yesterday to fix the problem but didn’t got all the way.
I installed Samba on the host machine. But I could not connect from my window machine to the Ubuntu machine (host), access denied.
Both the machines are on the same network.
Maybe something wrong with the configuration of Samba.

I also tried to change my configuration.yaml file with nano.
I removed the http:
And add following under homeassistant section.

auth_providers:
    - type: homeassistant
    - type: trusted_networks
      trusted_networks:
        - 192.168.2.0/24
        - 172.30.33.0/24

But it still not work!
Should I do some other changes in configuration.yaml?
Should I still have the api_password under auth_providers ?

You need to remove the trusted networks…

Should I have this part under http left?
Or should I remove that to?

http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

It doesn’t matter what I do the Hassio will not start.
Is there a good syntax check program that I can use.
Visaul studio code?
It must be someting wrong with my configuration.yaml file.

If you are using SSL, you should have those lines, but you should also have the base_url configured, per the documentation.

Literally any decent editor will have yaml support. Notepad++, Atom, Visual Studio Code…take your pick, man.

I agree