sibblegp / Storj-Dashboard-Client

Storj Dashboard Client
MIT License
20 stars 2 forks source link

Storjdash fails to find the storjshare location #15

Open sdalmeida opened 6 years ago

sdalmeida commented 6 years ago

OS: ethOS 1.2.7 Python 3.5.2 pip 1.5.4

When running sudo register_storjdash, I get the following error

File "/usr/local/lib/python3.5/dist-packages/storjreports/register_server.py", line 102, in look_for_storj look_for_storj(item.path) File "/usr/local/lib/python3.5/dist-packages/storjreports/register_server.py", line 102, in look_for_storj look_for_storj(item.path) .... File "/usr/local/lib/python3.5/dist-packages/storjreports/register_server.py", line 102, in look_for_storj look_for_storj(item.path) File "/usr/local/lib/python3.5/dist-packages/storjreports/register_server.py", line 100, in look_for_storj OSError: [Errno 40] Too many levels of symbolic links: '/home/ethos/.local/share/teamviewer12/drive_c/users/ethos/My Documents/.local/share/teamviewer12/drive_c/users/ethos/My Documents/.local/share/teamviewer12/drive_c/users/ethos/My Documents/.local/share/teamviewer12/drive_c/users/ethos/My Documents/.local/share/teamviewer12/drive_c/users/ethos/My Documents/.local/share/teamviewer12/drive_c/users/ethos/My Documents/.local/share/teamviewer12/drive_c/users/ethos/............ and so on

image

Looking at the code, it seems that you are trying to find the installation directory for storjshare (by navigating through all folder structure in the system).

I fixed this issue by going into the code and specifying the path for storjshare. To find the storjshare location, I used this command

miner> type storjshare storjshare is /home/ethos/.nvm/versions/node/v9.2.0/bin/storjshare

=== UPDATE ===

Looks like this issue was fixed here: 6fa7e0b7.

chadotter commented 6 years ago

"type storjshare" didn't work for me because the location storjshare was installed (/opt/storjshare) was in the PATH variable. It works after typing "PATH=$PATH:/opt/storjshare" in bash, however re-running register_storjdash still failed because it required sudo.

The final solution was adding /opt/storjshare to secure_path in the /etc/sudoers file.

vboasso commented 6 years ago

@chadotter can you tell me how add /opt/storjshare on secure path? Actually line is: secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$ Where I must add /opt/storjshare ? If you can pls paste your secure_path's line