Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Invalid data directory: '/var/lib/teleport' #572

Closed
Malayke opened this issue Oct 17, 2016 · 2 comments
Closed

Invalid data directory: '/var/lib/teleport' #572

Malayke opened this issue Oct 17, 2016 · 2 comments

Comments

@Malayke
Copy link

Malayke commented Oct 17, 2016

I add user got some error, and do not understand why show this error.

$ tar zxpf teleport-v1.2.0-linux-amd64-bin.tar.gz 
$ cd teleport/
/teleport$ sudo make install
mkdir -p /var/lib/teleport /usr/local/share/teleport /usr/local/bin
cp -f teleport tctl tsh /usr/local/bin/
cp -fr app index.html /usr/local/share/teleport/
$ sudo teleport start
[AUTH]  Auth service is starting on 0.0.0.0:3025
[Node] Successfully registered with the cluster
[Proxy] Successfully registered with the cluster
[SSH]   Service is starting on 0.0.0.0:3022
[PROXY] Reverse tunnel service is starting on 0.0.0.0:3024
[PROXY] Web proxy service is starting on 0.0.0.0:3080
[PROXY] SSH proxy service is starting on 0.0.0.0:3023

In another terminal:

$ tctl users add $USER
Invalid data directory: '/var/lib/teleport'

OS: Ubuntu 16.04.1 LTS
Kernel: Linux ubuntu 4.4.0-42-generic #62-Ubuntu SMP Fri Oct 7 23:11:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Where am I wrong? Who knows how to solve this problem?

@kontsevoy
Copy link
Contributor

@Malayke looks like you're trying to run tctl on a machine without teleport auth running. See what the docs say:

you have to use tctl tool on the same node where the auth server is running, i.e. teleport was started with --roles=auth

@eljs0n
Copy link

eljs0n commented Nov 7, 2016

nvm I was able to get around by running this as root

hatched pushed a commit to hatched/teleport-merge that referenced this issue Nov 30, 2022
* adding desktopPOC player

* updates to proper playback test websocket endpoint

* Changes EventQuery to take an EventCode in order to facilitate more comprehensible typing for AuditService.fetchEvents. Updates RecordingsService to use the general events search endpoint in order to easily add DESKTOP_SESSION_ENDED events to the response alongside regular [ssh] SESSION_END events.

* Adds logic for distinguishing between session types and displaying appropriate icon

* Deleting DesktopPlayerPOC which should not have been on this branch

* Breaks the handling of the two types of end events passed into makeRecording into two separate functions. Also types RecordingDescription

* touchups

* yarn tsc fixes

* updates storybook

* updating snapshot

* removing unused import

* adds skeleton for distinguishing between ssh and desktop recordings

* Testing connection of the playerClient

* Puts TdpClientCanvas into the DesktopPlayer

* adds toggle to PlayerClient

* small fixes

* adds an onerror to proxyServer so that websocket closures don't shut down the webpack-dev-server

* updates to match backend

* shifting preventDefaults out of TdpClientCanvas since that isn't always desired (for example with the desktop player)

* Adds a ProgressBarDesktop component and makes it respond to the new PlayerClientEvent.TOGGLE_PLAY_PAUSE event emitted by the PlayerClient

* Adds support for decoding client screen spec and using it to determine canvas size during playback. requires some code cleanup

* Some significant refactoring, DesktopSession and DesktopPlayer now both up to par in terms of function. Requires further refactoring for storybook.

* fixes storybook

* fixes codec test

* fixing build warnings

* reverts audit log changes

* removes unused type Region

* replace fqdm with fqdn

* Stops re-adding TOGGLE_PLAY_PAUSE listener each rerender and adds cleanup for that listener

* Make naming more precise

* removing unnecessary logging and fixing a type

* adding todo

* makes recordingType the more appropriate query param

* change let to const

* tiny fixes

* reverting

* Makes the rest of TdpClientCanvas props optional and wraps relevant logic in relevant if statements where necessary. Gets rid of ugly doNothing

* fixes event listener cleanup

* removes unnecessary prop

* Adds standard error handling display and a storybook for it

* Moving non-state-changing variables out of the state

* changes errors to logger warnings, since it doesn't diminish UX but improves DX

* fixes storybook

* Makes Player.tsx more readable

* typing fix and changes if else-if else to switch

* Fixes Player story

* Update packages/teleport/src/config.ts

Co-authored-by: Lisa Kim <lisa@goteleport.com>

* updates TODO's to TODO(isaiah) and formats github suggested change

Co-authored-by: Lisa Kim <lisa@goteleport.com>
hatched pushed a commit that referenced this issue Dec 20, 2022
* adding desktopPOC player

* updates to proper playback test websocket endpoint

* Changes EventQuery to take an EventCode in order to facilitate more comprehensible typing for AuditService.fetchEvents. Updates RecordingsService to use the general events search endpoint in order to easily add DESKTOP_SESSION_ENDED events to the response alongside regular [ssh] SESSION_END events.

* Adds logic for distinguishing between session types and displaying appropriate icon

* Deleting DesktopPlayerPOC which should not have been on this branch

* Breaks the handling of the two types of end events passed into makeRecording into two separate functions. Also types RecordingDescription

* touchups

* yarn tsc fixes

* updates storybook

* updating snapshot

* removing unused import

* adds skeleton for distinguishing between ssh and desktop recordings

* Testing connection of the playerClient

* Puts TdpClientCanvas into the DesktopPlayer

* adds toggle to PlayerClient

* small fixes

* adds an onerror to proxyServer so that websocket closures don't shut down the webpack-dev-server

* updates to match backend

* shifting preventDefaults out of TdpClientCanvas since that isn't always desired (for example with the desktop player)

* Adds a ProgressBarDesktop component and makes it respond to the new PlayerClientEvent.TOGGLE_PLAY_PAUSE event emitted by the PlayerClient

* Adds support for decoding client screen spec and using it to determine canvas size during playback. requires some code cleanup

* Some significant refactoring, DesktopSession and DesktopPlayer now both up to par in terms of function. Requires further refactoring for storybook.

* fixes storybook

* fixes codec test

* fixing build warnings

* reverts audit log changes

* removes unused type Region

* replace fqdm with fqdn

* Stops re-adding TOGGLE_PLAY_PAUSE listener each rerender and adds cleanup for that listener

* Make naming more precise

* removing unnecessary logging and fixing a type

* adding todo

* makes recordingType the more appropriate query param

* change let to const

* tiny fixes

* reverting

* Makes the rest of TdpClientCanvas props optional and wraps relevant logic in relevant if statements where necessary. Gets rid of ugly doNothing

* fixes event listener cleanup

* removes unnecessary prop

* Adds standard error handling display and a storybook for it

* Moving non-state-changing variables out of the state

* changes errors to logger warnings, since it doesn't diminish UX but improves DX

* fixes storybook

* Makes Player.tsx more readable

* typing fix and changes if else-if else to switch

* Fixes Player story

* Update packages/teleport/src/config.ts

Co-authored-by: Lisa Kim <lisa@goteleport.com>

* updates TODO's to TODO(isaiah) and formats github suggested change

Co-authored-by: Lisa Kim <lisa@goteleport.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants