Giter Club home page Giter Club logo

Comments (6)

woudsma avatar woudsma commented on May 10, 2024

Hi, thanks for trying out Swarmlet!
I think this has something to do with the installation of Docker Compose, since that uses curl.

curl -fsSL "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

I'm not familiar with DietPi, but it would be nice to be able to install Swarmlet on RPI's.
With RPI + Docker I'm not up to date on compatibility. There is some but I've tried it in the past and needed to navigate some issues which I don't remember.
If you fork this repo and find a way to properly install Docker Compose (+ Swarmlet), feel free to open a PR! 🙂
Let me know if you need help! We have a Slack channel you're welcome to join.

Edit: to install a fork, you can set the SWARMLET_REPO env var to your fork, for example:

# Using the master branch of the fork
SWARMLET_REPO=https://github.com/<username>/swarmlet
curl -fsSL https://get.swarmlet.dev | bash -s \
  SWARMLET_REPO=$SWARMLET_REPO

# Using a different branch of the fork
GITHUB_USER=yourname
SWARMLET_REPO=https://github.com/$GITHUB_USER/swarmlet
BRANCH=develop
curl -fsSL https://raw.githubusercontent.com/$GITHUB_USER/swarmlet/$BRANCH/install | bash -s \
  SWARMLET_REPO=$SWARMLET_REPO

from swarmlet.

TrikkStar avatar TrikkStar commented on May 10, 2024

Not super familiar with Shell so I'm not sure I could make a useful PR.
Some notes from further testing:

  • Installed docker-compose via apt and got passed my initial error
  • Next issue I found was that I had to manually create /.ssh/authorized_keys as I got an error about the file not existing, might want to add a check to see if the file exists before you cat it
  • I received the following message when installing with the creation of a Swap Partition fallocate: fallocate failed: Text file busy. Looking into this you get this error if you already have a swapfile and try to incorrectly create a new one. Might want to add a check to ensure that there isn't a existing swapfile before attempting to create one.
  • Trying with swapfile=False I now get an error stating that adduser: The user git' already exists.`

Edit: Removed user git, output as follows.

=====> Configuration confirmed
-----> The installation will take a few minutes to complete
-----> Checking apt-get for upgraded packages
-----> System up to date, continuing installation
-----> Setting up the git user
Adding user git' ... Adding new group git' (1001) ...
Adding new user git' (1001) with group git' ...
Creating home directory /home/git' ... Copying files from /etc/skel' ...
-----> Configuring git SSH options
-----> Checking Docker status
Docker is running
Docker version 19.03.12, build 48a6621
-----> Node IP address: 192.168.1.20
-----> Initializing node as swarm manager
Swarm initialized: current node (pt6z7oxmt6q2t6ejdlrtzjzyw) is now a manager.
-----> Creating secrets
2gdad5yydn65lc271f0853bsp
r2k787vw61drp4ibbm249xh2p
-----> Creating configs
iu5ienq4te62jyps2hewk3zbp
xqfqtmh72u1tox97rccog7y5w
iqz503k6ds8kdsbeg6f4emvfd
-----> Creating networks
a6dpsf8bdxi45z8hhokm861j4
bnvg209o4wc0av4522rt1bcsj
-----> Creating volumes
git-data
-----> Installing modules
-----> Deploying registry
Ignoring unsupported options: restart

Creating service registry_swarmlet-registry
Error response from daemon: Get http://localhost:5000/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

from swarmlet.

awojtczyk avatar awojtczyk commented on May 10, 2024

nano /etc/hosts

Remove the ipv6 related entries, then run following:

swarmlet uninstall
docker swarm leave  --force && docker system prune -f -a && service docker restart
BRANCH=master
curl -fsSL https://raw.githubusercontent.com/swarmlet/swarmlet/$BRANCH/install | bash -s \
  INSTALL_BRANCH=$BRANCH \
  INSTALLATION_TYPE=noninteractive \
  INSTALL_ZSH=true \
  NEW_HOSTNAME=name \
  CREATE_SWAP=true \
  INSTALL_MODULES="(swarmpit matomo portainer swarmprom)" \
  SWARMLET_USERNAME=user \
  SWARMLET_PASSWORD=password \
  ROOT_DOMAIN=yourdomain.com

from swarmlet.

TrikkStar avatar TrikkStar commented on May 10, 2024

Following the above gave me the following error:
Error saving credentials: error storing credentials - err: exit status 1, out: Cannot autolaunch D-Bus without X11 $DISPLAY

I resolved this by installing the standard unix password manager pass following the advice here

Now I just need to figure out how to access the modules; as my root domain is behind an existing reverse-proxy, and any requests to specific modules get 404'ed. (I really don't know much at all about web stuff so I'm expecting something to be wrong with my config)

from swarmlet.

woudsma avatar woudsma commented on May 10, 2024

To completely uninstall Swarmlet, you can run swarmlet uninstall or swarmlet nuke. We still have some work to do on the topic of uninstalling.
This issue seems related, but I'm sure you've seen this one as well: docker/compose#6023
The Cannot autolaunch D-Bus without X11 $DISPLAY error is unrelated to Swarmlet itself I assume, it's more likely that your OS has some difficulties with Docker Compose.

Thanks for the tips in your previous comment! I'll add them to the board.

from swarmlet.

woudsma avatar woudsma commented on May 10, 2024

Closing this issue as there are no plans to support DietPi (soon)

from swarmlet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.