-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to init my "admin" account #497
Comments
Have you tried adding the admin pub key without quotation marks to Like so: initial_admin_keys:
- ssh-ed25519 AAAAC.... |
Still the same, $ ssh 192.168.0.33 -p 23231 -i ~/.ssh/id_ed25519_local info
Error: user not found Can you please share your |
I left pretty much everything default: # Soft Serve Server configurations
# The name of the server.
# This is the name that will be displayed in the UI.
name: "Soft Serve"
# Logging configuration.
log:
# Log format to use. Valid values are "json", "logfmt", and "text".
format: "text"
# Time format for the log "timestamp" field.
# Should be described in Golang's time format.
time_format: "2006-01-02 15:04:05"
# Path to the log file. Leave empty to write to stderr.
#path: ""
# The SSH server configuration.
ssh:
# The address on which the SSH server will listen.
listen_addr: ":23231"
# The public URL of the SSH server.
# This is the address that will be used to clone repositories.
public_url: "ssh://localhost:23231"
# The path to the SSH server's private key.
key_path: ssh/soft_serve_host_ed25519
# The path to the server's client private key. This key will be used to
# authenticate the server to make git requests to ssh remotes.
client_key_path: ssh/soft_serve_client_ed25519
# The maximum number of seconds a connection can take.
# A value of 0 means no timeout.
max_timeout: 0
# The number of seconds a connection can be idle before it is closed.
# A value of 0 means no timeout.
idle_timeout: 600
# The Git daemon configuration.
git:
# The address on which the Git daemon will listen.
listen_addr: ":9418"
# The public URL of the Git daemon server.
# This is the address that will be used to clone repositories.
public_url: "git://localhost"
# The maximum number of seconds a connection can take.
# A value of 0 means no timeout.
max_timeout: 0
# The number of seconds a connection can be idle before it is closed.
idle_timeout: 3
# The maximum number of concurrent connections.
max_connections: 32
# The HTTP server configuration.
http:
# The address on which the HTTP server will listen.
listen_addr: ":23232"
# The path to the TLS private key.
tls_key_path:
# The path to the TLS certificate.
tls_cert_path:
# The public URL of the HTTP server.
# This is the address that will be used to clone repositories.
# Make sure to use https:// if you are using TLS.
public_url: "http://localhost:23232"
# The stats server configuration.
stats:
# The address on which the stats server will listen.
listen_addr: "localhost:23233"
# The database configuration.
db:
# The database driver to use.
# Valid values are "sqlite" and "postgres".
driver: "sqlite"
# The database data source name.
# This is driver specific and can be a file path or connection string.
# Make sure foreign key support is enabled when using SQLite.
data_source: "soft-serve.db?_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)"
# data_source: "postgres://postgres@localhost:5432/soft_serve?sslmode=disable"
# Git LFS configuration.
lfs:
# Enable Git LFS.
enabled: true
# Enable Git SSH transfer.
ssh_enabled: false
# Cron job configuration
jobs:
mirror_pull: "@every 10m"
# Additional admin keys.
initial_admin_keys:
- ssh-ed25519 AAAAC3N... My ssh config, for testing the connection ❯ cat .ssh/config
Host soft
HostName localhost
Port 23231
IdentityFile ~/.ssh/id_ed25519
❯ ssh soft info
Username: admin
Admin: true
Public keys:
ssh-ed25519 AAAAC3N... I didn't set the Hope this helps. |
Could you try a new fresh install? Backup the
|
Thanks @srngh and @aymanbagabas. Maybe there is some issue related with fact, that I'm using remote machine. I will try to install it locally. |
Just wanted to chip in and say that I was having the same issue, but it seems to be that I initially started the server without providing admin keys. A fresh install solved the issue. |
That was the issue for me as well. Fresh install with specifying admin keys before first start solved the problem. |
Any idea why this is? What does the first run with the env variable do that manually setting For installs via package managers (in my case yum/dnf), does that mean adding the key to EDIT: to expand,
Workaround: adding Notably, when launching the server via |
Removed the package,
🤷 Not sure what's going on with the packaged version. |
I think I found the issue (or an issue), at least as far as running it as a systemd unit goes: instead of the expected: Most people just uncomment the existing line in /etc/soft-serve.conf and append their pubkey. I know I did. After making the change and resetting everything soft-serve works as expected. |
I can't seem to figure out what's causing me not to be able to login. After this issue is closed, I'll sure open a pull request with clarification on the ssh aspect, because it's not that i'm stupid, it's that I think it's unclear how things should be done to initialize your server... |
Describe the bug
I just unable to use ssh-keypair for my installation.
To Reproduce
Steps to reproduce the behavior:
SOFT_SERVE_INITIAL_ADMIN_KEYS
as env as above, or I'm trying to use in config.yaml:Expected behavior
Ability to operate with my instance as admin user, not sure if documentation if out-dated, or I missing something important here.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: