boost:filesystem_error | permission denied to /.hush
#55
Closed
opened 3 years ago by oDinZu
·
10 comments
No Branch/Tag Specified
arm
asyncnotedecryption
danger
dev
dev-aarch64
dev-mac
dev-old-randomx
divzaddrs
dragonx
duke
freebsd
getfilterednotes
hip39
insync
jahway603
master
mvstuff
onryo
p2p_privacy
ramhash
relaytx
rx-largepages
setbestchain
warmup
witness_cache
wolfssl
wolfssl_win
z_createrawtransaction
z_importwallet
z_signmessage
v0.11.2.z0
v0.11.2.z1
v0.11.2.z2
v0.11.2.z3
v0.11.2.z4
v0.11.2.z5
v0.11.2.z6
v0.11.2.z7
v0.11.2.z8
v0.11.2.z9
v1.0.0
v1.0.0-beta1
v1.0.0-beta2
v1.0.0-rc1
v1.0.0-rc2
v1.0.0-rc3
v1.0.0-rc4
v1.0.1
v1.0.10
v1.0.10-1
v1.0.11
v1.0.11-rc1
v1.0.12
v1.0.12-rc1
v1.0.13
v1.0.13-rc1
v1.0.13-rc2
v1.0.14
v1.0.14-rc1
v1.0.15
v1.0.15-rc1
v1.0.2
v1.0.3
v1.0.4
v1.0.5
v1.0.6
v1.0.7-1
v1.0.8
v1.0.8-1
v1.0.9
v1.1.0
v1.1.0-rc1
v1.1.1
v1.1.1-rc1
v1.1.1-rc2
v1.1.2
v1.1.2-rc1
v2.0.0
v2.0.0-rc1
v2.0.1
v3.0.0
v3.1.0
v3.1.1
v3.10.0
v3.10.1
v3.10.2
v3.2.0
v3.2.1
v3.2.1-alpha
v3.2.1-beta
v3.2.2
v3.2.3
v3.3.0
v3.3.1
v3.3.2
v3.4.0
v3.4.1
v3.5.0
v3.5.1
v3.5.2
v3.6.0
v3.6.1
v3.6.2
v3.6.3
v3.7.0
v3.7.1
v3.8.0
v3.9.0
v3.9.1
v3.9.2
v3.9.3
v3.9.4
Labels
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it testing
related to testing tor
related to tor wontfix
this won't be fixed
Apply labels
Clear labels
0-500 bounty
bounty up to 500 HUSH 2001-5000 bounty
bounty between 2001 and 5000 HUSH 501-2000 bounty
bounty between 501 and 2000 HUSH arm
something doesn't work on arm beginners
for new developers bug
may or may not be a bug build
problems building documentation
not enough information feature
new feature high priority
high priority i2p
related to i2p low priority
low priority medium priority
medium priority question
something is not clear release
release label or issue related to it testing
related to testing tor
related to tor wontfix
this won't be fixed
No Label
0-500 bounty
2001-5000 bounty
501-2000 bounty
arm
beginners
bug
build
documentation
feature
high priority
i2p
low priority
medium priority
question
release
testing
tor
wontfix
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
This issue currently doesn't have any dependencies.
Reference in new issue
There is no content yet.
Delete Branch '%!s(MISSING)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
No
Yes
The problem occured more than once. It looks like it is looking for .hush in the / root folders, rather than the ~ "home" user directory. Of course it would error if it looking at root directory from non-root user.
It shows that the hush3:dev branch compiled the binaries, but when running
./src/hushd
the following error is produced.Update: I have tested the hush:master branch and it compiled successfully without any errors or problems. I am running full node hush daemon on 21.04. This means, it must be something with the hush:dev branch
tail -f -n 100 ~/.hush/HUSH3/debug.log
doesn't have any logs..gdb .src/hushd
Computer Software | Hardware
Most likely a problem with the recent updates with: src/util.cpp
ln 557?
The error is trying to create a .hush foler in / directly.
On Hush 3.8.0
It seems I have received a similar error..but it was noticed after I sent the stop command to hushd.
Furthermore, I am unable to even use CTRL + C.
On exiting of terminal, the hushd continues to run.
@odinzu by using the master branch, you created ~/.komodo/HUSH3 and then the dev branch will use that instead of creating a new ~/.hush/HUSH3. It also seems like you ran things as root, maybe inside docker?
I agree that this is a bug in that we should not coredump and we should maybe warn the user to not run hushd as root, ever. Even inside of a docker container, running as root is a bad idea.
Yeah, I received this error again today. I was NOT in docker as root and am using a normal user on the development machine.
I remember you stating something about setting HOME, but I never had to do this since the beginning of my Hush journey. Maybe setting home for Docker vm, but not on core development machine.
After a FRESH build of hush3:dev today & after removing all .hush and .komodo to .backups. I switched to hush:dev, then compiled fresh bins. Then ran a fresh hushd. Everything worked great with
./src/hushd
; then, I ran./src/hush-cli help
and the following message error populated above.Update:
When I do
ls /home/
it displays the correct home via usernameFor some odd reason, hush-cli is looking at / directory for .hush.
Update:
When I test
sudo ./src/hush-cli help
it says:It shouldn't be looking for a komodo.conf. Of course it found an error like this, because there is no .hush or .komodo directory in root.
I ran
gdb ./src/hush-cli
and it populated the correct help options.Update:
Okay, so I am able to run
./src/hush-cli
without gdb and it populates correct information same as gdb.On running ./src/hush-cli help or any other option, I receive the permission issue.
Could this issue happen because I am still syncing blocks?
@oDinZu set HOME to the proper env var in your Dockerfile and things will likely work. If HOME is not set, which it's not in your case, then the root directory / is assumed to be HOME.
You are not allowed to create a directory called
/.hush/
and that is the 'Permission denied` error.Yeah, I received this error again today. I was NOT in docker as root and am using a normal user on the development machine.
@oDinZu you are right, it should not be looking for komodo.conf, and indeed, it is not. It's just a shitty error message that I am updating now, so it reports the correct config file name it could not find.
@oDinZu did you ever determine any root cause or resolution to this issue?
Was this just on the Ubuntu 21.04 install?
I ask as 21.04 just became End of life recently on Jan 20, 2022, so if this issue was only with 21.04 then we can close it as that OS is now not supported by the vendor.
Code has changed drastically since this error happened and nobody else ever reproduced it. Closing