pterodactyl / development

Development environment setup for Pterodactyl. This is used internally by our development team to ensure getting Pterodactyl running in a development environment is a painless as possible.
Apache License 2.0
30 stars 30 forks source link

Vagrant fails to start with a generic message #8

Closed ivstiv closed 2 years ago

ivstiv commented 2 years ago

I am having the following issue when trying to setup this dev environment. After running vagrant up or vagrant up --provision-with setup app I get the following output:

Bringing machine 'app' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* A box must be specified.

I talked with a few other people from the Ptero discord who have faced a similar issue and none of them have managed to fix it. It looks like what we all have in common is that we are using Linux and this has probably never been tested on it?

Do you have any ideas on how I can fix it and is anyone even using this setup nowadays? Would I be better off by just writing a docker-compose file and DIY-ing the dev setup? What are you guys using?

ivstiv commented 2 years ago

It looks like it was just a permission problem, if anyone ends up here in the future make sure you can run docker and virtualbox without sudo. This is a good starting point. If you however tried to run it with sudo, wipe the whole local repo and clone it again because you will have a bunch of nested root owned files. For those that like to move around their dot files, make sure ~/.gitconfig exists or amend it accordingly in the vagrant file to match your path.