laurent78
(laurent)
February 10, 2024, 4:11pm
1
I Run Updateself in script sh and i have this error
WARNING: This script is running as the root user!
If you are running a standard deployment this script should be running as a dedicated Bitwarden User as per the documentation.
How can I bypass this error?
bw-admin
(BW Admin)
February 12, 2024, 2:15pm
2
Hi @laurent78 ! Have you already followed the steps here ?
drgambit
(drgambit)
March 12, 2024, 11:57pm
3
Just running into this myself. I installed bitwarden some time ago and never saw these instructions. Is this safe to ignore and run as root?
grb
March 13, 2024, 12:32am
4
@drgambit Welcome to the forum!
Have you already followed the steps here ?
drgambit
(drgambit)
March 13, 2024, 1:35am
5
No, I have not. I don’t think these steps existed when I initially installed bitwarden on my server.
Citizen
(Citizen)
April 9, 2024, 9:30am
6
Yeha, these did not exist when I installed either. These instructions point to /opt/bitwarden, something I do not have in my installation. It appears my bitwarden is installed in /root/bwdata
Whats the upgrade process here?
Orgoth
(Orgoth)
May 16, 2025, 7:16am
7
@laurent78 You can use expect as workaround.
Something like this:
#!/usr/bin/expect -f
set timeout 300
# updateself ausführen
spawn /home/bitwarden/bitwarden.sh updateself
expect {
"Do you still want to continue? (y/n):" { send "y\r"; exp_continue }
timeout { puts "Timeout bei updateself"; exit 1 }
eof
}
# update ausführen
spawn /home/bitwarden/bitwarden.sh update
expect {
"Do you still want to continue? (y/n):" { send "y\r"; exp_continue }
timeout { puts "Timeout bei update"; exit 1 }
eof
}
# restart ausführen
spawn /home/bitwarden/bitwarden.sh restart
expect {
"Do you still want to continue? (y/n):" { send "y\r"; exp_continue }
timeout { puts "Timeout bei restart"; exit 1 }
eof
}