Skip to content

setup can produce multiple unhandled errors, and it still reports success #46

@eriknelson

Description

@eriknelson

OS: Fedora 32 for Raspberry Pi

Here are the relevant logs, I've filed issues that caused the underlying problems, but as you can see, many separate things went wrong, and setup is happily reporting success at the end. There doesn't appear to be much error handling, if any.

[root@<host> sparkleshare]# DAZZLE_USER=sparkle DAZZLE_GROUP=sparkle DAZZLE_HOME=/nfsmnt/sync ./dazzle.sh setup
 1/4 | Installing the Git package...
  -> The Git package has already been installed (version 2.26.2).
 2/4 | Creating account "sparkle"...
  -> Account already exists.
  -> mkdir --parents /nfsmnt/sync
mkdir: cannot create directory ‘/nfsmnt’: File exists
 3/4 | Configuring account "sparkle"...
  -> mkdir --parents /nfsmnt/sync/.ssh
mkdir: cannot create directory ‘/nfsmnt’: File exists
  -> touch /nfsmnt/sync/.ssh/authorized_keys
touch: cannot touch '/nfsmnt/sync/.ssh/authorized_keys': No such file or directory
  -> chmod 700 /nfsmnt/sync/.ssh
chmod: cannot access '/nfsmnt/sync/.ssh': No such file or directory
  -> chmod 600 /nfsmnt/sync/.ssh/authorized_keys
chmod: cannot access '/nfsmnt/sync/.ssh/authorized_keys': No such file or directory
 4/4 | Reloading the SSH config...
  -> /etc/init.d/ssh reload
./dazzle.sh: line 116: /etc/init.d/ssh: No such file or directory

Setup complete!
To create a new project, run "dazzle create PROJECT_NAME".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions