RangerMauve / dat-store

A CLI tool for backing up hyperdrive datasets
GNU Affero General Public License v3.0
59 stars 14 forks source link

Trouble with install-service on Ubuntu #15

Closed canadaduane closed 4 years ago

canadaduane commented 5 years ago

This is from chat logs, but wanted to post here so it doesn't get lost:

I couldn't run dat store install-service as my regular user (result was EACCES: permission denied, open '/etc/init.d/dat-store'), so I tried sudo but npm complained:

sudo: dat: command not found.

Finally, I had to symlink my version of node to /usr/local via sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/local/bin/node" and sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npm" "/usr/local/bin/npm"

Then, I can login as root via sudo bash and dat store install-service seemed to succeed.

I also had a small issue with this error: Error: EACCES: permission denied, open '/home/duane/.config/dat-store-nodejs/config.json.2768840111 but a chown -R duane:duane /home/duane/.config/dat-store-nodejs fixed it.

Currently, dat-store seems to be installed, but it is not "working" since it doesn't seem to be publishing the dats that I've added to the store (but dat share works ok).

RangerMauve commented 5 years ago

Just to confirm, which version of dat-store was this with?

canadaduane commented 5 years ago

It was the version just prior to your minor bump yesterday... 0.8? Sorry, I'm just leaving for a trip so I can't check immediately.

On Mon, Apr 29, 2019, 2:27 PM RangerMauve notifications@github.com wrote:

Just to confirm, which version of dat-store was this with?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/datproject/dat-store/issues/15#issuecomment-487730916, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAABANUKSUDTVE5GZ3XVGTPS5KZXANCNFSM4HJFKQAA .

RangerMauve commented 5 years ago

Thank you! No rush on checking. I think 2.0.9 should fix the issue of not being able to detect changes to files. There was a bug where the secret keys were being loaded for the archives.

canadaduane commented 5 years ago

Ok, thanks. I will give it a try tonight!

On Mon, Apr 29, 2019, 2:56 PM RangerMauve notifications@github.com wrote:

Thank you! No rush on checking. I think 2.0.9 should fix the issue of not being able to detect changes to files. There was a bug where the secret keys were being loaded for the archives.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/datproject/dat-store/issues/15#issuecomment-487740963, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAABAKYHBJSIVEZQZF3LXTPS5OJTANCNFSM4HJFKQAA .

DougAnderson444 commented 5 years ago

I ran install-service with dat-store 4.0.0 on ubuntu without any issue 👍

RangerMauve commented 5 years ago

Whaaaaat. That's cool. I thought it still wasn't working TBH. 😅

DougAnderson444 commented 5 years ago

Well, I should clarify perhaps. The install-service command runs without visible error, and the command prompt returns. Seeing as I'm still kinda unclear about what it does, maybe I was a bit premature to day it's "working"... I should say it "displays no errors"...

RangerMauve commented 5 years ago

Ha! If you're having trouble, I suggest following the docs in the README for setting up services.