Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • crown-core crown-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 75
    • Issues 75
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Crown
  • crown-corecrown-core
  • Issues
  • #228

Closed
Open
Created Sep 08, 2018 by Mark Brooker@walkjiveflyMaintainer

More installer issues

Summary

The installer script makes certain assumptions which may not always be true.

Steps to reproduce

Run the installer script in a way not originally anticipated.

Expected behavior

Behave gracefully.

Problematic behavior

  • If curl is not already installed (e.g: if the user downloads and runs the script not as recommended) the installer will fail.
  • If swap space already exists and the script runs as a new install it will possibly create additional unecessary swap. It creates the swap space with not-recommended permissions and can write duplicate fstab entries.
  • If the daemon is not already installed/running the user could be confused by the error message when it fails to stop.
  • The script writes the crontab line even if it already exists.
  • The script doesn't actually delete the tmpdir where the installer image is downloaded and unzipped.
  • Inconsistent use of sudo. If run as non-root user the script can fail in several places.

Crown-core environment info

linux

Crown-core application info

v0.12.5.1

Relevant logs and/or screenshots

Possible fixes

  • Add curl to the inbuilt dependency installation.
  • Don't create swap unless necessary and only add the line to fstab once.
  • Quietly stop the daemon.
  • Fix permissions on swap.
  • Use sudo consistently and everywhere it might be needed.
  • Write crontab entry only once.
  • Delete the actual tmpdir when finished.

/cc @finjosh

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking