(해결 완료함) 클라우드 server ssh 접속 불가시 조치 방안??
조회 1322 추천 0
https://upcloud.com/resources/tutorials/install-secure-private-email-… (4507)
https://github.com/modoboa/modoboa/issues/1810 (152)
쪽팔리면 질문하지 맙시다. 소중한 답변 댓글을 삭제하는건 부끄러운 일 입니다
잘 돌아가는 서버는 건들지 말라는 현인들의 말씀을 무시하고 웹메일 지원 통합 메일 서버(링크 참조) 설치하다가 망했습니다. ㅠㅠ
(1년에 15000원 웹메일 비용 아낄려다가 망했어요..그냥 돈내고 웹메일 서비스 연장할걸...ㅠㅠ)
메일 서버 설치시 에러 메세지는 아래와 같습니다.
(에러 해결 방법은 맨아래)
-------
root@mail:~/modoboa-installer# ./run.py --interactive zerohana.com
Welcome to Modoboa installer!
Checking the installer...
Installer seems up to date!
Checks complete
Notice:
It is recommanded to run this installer on a FRESHLY installed server.
(ie. with nothing special already installed on it)
Warning:
Before you start the installation, please make sure the following DNS records exist for domain 'zerohana.com':
mail IN A
@ IN MX mail.zerohana.com.
Your mail server will be installed with the following components:
fail2ban modoboa automx amavis clamav dovecot nginx razor postfix postwhite spamassassin uwsgi radicale opendkim
Do you confirm? (Y/n) y
The process can be long, feel free to take a coffee and come back later ;)
Starting...
Generating new certificate using letsencrypt
Installing amavis
Installing spamassassin
Installing razor
Installing clamav
Installing fail2ban
Installing modoboa
User modoboa already exists, skipping creation but please make sure the /srv/modoboa directory exists.
b'Traceback (most recent call last): File "/srv/modoboa/env/bin/modoboa-admin.py", line 4, in from modoboa.core.commands import handle_command_line File "/srv/modoboa/env/lib/python3.6/site-packages/modoboa/core/__init__.py", line 3, in from django.core.urlresolvers import reverse File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/urlresolvers.py", line 16, in from django.http import Http404 File "/srv/modoboa/env/lib/python3.6/site-packages/django/http/__init__.py", line 4, in from django.http.response import ( File "/srv/modoboa/env/lib/python3.6/site-packages/django/http/response.py", line 13, in from django.core.serializers.json import DjangoJSONEncoder File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/serializers/__init__.py", line 23, in from django.core.serializers.base import SerializerDoesNotExist File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/serializers/base.py", line 6, in from django.db import models File "/srv/modoboa/env/lib/python3.6/site-packages/django/db/models/__init__.py", line 6, in from django.db.models.query import Q, QuerySet, Prefetch # NOQA File "/srv/modoboa/env/lib/python3.6/site-packages/django/db/models/query.py", line 13, in from django.db.models.fields import AutoField, Empty, FieldDoesNotExist File "/srv/modoboa/env/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 18, in from django import forms File "/srv/modoboa/env/lib/python3.6/site-packages/django/forms/__init__.py", line 6, in from django.forms.fields import * # NOQA File "/srv/modoboa/env/lib/python3.6/site-packages/django/forms/fields.py", line 18, in from django.forms.utils import from_current_timezone, to_current_timezone File "/srv/modoboa/env/lib/python3.6/site-packages/django/forms/utils.py", line 15, in from django.utils.html import format_html, format_html_join, escape File "/srv/modoboa/env/lib/python3.6/site-packages/django/utils/html.py", line 16, in from .html_parser import HTMLParser, HTMLParseError File "/srv/modoboa/env/lib/python3.6/site-packages/django/utils/html_parser.py", line 12, in HTMLParseError = _html_parser.HTMLParseErrorAttributeError: module \x27html.parser\x27 has no attribute \x27HTMLParseError\x27'
root@mail:~/modoboa-installer#
----------
서버 재가동후 ssh 접속시 불가능한 상태인데 네이버 클라우드에서는 고객 서버 설정에 도움은 안준다고 하네요.ㅠㅠ
(싱글모드 접속 방법 링크 보내주면 살펴보고 만일 제가 해결 못하면 그냥 서버 반납하고 새로 신청하는 방법도 있다고 합니다.)
그리고 콘솔 화면에서 부팅 에러는 아래와 같습니다.
현재 cpu 상태는 100% 로 나오네요..
ssh 로 서버에 접속하려면 아래처럼 에러 메세지 나오면서 접속이 안됩니다. 제가 멀 해야 할까요? ㅠㅠ
⚙ Starting SSH session
...
...
...
😨 Cannot open a new channel: Unexpected error
--------
서버 “강제 정지“하고 재부팅하니 정상으로 돌아왔습니다.
(서버 “정지“ 말고 “강제정지“가 따로 있었네요)
--------
문제는 PATH 변수에 sbin 경로, 즉 /sbin, /usr/sbin, /usr/local/sbin이 포함되지 않았다는 것입니다. PATH에 이것들을 추가함으로써 문제 없이 설치할 수 있었습니다. 즉 export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin.
클라우드의 장점중의 하나는, 잘 안되는 경우 지우고 얼마든지 다시 할수 있는건데 말입니다.
새거 VM 하나 올린후, 에러난 VM에 접속해서 설정을 살펴보면서 하나씩 복구해보세요.
이 서버 반납하면 다시 신청이 인되서요. ㅠㅠ
(마이크로 서버라 저렴해서인지...ㅠㅠ)
물론 더 비싼 서버로 신청은 가능합니다. 하지만 일단 해결해보고 안되면 최악의 경우에 다시 신청 하려고요.
어차피 리눅스 인스턴스(VM) 만들고 설정하는건 다를게 별로 없습니다.
다른 클라우드 계정에서 테스트 해보세요.
메일 서버는 isp 에서 인버스dns 안해줘서 물리서버에서는 고정ip 기 없으면 불가능해서 방법이 클리우드 뿐이라....
자세히 보니 그렇네요~ ㅠㅠ
그러니 재부팅이 안되는 상태군요. 물리 서버가 아니니 전원을 끌수도 없고...재부팅이 아니라 정지하고 재가동 한번 해봐야겠습니다.(그냥 “정지“는 안되고 “강제정지“하니 이제 되네요~^^ 감사합니다.)
관심 가져주신 모든분들에게 감사 드립니다.
메일 서버는 이제 포기하고 돈내고 사용하겠습니다. ㅠㅠ