Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localbeach setup on Ubuntu 18.04.4 #6

Open
regniets opened this issue Sep 30, 2020 · 5 comments
Open

Localbeach setup on Ubuntu 18.04.4 #6

regniets opened this issue Sep 30, 2020 · 5 comments
Assignees
Labels
bug Issues that report undesirable or incorrect behavior (problem) ux affects user experience (experience)

Comments

@regniets
Copy link

Installed localbeach on ubuntu with an existing localbeach installation (phar beach-cli). Did not work ootb, had to do some manual stuff.

  1. Install homebrew. Homebrew will install on either
    /home/linuxbrew/.linuxbrew
    /home/[user]/.linuxbrew
    Chose user directory (non-recommended though)
  2. Removed existing local_beach_* docker containers (based on different docker-compose.yml) and old beach-cli manually
  3. beach setup --database-folder ~/.Flownative/LocalBeach/MariaDB --docker-folder /home/[user]/.linuxbrew/lib/localbeach should have worked, but exited without any message
  4. beach start threw "FATAL failed to check for running containers"
  5. started local_beach_* containers manually (docker-compose up -d)
  6. still fatal error on beach start, checked into
    return errors.New("failed to check for running containers")
  7. symlinked docker-compose.yml to /usr/local/lib/localbeach
  8. Running
@kdambekalns kdambekalns self-assigned this Sep 30, 2020
@kdambekalns kdambekalns added bug Issues that report undesirable or incorrect behavior (problem) ux affects user experience (experience) labels Sep 30, 2020
@kdambekalns
Copy link
Member

@regniets Two questions:

  • did beach setup … create ~/.Flownative/LocalBeach/MariaDB and /home/[user]/.linuxbrew/lib/localbeach/docker-compose.yml? If it did, it worked as expected.
  • does Homebrew provide an environment variable under Linux that can be used to find the "install base" (/home/[user]/.linuxbrew in your case?)

@kdambekalns
Copy link
Member

kdambekalns commented Oct 7, 2020

@regniets Expanding on the second question above, do you have $HOMEBREW_PREFIX set to /home/[user]/.linuxbrew?

@regniets
Copy link
Author

regniets commented Oct 7, 2020

on did beach setup … create ~/.Flownative/LocalBeach/MariaDB and /home/[user]/.linuxbrew/lib/localbeach/docker-compose.yml? If it did, it worked as expected.

It looks like - the folders were present, if they havent been added by the previous localbeach (phar) Version which had been installed.

@regniets
Copy link
Author

regniets commented Oct 8, 2020

@regniets Expanding on the second question above, do you have $HOMEBREW_PREFIX set to /home/[user]/.linuxbrew?

Yes, it is.
While homebrew tells me the following:
Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew. Some of Homebrew's bottles (binary packages) can only be used with the default prefix (/home/linuxbrew/.linuxbrew).

This was meant by "non-recommended" :)

@sbruggmann
Copy link

So i had a look at again too. My goal was to get NeosIo running on Ubuntu 20.04 without homebrew and without previous beach installation.

  1. Clone this repository, run make and copy beach to ~/bin/beach.
  2. Copy /{path_to_localbeach_repo}/assets/local-beach/docker-compose.yml to /usr/local/lib/localbeach/docker-compose.yml and fix write access sudo chmod o+w /usr/local/lib/localbeach/docker-compose.yml.
  3. Executed beach setup --database-folder ~/.Flownative/LocalBeach/MariaDB --docker-folder /usr/local/lib/localbeach.

Works :-)

Off topic:

To get NeosIo finally running, i had to go into the container beach exec /bin/bash after beach start and..

  1. download composer curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- manually and run ./composer.phar install
  2. ./flow flow:cache:flush; ./flow cache:warmup. better once too much than too little.
  3. import the site ./flow site:import --package-key Neos.NeosIo etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that report undesirable or incorrect behavior (problem) ux affects user experience (experience)
Projects
None yet
Development

No branches or pull requests

3 participants