Iredmail internal server error

iredadmin Internal Server Error (Page 1) — iRedMail Support — iRedMail — Works on CentOS, Rocky, Debian, Ubuntu, FreeBSD, OpenBSD

Pages 1

You must login or register to post a reply

1 2018-11-19 04:59:58

  • caospuntomedia
  • Member
  • Offline
  • Registered: 2018-11-19
  • Posts: 5

Topic: iredadmin Internal Server Error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release): 0.9.8
— Linux/BSD distribution name and version: CentOS 75.1804
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
— Web server (Apache or Nginx): Nginx 1.15.6
— Manage mail accounts with iRedAdmin-Pro? No
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====
From /var/log/messages

uwsgi: Traceback (most recent call last):
uwsgi: File «./iredadmin.py», line 9, in <module>
uwsgi: from libs import iredbase
uwsgi: File «/var/www/iRedAdmin-0.9.1/libs/iredbase.py», line 18, in <module>
uwsgi: from libs import iredutils
uwsgi: File «/var/www/iRedAdmin-0.9.1/libs/iredutils.py», line 14, in <module>
uwsgi: import settings
uwsgi: ImportError: No module named settings
uwsgi: unable to load app 0 (mountpoint=’mydomain.tld|/iredadmin’) (callable not found or import error)
uwsgi: — no python application found, check your startup logs for errors —
uwsgi: caos.media [pid: 565|app: -1|req: -1/1] ###.###.##.## () {54 vars in 856 bytes} [Sun Nov 18 14:37:57 2018] GET /iredadmin => generated 21 bytes in 249 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
uwsgi: announcing my loyalty to the Emperor…
uwsgi: Sun Nov 18 14:37:57 2018 — [emperor] vassal iredadmin.ini is now loyal

From /etc/uwsgi.d/iredadmin.ini

[uwsgi]
plugins = python
vhost = true
socket = /var/run/uwsgi/iredadmin.socket
pidfile = /var/run/uwsgi/iredadmin.pid
chown-socket = nginx:nginx
chmod-socket = 660
uid = iredadmin
gid = iredadmin
enable-threads = true

From /etc/nginx/templates/iredadmin.tmpl

# Settings for iRedAdmin.

# static files under /iredadmin/static
location ~ ^/iredadmin/static/(.*) {
    alias /var/www/iredadmin/static/$1;
}

# Handle newsletter-style subscription/unsubscription supported in iRedAdmin-Pro.
location ~ ^/newsletter/ {
    include /etc/nginx/templates/hsts.tmpl;

    include uwsgi_params;
    uwsgi_pass unix:/var/run/uwsgi/iredadmin.socket;
    uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
    uwsgi_param UWSGI_SCRIPT iredadmin;
    uwsgi_param SCRIPT_NAME /iredadmin;
    uwsgi_param REQUEST_URI /iredadmin/$request_uri;
}

# Python scripts
location ~ ^/iredadmin(.*) {
    rewrite ^/iredadmin(/.*)$ $1 break;

    include /etc/nginx/templates/hsts.tmpl;

    include uwsgi_params;
    uwsgi_pass unix:/var/run/uwsgi/iredadmin.socket;
    uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
    uwsgi_param UWSGI_SCRIPT iredadmin;
    uwsgi_param SCRIPT_NAME /iredadmin;

    # Access control
    #allow 127.0.0.1;
    #allow 192.168.1.10;
    #allow 192.168.1.0/24;
    #deny all;
}

# iRedAdmin: redirect /iredadmin to /iredadmin/
location = /iredadmin {
    rewrite ^ /iredadmin/;
}

File list from /var/www/iredadmin

AUTHORS
ChangeLog
controllers
docs
i18n
iredadmin.py
libs
LICENSE
README
settings.py
settings.pyc
settings.py.ldap.sample
settings.py.mysql.sample
settings.py.pgsql.sample
SQL
static
templates
tools

File list from /var/www/iredadmin/libs

default_settings.py
default_settings.pyc
form_utils.py
__init__.py
__init__.pyc
iredbase.py
ireddate.py
iredutils.py
iredutils.pyc
languages.py
ldaplib
md5crypt.py
md5crypt.pyc
mysql
panel
pgsql

—-

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

2 Reply by ZhangHuangbin 2018-11-19 07:38:08

  • ZhangHuangbin
  • ZhangHuangbin
  • iRedMail Developers
  • Offline
  • Registered: 2009-05-06
  • Posts: 30,080

Re: iredadmin Internal Server Error

What’s the file owner/group and permission of file /var/www/iRedAdmin-0.9.1/settings.py (and also «settings.pyc» if exists)?

3 Reply by caospuntomedia 2018-11-19 12:23:46 (edited by caospuntomedia 2018-11-19 12:30:05)

  • caospuntomedia
  • Member
  • Offline
  • Registered: 2018-11-19
  • Posts: 5

Re: iredadmin Internal Server Error

Dir/File       Owner  Group  Permissions
iredadmin    root     root     777
libs              root     root     555
settings.py   root     root     400
settings.pyc root     root     400

4 Reply by ZhangHuangbin 2018-11-20 09:33:19

  • ZhangHuangbin
  • ZhangHuangbin
  • iRedMail Developers
  • Offline
  • Registered: 2009-05-06
  • Posts: 30,080

Re: iredadmin Internal Server Error

caospuntomedia wrote:

settings.py   root     root     400
settings.pyc root     root     400

These 2 should be owned by user/group ‘iredadmin:iredadmin’.

5 Reply by caospuntomedia 2018-11-20 10:34:40

  • caospuntomedia
  • Member
  • Offline
  • Registered: 2018-11-19
  • Posts: 5

Re: iredadmin Internal Server Error

Thanks! It fixed it.

Pages 1

You must login or register to post a reply

I have the same issue («internal server error» after fresh install)
Absolute fresh Debian 10, fresh installation, I did everything absolutely according to the book.

pip2 install web.py==0.51 did not fix it.

But by first installing python-setuptools (apt-get install python-setuptools)
and afterwards installing web.py (pip install web.py==0.51) it worked!

During installation it already showed the problem:

Collecting web.py==0.51
  Using cached https://files.pythonhosted.org/packages/45/81/4f598ed7089a7be632d5787882c8a384f413ef4262b4fe30b1972e61f9dc/web.py-0.51.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-5A2227/web.py/

content of /var/log/nginx/error.log

2020/08/18 23:43:24 [error] 739#739: *793 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.54.160.21, server: _, request: "GET /index.php?s=/Index/thinkapp/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "116.203.202.52:443"
2020/08/18 23:46:52 [error] 739#739: *878 open() "/var/www/html/api/jsonws/invoke" failed (2: No such file or directory), client: 195.54.160.21, server: _, request: "POST /api/jsonws/invoke HTTP/1.1", host: "116.203.202.52:443"
2020/08/19 00:22:04 [error] 720#720: *667 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.54.160.21, server: _, request: "GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "116.203.202.52:443"
2020/08/19 00:22:04 [error] 720#720: *669 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.54.160.21, server: _, request: "POST /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "116.203.202.52:443"

Содержание

  1. Sep 30, 2022: iRedMail-1.6.2 has been released.
  2. Posts: 11
  3. 1 Topic by jwegge 2017-10-26 22:49:50
  4. Topic: internal server error iredadmin
  5. Sep 30, 2022: iRedMail-1.6.2 has been released.
  6. Posts: 5
  7. 1 Topic by riosdesantiago 2018-06-21 04:57:33 (edited by riosdesantiago 2018-06-21 04:58:41)
  8. Topic: Internal server error
  9. Sep 30, 2022: iRedMail-1.6.2 has been released.
  10. Posts: 5
  11. 1 Topic by caospuntomedia 2018-11-19 04:59:58
  12. Topic: iredadmin Internal Server Error
  13. 2 Reply by ZhangHuangbin 2018-11-19 07:38:08
  14. Re: iredadmin Internal Server Error
  15. 3 Reply by caospuntomedia 2018-11-19 12:23:46 (edited by caospuntomedia 2018-11-19 12:30:05)
  16. Re: iredadmin Internal Server Error
  17. 4 Reply by ZhangHuangbin 2018-11-20 09:33:19
  18. Re: iredadmin Internal Server Error
  19. Sep 30, 2022: iRedMail-1.6.2 has been released.
  20. Posts: 9
  21. 1 Topic by wstray 2019-12-12 15:53:17
  22. Topic: logout iredadmin -> internal server error

Sep 30, 2022: iRedMail-1.6.2 has been released.

You must login or register to post a reply

Posts: 11

1 Topic by jwegge 2017-10-26 22:49:50

  • jwegge
  • Member
  • Offline
  • Registered: 2016-02-21
  • Posts: 14

Topic: internal server error iredadmin

======== Required information ====
— iRedMail version (check /etc/iredmail-release): 0.9.7
— Linux/BSD distribution name and version: Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-28-generic x86_64)
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
— Web server (Apache or Nginx): apache
— Manage mail accounts with iRedAdmin-Pro? yes
====
/var/log/apache2/error.log
.
[Thu Oct 26 16:43:44.356300 2017] [wsgi:error] [pid 58700] [client 10.201.13.249:62162] Timeout when reading response headers from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579446 2017] [wsgi:error] [pid 42016] [client 10.201.13.249:62838] Truncated or oversized response headers received from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579501 2017] [wsgi:error] [pid 65986] [client 10.201.13.249:62834] Truncated or oversized response headers received from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579675 2017] [wsgi:error] [pid 67154] [client 10.201.13.249:62823] Truncated or oversized response headers received from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579444 2017] [wsgi:error] [pid 45398] [client 10.201.13.249:62837] Truncated or oversized response headers received from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
.

After checking the contents of an email in quarantaine, the web-ui hangs with an Internal Server Error
when one wants to start a second action.

One can check the content of quarantained mail, but afterwards the web-ui hangs.
One can release or delete emails from quarantaine, provided we did not first check the content of a message.

«Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at postmaster@YYY.ZZZ to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.18 (Ubuntu) Server at XXX.YYY.ZZZ Port 443″

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

Источник

Sep 30, 2022: iRedMail-1.6.2 has been released.

You must login or register to post a reply

Posts: 5

1 Topic by riosdesantiago 2018-06-21 04:57:33 (edited by riosdesantiago 2018-06-21 04:58:41)

  • riosdesantiago
  • Member
  • Offline
  • Registered: 2017-02-11
  • Posts: 4

Topic: Internal server error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release): 0.9.8
— Linux/BSD distribution name and version: UBUNTU 16.04
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
— Web server (Apache or Nginx): APACHE
— Manage mail accounts with iRedAdmin-Pro? YES
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====

Whenever i try to edit system preferences in iredadmin pro, or try to edit an user i get «internal server error»
error log:

[Wed Jun 20 14:42:38.619195 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] Traceback (most recent call last):
[Wed Jun 20 14:42:38.619211 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/web/application.py», line 239, in process
[Wed Jun 20 14:42:38.619214 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return self.handle()
[Wed Jun 20 14:42:38.619215 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/web/application.py», line 230, in handle
[Wed Jun 20 14:42:38.619217 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return self._delegate(fn, self.fvars, args)
[Wed Jun 20 14:42:38.619219 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/web/application.py», line 420, in _delegate
[Wed Jun 20 14:42:38.619220 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return handle_class(cls)
[Wed Jun 20 14:42:38.619222 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/web/application.py», line 396, in handle_class
[Wed Jun 20 14:42:38.619224 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return tocall(*args)
[Wed Jun 20 14:42:38.619225 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/opt/www/iredadmin/controllers/sql/user.py», line 322, in GET
[Wed Jun 20 14:42:38.619227 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] _qr = mlmmj.get_subscribed_lists(mail=mail, query_all_lists=False)
[Wed Jun 20 14:42:38.619228 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/opt/www/iredadmin/libs/mlmmj/__init__.py», line 327, in get_subscribed_lists
[Wed Jun 20 14:42:38.619230 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] r = requests.get(url, params=params, headers=api_headers, verify=_verify_ssl)
[Wed Jun 20 14:42:38.619231 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/api.py», line 72, in get
[Wed Jun 20 14:42:38.619233 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return request(‘get’, url, params=params, **kwargs)
[Wed Jun 20 14:42:38.619234 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/api.py», line 58, in request
[Wed Jun 20 14:42:38.619236 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return session.request(method=method, url=url, **kwargs)
[Wed Jun 20 14:42:38.619237 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/sessions.py», line 502, in request
[Wed Jun 20 14:42:38.619239 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] resp = self.send(prep, **send_kwargs)
[Wed Jun 20 14:42:38.619240 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/sessions.py», line 612, in send
[Wed Jun 20 14:42:38.619246 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] r = adapter.send(request, **kwargs)
[Wed Jun 20 14:42:38.619247 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/adapters.py», line 504, in send
[Wed Jun 20 14:42:38.619249 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] raise ConnectionError(e, request=request)
[Wed Jun 20 14:42:38.619251 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] ConnectionError: HTTPConnectionPool(host=’127.0.0.1′, port=7790): Max retries exceeded with url: /$/api/subscriber/USER@DOMAIN.com/subscribed?query_all_lists=no&email_only=no (Caused by NewConnectionError(‘ : Failed to establish a new connection: [Errno 111] Connection refused’,))
[Wed Jun 20 14:42:38.619255 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762]

My settings in /opt/mlmmjadmin/settings.py

iredmail_sql_db_type = ‘mysql’
iredmail_sql_db_server = ‘127.0.0.1’
iredmail_sql_db_port = 3306
iredmail_sql_db_name = ‘vmail’
iredmail_sql_db_user = ‘vmailadmin’
iredmail_sql_db_password = ‘password’

MLMMJ_SPOOL_DIR = ‘/var/vmail/mlmmj’
MLMMJ_ARCHIVE_DIR = ‘/var/vmail/mlmmj-archive’
MLMMJ_DEFAULT_PROFILE_SETTINGS.update(<‘smtp_port’: 10027>)

I updated mlmmj to version 1.4 the issue still persist

If i run the command python mlmmjadmin.py in cd /opt/mlmmjadmin/

Everything works fine as long as i don’t cancel the command, any suggestions?

Thanks in advance!

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

Источник

Sep 30, 2022: iRedMail-1.6.2 has been released.

iRedMail → iRedMail Support → iredadmin Internal Server Error

You must login or register to post a reply

Posts: 5

1 Topic by caospuntomedia 2018-11-19 04:59:58

  • caospuntomedia
  • Member
  • Offline
  • Registered: 2018-11-19
  • Posts: 5

Topic: iredadmin Internal Server Error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release): 0.9.8
— Linux/BSD distribution name and version: CentOS 75.1804
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
— Web server (Apache or Nginx): Nginx 1.15.6
— Manage mail accounts with iRedAdmin-Pro? No
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====
From /var/log/messages

uwsgi: Traceback (most recent call last):
uwsgi: File «./iredadmin.py», line 9, in
uwsgi: from libs import iredbase
uwsgi: File «/var/www/iRedAdmin-0.9.1/libs/iredbase.py», line 18, in
uwsgi: from libs import iredutils
uwsgi: File «/var/www/iRedAdmin-0.9.1/libs/iredutils.py», line 14, in
uwsgi: import settings
uwsgi: ImportError: No module named settings
uwsgi: unable to load app 0 (mountpoint=’mydomain.tld|/iredadmin’) (callable not found or import error)
uwsgi: — no python application found, check your startup logs for errors —
uwsgi: caos.media [pid: 565|app: -1|req: -1/1] ###.###.##.## () <54 vars in 856 bytes>[Sun Nov 18 14:37:57 2018] GET /iredadmin => generated 21 bytes in 249 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
uwsgi: announcing my loyalty to the Emperor.
uwsgi: Sun Nov 18 14:37:57 2018 — [emperor] vassal iredadmin.ini is now loyal

[uwsgi]
plugins = python
vhost = true
socket = /var/run/uwsgi/iredadmin.socket
pidfile = /var/run/uwsgi/iredadmin.pid
chown-socket = nginx:nginx
chmod-socket = 660
uid = iredadmin
gid = iredadmin
enable-threads = true

# Settings for iRedAdmin.

# static files under /iredadmin/static
location

^/iredadmin/static/(.*) <
alias /var/www/iredadmin/static/$1;
>

# Handle newsletter-style subscription/unsubscription supported in iRedAdmin-Pro.
location

^/newsletter/ <
include /etc/nginx/templates/hsts.tmpl;

include uwsgi_params;
uwsgi_pass unix:/var/run/uwsgi/iredadmin.socket;
uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
uwsgi_param UWSGI_SCRIPT iredadmin;
uwsgi_param SCRIPT_NAME /iredadmin;
uwsgi_param REQUEST_URI /iredadmin/$request_uri;
>

^/iredadmin(.*) <
rewrite ^/iredadmin(/.*)$ $1 break;

include uwsgi_params;
uwsgi_pass unix:/var/run/uwsgi/iredadmin.socket;
uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
uwsgi_param UWSGI_SCRIPT iredadmin;
uwsgi_param SCRIPT_NAME /iredadmin;

# Access control
#allow 127.0.0.1;
#allow 192.168.1.10;
#allow 192.168.1.0/24;
#deny all;
>

# iRedAdmin: redirect /iredadmin to /iredadmin/
location = /iredadmin <
rewrite ^ /iredadmin/;
>

File list from /var/www/iredadmin

File list from /var/www/iredadmin/libs

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

2 Reply by ZhangHuangbin 2018-11-19 07:38:08

  • ZhangHuangbin
  • iRedMail Developers
  • Offline
  • Registered: 2009-05-06
  • Posts: 30,018

Re: iredadmin Internal Server Error

What’s the file owner/group and permission of file /var/www/iRedAdmin-0.9.1/settings.py (and also «settings.pyc» if exists)?

3 Reply by caospuntomedia 2018-11-19 12:23:46 (edited by caospuntomedia 2018-11-19 12:30:05)

  • caospuntomedia
  • Member
  • Offline
  • Registered: 2018-11-19
  • Posts: 5

Re: iredadmin Internal Server Error

Dir/File Owner Group Permissions
iredadmin root root 777
libs root root 555
settings.py root root 400
settings.pyc root root 400

4 Reply by ZhangHuangbin 2018-11-20 09:33:19

  • ZhangHuangbin
  • iRedMail Developers
  • Offline
  • Registered: 2009-05-06
  • Posts: 30,018

Re: iredadmin Internal Server Error

settings.py root root 400
settings.pyc root root 400

These 2 should be owned by user/group ‘iredadmin:iredadmin’.

Источник

Sep 30, 2022: iRedMail-1.6.2 has been released.

iRedMail → iRedMail Support → logout iredadmin -> internal server error

You must login or register to post a reply

Posts: 9

1 Topic by wstray 2019-12-12 15:53:17

  • wstray
  • Member
  • Offline
  • Registered: 2019-12-12
  • Posts: 4

Topic: logout iredadmin -> internal server error

I want to apologize for my English right away
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release): 1.0
— Deployed with iRedMail Easy or the downloadable installer? no
— Linux/BSD distribution name and version: FreeBSD (11.3/12.1 — I tried on two versions)
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL(MariaDB)
— Web server (Apache or Nginx): Nginx
— Manage mail accounts with iRedAdmin-Pro? no
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====

In order:
Full installation of FreeBSD. A clean, «stable . dvd1.iso» image.
Actions.
1) portsnap fetch extract update
2) pkg install bash-static or cd / usr / ports / shell / bash make install clean does not matter for the final result.
3) bash iRedMail.sh
4) After the installation is complete, reboot.

We launch:
Roundcoub — works
/ iredadmin — works on login, does not work on logout

iRedAdmin:
1) Log in using postmaster@mydomain.com + password
2) We perform any actions — mail registration, user registration, viewing logs. All perfectly.
3) Click logout — internal server error.

— There are no logs for this error.
— I can’t find the reason.
-I can’t get to the ip / iredadmin page anymore (for some time) — as an internal server error.
-After some time I can get to the / iredadmin page and enter the admin panel. (as I understand logout occurs by timeout)
-At this time, I can go to the admin panel through another browser.

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

Источник

I have the same issue («internal server error» after fresh install)
Absolute fresh Debian 10, fresh installation, I did everything absolutely according to the book.

pip2 install web.py==0.51 did not fix it.

But by first installing python-setuptools (apt-get install python-setuptools)
and afterwards installing web.py (pip install web.py==0.51) it worked!

During installation it already showed the problem:

Collecting web.py==0.51
  Using cached https://files.pythonhosted.org/packages/45/81/4f598ed7089a7be632d5787882c8a384f413ef4262b4fe30b1972e61f9dc/web.py-0.51.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-5A2227/web.py/

content of /var/log/nginx/error.log

2020/08/18 23:43:24 [error] 739#739: *793 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.54.160.21, server: _, request: "GET /index.php?s=/Index/thinkapp/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "116.203.202.52:443"
2020/08/18 23:46:52 [error] 739#739: *878 open() "/var/www/html/api/jsonws/invoke" failed (2: No such file or directory), client: 195.54.160.21, server: _, request: "POST /api/jsonws/invoke HTTP/1.1", host: "116.203.202.52:443"
2020/08/19 00:22:04 [error] 720#720: *667 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.54.160.21, server: _, request: "GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "116.203.202.52:443"
2020/08/19 00:22:04 [error] 720#720: *669 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.54.160.21, server: _, request: "POST /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "116.203.202.52:443"

Понравилась статья? Поделить с друзьями:
  • Iqos ошибки на индикаторе
  • Iqos 3 duos сброс ошибок
  • Iqos 3 duos ошибка при зарядке
  • Iq300 siemens ошибка e23
  • Ipyleaflet error displaying widget model not found