umbrel icon indicating copy to clipboard operation
umbrel copied to clipboard

PLEASE UPDATE INSTALLATION GUIDE START COMMAND

Open samsong opened this issue 4 years ago • 15 comments
trafficstars

"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.

samsong avatar Apr 06 '21 22:04 samsong

Hey! This is not the issue and won't solve it. I will take a look tomorrow.

louneskmt avatar Apr 06 '21 22:04 louneskmt

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.

samsong avatar Apr 06 '21 22:04 samsong

Is it: UMBREL_ROOT="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/.." ?

blckbx avatar Apr 08 '21 12:04 blckbx

${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

AaronDewes avatar Apr 08 '21 12:04 AaronDewes

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.

Ruppsn avatar Apr 08 '21 13:04 Ruppsn

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.

samsong avatar Apr 08 '21 22:04 samsong

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.

Darth-Coin avatar Apr 27 '21 09:04 Darth-Coin

this happens in Ubuntu 21.04

ildella avatar May 23 '21 12:05 ildella

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]}"))/..

AaronDewes avatar May 23 '21 14:05 AaronDewes

I had the same problem on 20.04. To reproduce:

  1. I ran curl -L https://github.com/getumbrel/umbrel/archive/v0.3.10.tar.gz | tar -xz --strip-components=1 in home directory
  2. When I realized that the unzip happens without creating a directory, I removed all files and created umbrel directory and again ran the command in umbrel directory
  3. HOWEVER, the file ~/.umbrel was left behind in the home directory
  4. Then the code (line 39 in scripts/configure), sets the STATUS_DIR to ~/statuses instead 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?

algotechio avatar Jun 02 '21 01:06 algotechio

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

AaronDewes avatar Jun 02 '21 06:06 AaronDewes

I had the same problem on 20.04. To reproduce:

  1. I ran curl -L https://github.com/getumbrel/umbrel/archive/v0.3.10.tar.gz | tar -xz --strip-components=1 in home directory
  2. When I realized that the unzip happens without creating a directory, I removed all files and created umbrel directory and again ran the command in umbrel directory
  3. HOWEVER, the file ~/.umbrel was left behind in the home directory
  4. Then the code (line 39 in scripts/configure), sets the STATUS_DIR to ~/statuses instead 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?

Yep, exact same problem here. Moving .umbrel to the folder fixed for me.

ray-bun avatar Aug 30 '21 13:08 ray-bun

still happens today in a freshly installed ubuntu 20.04

onepabz avatar Apr 12 '22 20:04 onepabz

ran into this same issue...

PatMulligan avatar Jun 01 '22 02:06 PatMulligan

And today I did, too. Tjhanks to op for posting.

docter-tirrud avatar May 20 '23 20:05 docter-tirrud