Skip to content

Issues running dev environment #19

@0x41mmarVM

Description

@0x41mmarVM

We use Github to track bugs in Staffjoy. Please answer these questions before submitting your issue. All of our code is in one place, so please preface the title with the system where the bug is (e.g. "company api" or "www"). Thanks!

What environment did you encounter the issue in?

development.
I'm trying to run on a fresh Ubuntu 18.04 machine. VirtualBox 6.0 and Vagrant installed successfully

What did you do?

Cloned the repo, installed virtualbox and vagrant, then ran make dev.

What did you see instead?

First, there were issues with ubuntu_mirror_replace_to_fastest.sh, it would choose http://uk.mirror.worldbus.ge/ , which does not have packages for Jammy, leading the provisioning to fail. I fixed that manually.

Next, there were issues with Go installing packages:

go: 'go install' requires a version when current directory is not in a module

Cool. No problem. Edited golang.sh to add "@latest" at the end of every install command. Error messages went away.
Now the provisioning ends with no clear error message, and I get:

==> default: Attempting graceful shutdown of VM...

Attempting to manually bring the dev vm up produces no better results. I can ssh into it, but nothing runs on port 80 but a gateway error.

Are there any logs indicating an issue?

   default: alias docker-rmall='docker-rma && docker-rmia'
    default: [v] /home/vagrant/.bash_aliases path docker-rmall added.
    default: + echo '[v] /home/vagrant/.bash_aliases path docker-rmall added.'
    default: + addAlias /home/vagrant/.bash_aliases docker-nuke 'alias docker-nuke='\''docker-rmall; docker-rmnet; docker-rmvol'\'''
    default: + local FILENAME=/home/vagrant/.bash_aliases
    default: + local MATCH_PATTREN=docker-nuke
    default: + local 'CMD_EXPORT=alias docker-nuke='\''docker-rmall; docker-rmnet; docker-rmvol'\'''
    default: + local SUDO=false
    default: + grep -q docker-nuke /home/vagrant/.bash_aliases
    default: + [[ false == \t\r\u\e ]]
    default: + echo 'alias docker-nuke='\''docker-rmall; docker-rmnet; docker-rmvol'\'''
    default: + tee -a /home/vagrant/.bash_aliases
    default: alias docker-nuke='docker-rmall; docker-rmnet; docker-rmvol'
    default: [v] /home/vagrant/.bash_aliases path docker-nuke added.
    default: + echo '[v] /home/vagrant/.bash_aliases path docker-nuke added.'
    default: + addAlias /home/vagrant/.bash_aliases docker-clean 'alias docker-clean='\''docker-rma -f status=exited; docker-rmia -f dangling=true; docker-rmnet; docker-rmvol -f dangling=true'\'''
    default: + local FILENAME=/home/vagrant/.bash_aliases
    default: + local MATCH_PATTREN=docker-clean
    default: + local 'CMD_EXPORT=alias docker-clean='\''docker-rma -f status=exited; docker-rmia -f dangling=true; docker-rmnet; docker-rmvol -f dangling=true'\'''
    default: + local SUDO=false
    default: + grep -q docker-clean /home/vagrant/.bash_aliases
    default: + [[ false == \t\r\u\e ]]
    default: + tee -a /home/vagrant/.bash_aliases
    default: + echo 'alias docker-clean='\''docker-rma -f status=exited; docker-rmia -f dangling=true; docker-rmnet; docker-rmvol -f dangling=true'\'''
    default: alias docker-clean='docker-rma -f status=exited; docker-rmia -f dangling=true; docker-rmnet; docker-rmvol -f dangling=true'
    default: [v] /home/vagrant/.bash_aliases path docker-clean added.
    default: + echo '[v] /home/vagrant/.bash_aliases path docker-clean added.'
==> default: Attempting graceful shutdown of VM...

If I SSH into the env and curl port 80:

vagrant@staffjoy-v2:~$ curl 127.0.0.1
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

no response on localhost:8001 or http://10.0.0.99:80 either.

Am I missing something? How do I get this to run?

Many thanks for your time.

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