Giter Club home page Giter Club logo

Comments (11)

andrasbacsai avatar andrasbacsai commented on May 9, 2024

I will take a look at it. I probably will ask you to rerun the script!

from coolify.

encima avatar encima commented on May 9, 2024

If you install docker manually first and then run the script, is that successful?

from coolify.

andrasbacsai avatar andrasbacsai commented on May 9, 2024

I'm currently rewriting the installation script to be more explicit on errors.

from coolify.

andrasbacsai avatar andrasbacsai commented on May 9, 2024

Published a new version of the installation script. It should show you more errors during installation.

Please let me know if you still face the problem and the debug output if it still fails. Thanks!

  • I've added a -d option for debugging purposes.
    Debug mode: sh <(curl -fsSL https://get.coollabs.io/install.sh) coolify -d

  • If you already installed Coolify once, it will detect it, and you do not need to reenter all the configurations again.

I hope I don't break too many things because I totally rewrite it.

Still feels itchy when I code in it; I will replace it soon with a better solution, that's sure.

EDIT: I host the installation script on CDN. Force flushed the cache but could happen that you see the old one still. Hopefully not.

from coolify.

geelen avatar geelen commented on May 9, 2024
glen@ubuntu-focal-1:~$ sh <(curl -fsSL https://get.coollabs.io/install.sh) coolify -d
rm: cannot remove './coolify-installer': No such file or directory
--2021-04-01 10:32:10--  https://get.coollabs.io/coolify-installer
Resolving get.coollabs.io (get.coollabs.io)... 81.19.214.21
Connecting to get.coollabs.io (get.coollabs.io)|81.19.214.21|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 77287716 (74M) [application/octet-stream]
Saving to: ‘coolify-installer’

coolify-installer                          100%[=====================================================================================>]  73.71M  31.9MB/s    in 2.3s

2021-04-01 10:32:12 (31.9 MB/s) - ‘coolify-installer’ saved [77287716/77287716]

## HINT: For debug mode run: sh <(curl -fsSL https://get.coollabs.io/install.sh) coolify -d

? Hey. Welcome to Coolify's installer!

It will install/update a lot of stuffs on your operating system automatically, which needed for Coolify to be running! By continuing you accept this!

There are 2 ways of installation:
- express (recommended) - lots of stuffs generated automatically behind the scenes, like secure passwords, etc.
- custom - you can fill all values by hand.

Would you like the express installation (recommended)? Yes

## Installing basic libraries

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
35.242.190.253
? Enter a <domain> for Coolify - example 'coollabs.io' or 'coolify.coollabs.io' without http/https: coolify.gmad.dev
? Email address for Let's Encrypt: [email protected]
35.246.45.246
Error
    at expressInstallation (/snapshot/coolify/index.js)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async coolifyMe (/snapshot/coolify/index.js)

Will start this VM again from scratch and try once more

from coolify.

geelen avatar geelen commented on May 9, 2024

Exactly the same on a fresh VM :(

Tried using sudo and while I got more output, it crashed in the same spot:

glen@ubuntu-focal-1:~$ sudo ./coolify-installer -d
## HINT: For debug mode run: sh <(curl -fsSL https://get.coollabs.io/install.sh) coolify -d

? Hey. Welcome to Coolify's installer!

It will install/update a lot of stuffs on your operating system automatically, which needed for Coolify to be running! By continuing you accept this!

There are 2 ways of installation:
- express (recommended) - lots of stuffs generated automatically behind the scenes, like secure passwords, etc.
- custom - you can fill all values by hand.

Would you like the express installation (recommended)? Yes

## Installing basic libraries

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Hit:1 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:5 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [894 kB]
Get:6 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [208 kB]
Get:7 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [12.9 kB]
Get:8 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [758 kB]
Get:9 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [160 kB]
Get:10 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [16.5 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [574 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [7380 B]
Get:13 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [550 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [10.7 kB]
Fetched 3515 kB in 1s (2646 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
44 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20210119~20.04.1).
ca-certificates set to manually installed.
git is already the newest version (1:2.25.1-1ubuntu3.1).
git set to manually installed.
software-properties-common is already the newest version (0.98.9.4).
software-properties-common set to manually installed.
The following package was automatically installed and is no longer required:
  libnuma1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  bind9-libs libcurl4
The following NEW packages will be installed:
  apt-transport-https gnupg-agent
The following packages will be upgraded:
  bind9-dnsutils bind9-libs curl libcurl4
4 upgraded, 2 newly installed, 0 to remove and 40 not upgraded.
Need to get 1651 kB of archives.
After this operation, 207 kB of additional disk space will be used.
Get:1 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/main amd64 bind9-dnsutils amd64 1:9.16.1-0ubuntu2.7 [134 kB]
Get:2 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/main amd64 bind9-libs amd64 1:9.16.1-0ubuntu2.7 [1114 kB]
Get:3 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/universe amd64 apt-transport-https all 2.0.4 [1704 B]
Get:4 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.5 [161 kB]
Get:5 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.5 [234 kB]
Get:6 http://europe-west2.gce.archive.ubuntu.com/ubuntu focal-updates/universe amd64 gnupg-agent all 2.2.19-3ubuntu2.1 [5232 B]
Fetched 1651 kB in 0s (3427 kB/s)
(Reading database ... 63149 files and directories currently installed.)
Preparing to unpack .../0-bind9-dnsutils_1%3a9.16.1-0ubuntu2.7_amd64.deb ...
Unpacking bind9-dnsutils (1:9.16.1-0ubuntu2.7) over (1:9.16.1-0ubuntu2.6) ...
Preparing to unpack .../1-bind9-libs_1%3a9.16.1-0ubuntu2.7_amd64.deb ...
Unpacking bind9-libs:amd64 (1:9.16.1-0ubuntu2.7) over (1:9.16.1-0ubuntu2.6) ...
Selecting previously unselected package apt-transport-https.
Preparing to unpack .../2-apt-transport-https_2.0.4_all.deb ...
Unpacking apt-transport-https (2.0.4) ...
Preparing to unpack .../3-curl_7.68.0-1ubuntu2.5_amd64.deb ...
Unpacking curl (7.68.0-1ubuntu2.5) over (7.68.0-1ubuntu2.4) ...
Preparing to unpack .../4-libcurl4_7.68.0-1ubuntu2.5_amd64.deb ...
Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.5) over (7.68.0-1ubuntu2.4) ...
Selecting previously unselected package gnupg-agent.
Preparing to unpack .../5-gnupg-agent_2.2.19-3ubuntu2.1_all.deb ...
Unpacking gnupg-agent (2.2.19-3ubuntu2.1) ...
Setting up apt-transport-https (2.0.4) ...
Setting up bind9-libs:amd64 (1:9.16.1-0ubuntu2.7) ...
Setting up gnupg-agent (2.2.19-3ubuntu2.1) ...
Setting up libcurl4:amd64 (7.68.0-1ubuntu2.5) ...
Setting up curl (7.68.0-1ubuntu2.5) ...
Setting up bind9-dnsutils (1:9.16.1-0ubuntu2.7) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
35.242.190.253
? Enter a <domain> for Coolify - example 'coollabs.io' or 'coolify.coollabs.io' without http/https: coolify.gmad.dev
? Email address for Let's Encrypt: [email protected]
35.246.45.246
Error
    at expressInstallation (/snapshot/coolify/index.js)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async coolifyMe (/snapshot/coolify/index.js)

from coolify.

andrasbacsai avatar andrasbacsai commented on May 9, 2024

Ah, I see the problem!

Sudo access (or executed by root user) is necessary for the installation!

Your public IP address (server's public address) does not match with the coolify.gmad.dev's A type DNS configuration.
Are you sure that the server's public IP should be 35.246.45.246? And not 35.242.190.253?

I will add some further checks to that part and also a select menu if there is more than one public IP address for a server!

from coolify.

geelen avatar geelen commented on May 9, 2024

Ah yes when I rebooted the image it got a new IP address. Strange that this time it didn't stop and ask me to change the DNS value any more?

Can the install script invoke sudo automatically for me or should that be added to the documentation?

from coolify.

andrasbacsai avatar andrasbacsai commented on May 9, 2024

Yeah, good catch! I left some buggy code in there. Updated the installation script again.

It should shout at you if:

  • The public IP address is not the same as for the domain.
  • You are not running the installation script with the root user (or sudo).

Thanks for pointing this out to me!

from coolify.

andrasbacsai avatar andrasbacsai commented on May 9, 2024

I've updated the installation scripts because of some bash feature/bug (#26).
You need to install it like this:

/bin/bash -c "$(curl -fsSL https://get.coollabs.io/install.sh)"

or with normal user (sudo):

sudo /bin/bash -c "$(curl -fsSL https://get.coollabs.io/install.sh)"

from coolify.

andrasbacsai avatar andrasbacsai commented on May 9, 2024

Closing now as it's probably solved already.

If you have any further questions, let me know!

from coolify.

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.