1

Topic: Gogs server doesn't work anymore after installing iRedMail

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.2
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Debian 10 Buster
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I was running on my server a Git frontend called Gogs (https://gogs.io) and after installing iRedMail the Gogs server would start normally but it would no longer be accessible from anywhere that wasn't localhost. If I go to my browser and go to the address for Gogs it tries to load but then times out or gives a 503 error, but if on the shell of the server I curl localhost:3000 I get the HTML code for the main Gogs page. I tried uninstalling iRedMail, uninstalling PostgreSQL, disabling firewalls, resetting my Gogs instance, but nothing worked.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by Cthulhu 2021-10-16 05:59:00)

Re: Gogs server doesn't work anymore after installing iRedMail

A painless self-hosted Git service, seems that it is not that painless at all.
what you did to the firewall and how you disabled it?

and it is ALWAYS suggested (and mandatory) to install iredmail on a fresh and clean system, you can add other stuff later on

edit: how did you install gogs?

best way is the following:
https://packager.io/gh/gogs/gogs/builds … /debian-10

3

Re: Gogs server doesn't work anymore after installing iRedMail

Cthulhu wrote:

A painless self-hosted Git service, seems that it is not that painless at all.
what you did to the firewall and how you disabled it?

I did sudo ufw disable and some iptables commands like -F, -X, -P OUTPUT ACCEPT.

4

Re: Gogs server doesn't work anymore after installing iRedMail

debian does not use ufw, and -P OUTPUT ACCEPT is not needed since iredmails firewall settings dont block any outgoing traffic at all

did you modify the /etc/iptables/rules.v4 file?

for me it doesn`t seem that you know what exacly you did at all

5 (edited by bull_55 2021-10-16 23:15:43)

Re: Gogs server doesn't work anymore after installing iRedMail

Cthulhu wrote:

did you modify the /etc/iptables/rules.v4 file?

The file does not exist.

6

Re: Gogs server doesn't work anymore after installing iRedMail

Uhhh anybody?

7

Re: Gogs server doesn't work anymore after installing iRedMail

Disable the "nftables" firewall please, it's used by iRedMail on Debian 10/11 by default.

8

Re: Gogs server doesn't work anymore after installing iRedMail

ZhangHuangbin wrote:

Disable the "nftables" firewall please, it's used by iRedMail on Debian 10/11 by default.

That worked great, thank you!