https://www.plex.tv/downloads/
plex 공식 사이트에서 ubuntu 용 plex 서버 설치 파일을 다운로드 한다.
다운로드한 파일을 다음 명령으로 설치한다.
$ sudo dpkg -i plexmediaserver_1.7.5.4035-313f93718_amd64.deb
설치 후 http://localhost:32400/web 사이트로 접속하면 plex 사이트가 열린다. 처음엔 local 환경에서만 서버 설정이 가능하기 때문에 local 환경에서 사이트에 로그인 후 원격으로도 접속 가능하도록 설정해야 한다.
문제해결
plex 설치 후 재생을 하려는데 코덱 변환에 실패했다는 메시지가 계속 출력 되었다. system log를 보면 아래와 같은 메시지들이 출력 되는 상황이다.
메시지를 읽어보면 Codecs: Download Failed 라는 메시지를 확인할 수 있다.
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/b077134-1269-linux-ubuntu-x86_64 위치에 코덱을 다운로드 해야하는데 다운로드가 안 된 것이다. 그래서 필요한 코덱들을 직접 wget 명령으로 Codecs 디렉토리에 다운로드 하니 정상 재생 되었다.
Dec 20, 2017 16:29:52.290 [0x7f30f0fff700] DEBUG - HTTP requesting GET https://plex.tv/api/codecs/h264_decoder?build=linux-ubuntu-x86_64&deviceId=10b33d8b-234a-4757-89b9-31b07a47b5e8&oldestPreviousVersion=1%2E10%2E1%2E4602-f54242b6b&version=b077134-1269 Dec 20, 2017 16:29:53.423 [0x7f30f0fff700] DEBUG - HTTP 200 response from GET https://plex.tv/api/codecs/h264_decoder?build=linux-ubuntu-x86_64&deviceId=10b33d8b-234a-4757-89b9-31b07a47b5e8&oldestPreviousVersion=1%2E10%2E1%2E4602-f54242b6b&version=b077134-1269 Dec 20, 2017 16:29:53.424 [0x7f30f0fff700] DEBUG - HTTP requesting GET https://downloads.plex.tv/codecs/b077134-1269/linux-ubuntu-x86_64/libh264_decoder.so Dec 20, 2017 16:30:43.844 [0x7f30f0fff700] ERROR - Error issuing curl_easy_perform(handle): 28 Dec 20, 2017 16:30:43.844 [0x7f30f0fff700] DEBUG - HTTP simulating 408 after curl timeout Dec 20, 2017 16:30:43.845 [0x7f30f0fff700] ERROR - Codecs: Download failed: Failed to download 'https://downloads.plex.tv/codecs/b077134-1269/linux-ubuntu-x86_64/libh264_decoder.so': 408 Dec 20, 2017 16:30:43.845 [0x7f30f0fff700] ERROR - Error configuring transcoder: Decoder install failed: h264 Dec 20, 2017 16:30:43.845 [0x7f30f0fff700] DEBUG - Streaming Resource: Terminating session 0x7f30f001e8e0:i1vcakimvjq5i7hofsnpup97 which is using 1960kbps of WAN bandwidth. Used is now 0kbps Dec 20, 2017 16:30:43.845 [0x7f30f0fff700] DEBUG - Streaming Resource: Terminating session 0x7f30f001e8e0:i1vcakimvjq5i7hofsnpup97 which is using transcoder slot. Used slots is now 0 Dec 20, 2017 16:30:43.845 [0x7f30f0fff700] DEBUG - Streaming Resource: Terminated session 0x7f30f001e8e0:i1vcakimvjq5i7hofsnpup97 with reason Conversion failed. A required codec could not be found or failed to install. Dec 20, 2017 16:30:43.845 [0x7f30f3ffd700] DEBUG - Killing job.
아무래도 이렇게 수동으로 다운로드 하는게 이상해서 아에 설치를 다시 했더니 또 정상 동작한다…. 이유를 모르겠네.
참고
- PLEX Media Server
- Plex 설치 및 설정하기
- https://linode.com/docs/applications/media-servers/install-plex-media-server-on-ubuntu-16-04/
- https://www.htpcguides.com/install-plex-media-server-ubuntu-16-x-and-later/
- https://forums.plex.tv/discussion/244822/conversion-failed-a-required-codec-could-not-be-found-or-failed-to-install-a-bad-update/p2
- 한글 자막 설정하기
- Plex Media Server Daum플러그인 설치하기.