unable to access HTTP error 502? #4

Open
opened 2018-10-16 19:03:23 +00:00 by Ghost · 1 comment

I cant access my Gitea install with this script. this is the output from the terminal

root@git:~# curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Adding user `gitea' ...
Adding new group `gitea' (1000) ...
Adding new user `gitea' (1000) with group `gitea' ...
Creating home directory `/opt/gitea' ...
Copying files from `/etc/skel' ...
Created symlink from /etc/systemd/system/multi-user.target.wants/gitea.service to /etc/systemd/system/gitea.service.


###########################
#    Time to Configure    #
###########################

Just a few more steps to complete at the setup URL:

        http://127.0.0.1:3000/

Future changes can be made by editing the config file:

        /opt/gitea/custom/conf/app.ini


P.S. Would you like to customize Gitea?

        Read basic instructions:
        https://git.coolaj86.com/coolaj86/gitea-installer.sh/_edit/master/install.bash

        View current templates:
        https://github.com/go-gitea/gitea/tree/v1.5.2/templates

        See a sample app.ini:
        https://github.com/go-gitea/gitea/blob/v1.5.2/custom/conf/app.ini.sample

root@git:~# service --status-all
 [ + ]  apache-htcacheclean
 [ + ]  apache2
 [ - ]  bind9
 [ - ]  bootmisc.sh
 [ - ]  checkfs.sh
 [ - ]  checkroot-bootclean.sh
 [ - ]  checkroot.sh
 [ + ]  cron
 [ - ]  fetchmail
 [ - ]  hostname.sh
 [ - ]  hwclock.sh
 [ - ]  killprocs
 [ + ]  kmod
 [ ? ]  modules_dep.sh
 [ - ]  mountall-bootclean.sh
 [ - ]  mountall.sh
 [ - ]  mountdevsubfs.sh
 [ - ]  mountkernfs.sh
 [ - ]  mountnfs-bootclean.sh
 [ - ]  mountnfs.sh
 [ + ]  networking
 [ - ]  nmbd
 [ - ]  ondemand
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  postfix
 [ + ]  procps
 [ + ]  quota
 [ - ]  quotarpc
 [ + ]  rc.local
 [ + ]  rpcbind
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  samba
 [ - ]  samba-ad-dc
 [ + ]  saslauthd
 [ - ]  screen-cleanup
 [ - ]  sendsigs
 [ - ]  smbd
 [ + ]  ssh
 [ + ]  udev
 [ - ]  umountfs
 [ - ]  umountnfs.sh
 [ - ]  umountroot
 [ + ]  urandom
 [ - ]  uuidd
 [ - ]  wide-dhcpv6-client
 [ + ]  xinetd
I cant access my Gitea install with this script. this is the output from the terminal ```bash root@git:~# curl -fsSL https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/branch/master/install.bash | bash perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Adding user `gitea' ... Adding new group `gitea' (1000) ... Adding new user `gitea' (1000) with group `gitea' ... Creating home directory `/opt/gitea' ... Copying files from `/etc/skel' ... Created symlink from /etc/systemd/system/multi-user.target.wants/gitea.service to /etc/systemd/system/gitea.service. ########################### # Time to Configure # ########################### Just a few more steps to complete at the setup URL: http://127.0.0.1:3000/ Future changes can be made by editing the config file: /opt/gitea/custom/conf/app.ini P.S. Would you like to customize Gitea? Read basic instructions: https://git.coolaj86.com/coolaj86/gitea-installer.sh/_edit/master/install.bash View current templates: https://github.com/go-gitea/gitea/tree/v1.5.2/templates See a sample app.ini: https://github.com/go-gitea/gitea/blob/v1.5.2/custom/conf/app.ini.sample root@git:~# service --status-all [ + ] apache-htcacheclean [ + ] apache2 [ - ] bind9 [ - ] bootmisc.sh [ - ] checkfs.sh [ - ] checkroot-bootclean.sh [ - ] checkroot.sh [ + ] cron [ - ] fetchmail [ - ] hostname.sh [ - ] hwclock.sh [ - ] killprocs [ + ] kmod [ ? ] modules_dep.sh [ - ] mountall-bootclean.sh [ - ] mountall.sh [ - ] mountdevsubfs.sh [ - ] mountkernfs.sh [ - ] mountnfs-bootclean.sh [ - ] mountnfs.sh [ + ] networking [ - ] nmbd [ - ] ondemand [ - ] plymouth [ - ] plymouth-log [ + ] postfix [ + ] procps [ + ] quota [ - ] quotarpc [ + ] rc.local [ + ] rpcbind [ - ] rsync [ + ] rsyslog [ - ] samba [ - ] samba-ad-dc [ + ] saslauthd [ - ] screen-cleanup [ - ] sendsigs [ - ] smbd [ + ] ssh [ + ] udev [ - ] umountfs [ - ] umountnfs.sh [ - ] umountroot [ + ] urandom [ - ] uuidd [ - ] wide-dhcpv6-client [ + ] xinetd ```
Author

Hi @DovaMerith:

The main error is:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C")

You have to fix LC_LOCALE and choose one of two options:

export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Reboot.

Or

sudo nano /etc/locale.gen

Put in the file:

en_US.UTF-8 UTF-8

And run the command sudo locale-gen. Reboot.

Hi @DovaMerith: The main error is: ``` perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C") ``` You have to fix `LC_LOCALE` and choose one of two options: ``` export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8 ``` Reboot. Or ``` sudo nano /etc/locale.gen ``` Put in the file: ``` en_US.UTF-8 UTF-8 ``` And run the command `sudo locale-gen`. Reboot.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/gitea-installer.sh#4
No description provided.