Forem Creators and Builders 🌱

Discussion on: Installing Forem on Ubuntu 18.04 (Part 7 - Forem)

Collapse
 
madhan profile image
Madhan • Edited

Hi Akhil,

When i run the cmd "bin/setup" i am getting below error,

**ubuntu@ip-172-31-22-238:~/forem$ bin/setup
== Installing dependencies ==
The Gemfile's dependencies are satisfied
Successfully installed foreman-0.87.2
Parsing documentation for foreman-0.87.2
Done installing documentation for foreman after 0 seconds
1 gem installed
Yarn executable was not detected in the system.
Download Yarn at yarnpkg.com/en/docs/install

== Copying sample files ==

== Initializing the application ==

== Preparing database ==
rails aborted!
ActiveRecord::ConnectionNotEstablished: fe_sendauth: no password supplied
/home/ubuntu/forem/bin/rails:5:in <top (required)>'
/home/ubuntu/forem/bin/spring:10:in
require'
/home/ubuntu/forem/bin/spring:10:in block in <top (required)>'
/home/ubuntu/forem/bin/spring:7:in
'

Caused by:
PG::ConnectionBad: fe_sendauth: no password supplied
/home/ubuntu/forem/bin/rails:5:in <top (required)>'
/home/ubuntu/forem/bin/spring:10:in
require'
/home/ubuntu/forem/bin/spring:10:in block in <top (required)>'
/home/ubuntu/forem/bin/spring:7:in
'
Tasks: TOP => db:prepare
(See full trace by running task with --trace)

== Command ["bin/rails app_initializer:setup forem:setup"] failed ==**

Collapse
 
mercy_thuyle profile image
WhiTExB3AR • Edited

Hi @madhan
I also stuck like you with error

`rails aborted!
ActiveRecord::ConnectionNotEstablished: fe_sendauth: no password supplied

Caused by:
PG::ConnectionBad: fe_sendauth: no password supplied

Tasks: TOP => db:prepare
(See full trace by running task with --trace)

== Command ["bin/rails app_initializer:setup forem:setup"] failed ==`

Did you know how to fix? I really need help.

Collapse
 
mercy_thuyle profile image
WhiTExB3AR • Edited

Hi @avalerionv and @madhan
I fixed, I edited the .env with user, password and database I created in postgresql like this
DATABASE_NAME="abd"
DATABASE_URL="postgresql://abd:abd@localhost"

anyway, the bin/startup not work, error-log like this:
`~/forem$ bin/startup
== STARTING UP ==
18:22:46 web.1 | started with pid 11077
18:22:46 webpacker.1 | started with pid 11078
18:22:46 sidekiq.1 | started with pid 11079
00h00m00s 0/0: : 18:22:53 webpacker.1 | ERROR: [Errno 21] Is a directory: 'bin'
18:22:54 webpacker.1 | CRITICAL:root:Traceback (most recent call last):
18:22:54 webpacker.1 | File "/usr/lib/python3/dist-packages/cliapp/app.py", line 182, in _run
18:22:54 webpacker.1 | self.settings.load_configs()
18:22:54 webpacker.1 | File "/usr/lib/python3/dist-packages/cliapp/settings.py", line 829, in load_configs
18:22:54 webpacker.1 | self._read_ini(pathname, f)
18:22:54 webpacker.1 | File "/usr/lib/python3/dist-packages/cliapp/settings.py", line 838, in _read_ini
18:22:54 webpacker.1 | cp.readfp(f)
18:22:54 webpacker.1 | File "/usr/lib/python3.8/configparser.py", line 763, in readfp
18:22:54 webpacker.1 | self.read_file(fp, source=filename)
18:22:54 webpacker.1 | File "/usr/lib/python3.8/configparser.py", line 718, in read_file
18:22:54 webpacker.1 | self._read(f, source)
18:22:54 webpacker.1 | File "/usr/lib/python3.8/configparser.py", line 1082, in _read
18:22:54 webpacker.1 | raise MissingSectionHeaderError(fpname, lineno, line)
18:22:54 webpacker.1 | configparser.MissingSectionHeaderError: File contains no section headers.
18:22:54 webpacker.1 | file: '/home/ubuntu/forem/config/webpack/development.js', line: 1
18:22:54 webpacker.1 | '/* eslint-env node /\n'
18:22:54 webpacker.1 |
18:22:54 webpacker.1 | Traceback (most recent call last):
18:22:54 webpacker.1 | File "/usr/lib/python3/dist-packages/cliapp/app.py", line 182, in _run
18:22:54 webpacker.1 | self.settings.load_configs()
18:22:54 webpacker.1 | File "/usr/lib/python3/dist-packages/cliapp/settings.py", line 829, in load_configs
18:22:54 webpacker.1 | self._read_ini(pathname, f)
18:22:54 webpacker.1 | File "/usr/lib/python3/dist-packages/cliapp/settings.py", line 838, in _read_ini
18:22:54 webpacker.1 | cp.readfp(f)
18:22:54 webpacker.1 | File "/usr/lib/python3.8/configparser.py", line 763, in readfp
18:22:54 webpacker.1 | self.read_file(fp, source=filename)
18:22:54 webpacker.1 | File "/usr/lib/python3.8/configparser.py", line 718, in read_file
18:22:54 webpacker.1 | self._read(f, source)
18:22:54 webpacker.1 | File "/usr/lib/python3.8/configparser.py", line 1082, in _read
18:22:54 webpacker.1 | raise MissingSectionHeaderError(fpname, lineno, line)
18:22:54 webpacker.1 | configparser.MissingSectionHeaderError: File contains no section headers.
18:22:54 webpacker.1 | file: '/home/ubuntu/forem/config/webpack/development.js', line: 1
18:22:54 webpacker.1 | '/
eslint-env node */\n'
18:22:54 webpacker.1 | exited with code 1
18:22:54 system | sending SIGTERM to all processes
18:22:54 web.1 | terminated by SIGTERM
18:22:54 sidekiq.1 | terminated by SIGTERM

== Command ["foreman start -f Procfile.dev"] failed ==`