# Umbrel doesn't start up anymore

**URL:** <https://community.umbrel.com/t/umbrel-doesnt-start-up-anymore/12796>\
**Category:** Support and Troubleshooting\
**Created:** [June 18, 2023, 9:27pm UTC](https://community.umbrel.com/t/umbrel-doesnt-start-up-anymore/12796 "2023-06-18T21:27:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lamda](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@lamda](https://community.umbrel.com/u/lamda)\
**Post date:** [June 18, 2023, 9:27pm UTC](https://community.umbrel.com/t/umbrel-doesnt-start-up-anymore/12796/1 "2023-06-18T21:27:23Z")

</div>

Hi everyone,

I have some bigger problems after a recent Umbrel restart. It does not start up anymore. I get this nice picture, when I want to access the web UI.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/e/e6e139aa7cf48ae42e47e63ce4dd658cc6cf4e14.png)

When I try to start it up manually through the command line, I get this error message. Does anyone know where it comes from and what I can do against it?

umbrel@umbrel:~/umbrel $ docker-compose start  
Traceback (most recent call last):  
File “/usr/local/bin/docker-compose”, line 8, in   
sys.exit(main())  
File “/usr/local/lib/python3.7/dist-packages/compose/cli/main.py”, line 81, in main  
command\_func()  
File “/usr/local/lib/python3.7/dist-packages/compose/cli/main.py”, line 200, in perform\_command  
project = project\_from\_options(‘.’, options)  
File “/usr/local/lib/python3.7/dist-packages/compose/cli/command.py”, line 40, in project\_from\_options  
environment = Environment.from\_env\_file(override\_dir or project\_dir, environment\_file)  
File “/usr/local/lib/python3.7/dist-packages/compose/config/environment.py”, line 67, in from\_env\_file  
instance = \_initialize()  
File “/usr/local/lib/python3.7/dist-packages/compose/config/environment.py”, line 62, in \_initialize  
return cls(env\_vars\_from\_file(env\_file\_path))  
File “/usr/local/lib/python3.7/dist-packages/compose/config/environment.py”, line 38, in env\_vars\_from\_file  
env = dotenv.dotenv\_values(dotenv\_path=filename, encoding=‘utf-8-sig’, interpolate=interpolate)  
File “/usr/local/lib/python3.7/dist-packages/dotenv/main.py”, line 377, in dotenv\_values  
encoding=encoding,  
File “/usr/local/lib/python3.7/dist-packages/dotenv/main.py”, line 69, in dict  
self.\_dict = OrderedDict(resolve\_variables(raw\_values, override=self.override))  
File “/usr/local/lib/python3.7/dist-packages/dotenv/main.py”, line 229, in resolve\_variables  
for (name, value) in values:  
File “/usr/local/lib/python3.7/dist-packages/dotenv/main.py”, line 77, in parse  
for mapping in with\_warn\_for\_invalid\_lines(parse\_stream(stream)):  
File “/usr/local/lib/python3.7/dist-packages/dotenv/main.py”, line 19, in with\_warn\_for\_invalid\_lines  
for mapping in mappings:  
File “/usr/local/lib/python3.7/dist-packages/dotenv/parser.py”, line 180, in parse\_stream  
reader = Reader(stream)  
File “/usr/local/lib/python3.7/dist-packages/dotenv/parser.py”, line 71, in **init**  
self.string = stream.read()  
File “/usr/lib/python3.7/codecs.py”, line 322, in decode  
(result, consumed) = self.\_buffer\_decode(data, self.errors, final)  
File “/usr/lib/python3.7/encodings/utf\_8\_sig.py”, line 69, in \_buffer\_decode  
return codecs.utf\_8\_decode(input, errors, final)  
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xc1 in position 0: invalid start byte

* * *

History

- The node was extremely slow
- I did a restart
- I did not restarted properly
- I reflashed the SD card with the recent umbrel version (which was already running before)
- Started to do more investigations. I don’t know if before the reflash, the same or a different error message was shown.

Thanks for any help in advance!

---

<div class="post-metadata">

**Author:** ![tavoplus](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tavoplus](https://community.umbrel.com/u/tavoplus)\
**Post date:** [June 19, 2023, 9:16am UTC](https://community.umbrel.com/t/umbrel-doesnt-start-up-anymore/12796/2 "2023-06-19T09:16:56Z")

</div>

I have the same problem, as my node asked me to write a new sd, I did it and since then, I couldn’t start it again.

---

<div class="post-metadata">

**Author:** ![lamda](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@lamda](https://community.umbrel.com/u/lamda)\
**Post date:** [June 20, 2023, 7:36pm UTC](https://community.umbrel.com/t/umbrel-doesnt-start-up-anymore/12796/4 "2023-06-20T19:36:00Z")

</div>

I restarted numerous times, but it didn’t help. Does nobody have any idea?

---

<div class="post-metadata">

**Author:** ![lamda](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@lamda](https://community.umbrel.com/u/lamda)\
**Post date:** [June 20, 2023, 7:55pm UTC](https://community.umbrel.com/t/umbrel-doesnt-start-up-anymore/12796/5 "2023-06-20T19:55:25Z")

</div>

I could trace it down further. Apparently, the `.env` file got corrupted. It doesn’t seem to be a valid text file anymore, but it’s detected as binary file.

Is it possible to regenerate the .env file?

---

<div class="post-metadata">

**Author:** ![lamda](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@lamda](https://community.umbrel.com/u/lamda)\
**Post date:** [June 20, 2023, 8:13pm UTC](https://community.umbrel.com/t/umbrel-doesnt-start-up-anymore/12796/6 "2023-06-20T20:13:21Z")

</div>

I got it fixed 😃

Somehow, many files in the scripts directory disappeared and the .env file got corrupted. I have no idea how that can happen. Does anyone?

After manually restoring those files from the repository, and setting the permissions, this helped:

cd umbrel  
sudo ./scripts/stop  
sudo rm .env && sudo ./scripts/configure  
sudo ./scripts/start

The node is back up and running and all the data is still there.

How can I prevent these issues in the future?
