umbrel
umbrel copied to clipboard
PLEASE UPDATE INSTALLATION GUIDE START COMMAND
"sudo ./scripts/start" does not work on ubuntu linux.
error: touch: cannot touch '/home/user/umbrel/../statuses/configured': No such file or directory
MULTIPLE other users had this error (check telegram chat)
You need this command cd && mkdir statuses -p && cp umbrel/statuses/* statuses/ && cd umbrel && sudo ./scripts/start
Please update your installation manual on github.
Hey! This is not the issue and won't solve it. I will take a look tomorrow.
Ok well by running this command instead i was able to fully start umbrel. So hopefully this helps you to find the real issue & fix it. Because I saw in telegram chat history for umbrel this was mention by multiple users months ago even so seems like something consistent.
Is it: UMBREL_ROOT="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/.." ?
${BASH_SOURCE[0]} is /home/ubuntu/scripts/configure $(dirname $(readlink -f "${BASH_SOURCE[0]}")) is /home/ubuntu/umbrel/scripts $(dirname $(readlink -f "${BASH_SOURCE[0]}"))/.. is /home/ubuntu/umbrel/scripts/.. = /home/ubuntu/umbrel
sudo /start does not work on ubuntu linux.
Why are you using sudo /start?
The Documentation i have in front of me states: sudo ./scripts/start Or did you mean sudo ./scripts/start ?
Its not easy to help if you are giving wrong informations but i will try : /
Can you give me the output of bash --version ? Are you using somthing different than Bash? CSH? ZSH? I had some Problems with BASH_SOURCE in my scripts wenn i wasn't using another host without bash.
Yes I meant the full command you said (i edited my original post)
bash --version "GNU Bash 5.0.17 release x86_64-pc-linux-gnu"
This is fresh install of Lubuntu linux (ubuntu with LXQT desktop nothing much different)
Umbrel directory is located in: /home/user(myusername)/umbrel/
Let me know any other commands you want me to run or information to provide.
After I ran the command in my first post (cd && mkdir statuses -p && cp umbrel/statuses/* statuses/ && cd umbrel && sudo ./scripts/start)
After that i shutdown umbrel & next time I can start umbrel by just: sudo ./scripts/start I checked the folder /statuses & i saw the file now exists "configured"
So, there is a problem in the installation script it didn't create "configured" file for me when running the "sudo ./scripts/start" Please update the installation script to do this.
Is this related with Ubuntu 18.04? Seems that in 20.04/21.04 this doesn't happen. I use Debian 10 for my Umbrel and never have this problem.
this happens in Ubuntu 21.04
this happens in Ubuntu 21.04
Can you please put these three commands after the first line (but in a new line) of scripts/start so we can get a bit of information?
echo ${BASH_SOURCE[0]}
echo $(dirname $(readlink -f "${BASH_SOURCE[0]}"))
echo $(dirname $(readlink -f "${BASH_SOURCE[0]}"))/..
I had the same problem on 20.04. To reproduce:
- I ran
curl -L https://github.com/getumbrel/umbrel/archive/v0.3.10.tar.gz | tar -xz --strip-components=1in home directory - When I realized that the unzip happens without creating a directory, I removed all files and created
umbreldirectory and again ran the command in umbrel directory - HOWEVER, the file
~/.umbrelwas left behind in the home directory - Then the code (line 39 in
scripts/configure), sets the STATUS_DIR to~/statusesinstead of the directory holding the source code (in my case~/umbrel/statuses
# Make sure we use the status dir from the real Umbrel installation if this is
# an OTA update.
STATUS_DIR="${UMBREL_ROOT}/statuses"
if [[ -f "${UMBREL_ROOT}/../.umbrel" ]]; then
STATUS_DIR="${UMBREL_ROOT}/../statuses"
fi
I think to prevent this error, I would modify the README.md and remove the --strip-components=1 from the command:
curl -L https://github.com/getumbrel/umbrel/archive/v0.3.10.tar.gz | tar -xz --strip-components=1
as this can be easily overlooked and then the users just dump the source code files in the current working directory.
Can I help with a pull request for this change?
as this can be easily overlooked and then the users just dump the source code files in the current working directory. Can I help with a pull request for this change?
I think it should be kept as it is now, because there is a note before the command:
Run this in an empty directory where you want to install Umbrel.
But it's best to let @lukechilds decide
I had the same problem on 20.04. To reproduce:
- I ran
curl -L https://github.com/getumbrel/umbrel/archive/v0.3.10.tar.gz | tar -xz --strip-components=1in home directory- When I realized that the unzip happens without creating a directory, I removed all files and created
umbreldirectory and again ran the command in umbrel directory- HOWEVER, the file
~/.umbrelwas left behind in the home directory- Then the code (line 39 in
scripts/configure), sets the STATUS_DIR to~/statusesinstead of the directory holding the source code (in my case~/umbrel/statuses# Make sure we use the status dir from the real Umbrel installation if this is # an OTA update. STATUS_DIR="${UMBREL_ROOT}/statuses" if [[ -f "${UMBREL_ROOT}/../.umbrel" ]]; then STATUS_DIR="${UMBREL_ROOT}/../statuses" fiI think to prevent this error, I would modify the
README.mdand remove the--strip-components=1from the command:curl -L https://github.com/getumbrel/umbrel/archive/v0.3.10.tar.gz | tar -xz --strip-components=1as this can be easily overlooked and then the users just dump the source code files in the current working directory.
Can I help with a pull request for this change?
Yep, exact same problem here. Moving .umbrel to the folder fixed for me.
still happens today in a freshly installed ubuntu 20.04
ran into this same issue...
And today I did, too. Tjhanks to op for posting.