우분투[리눅스]에서 sudo apt update 후 sudo apt upgrade를 실행 한 후 owncloud 도 같이 업데이트가 되었다.
하지만 중간에 에러가 발생하여 완벽히 업데이트가 이루어지지 않는 경우가 있는데, 이전 버전에서 지원했던 어플리케이션이 최신버전에서는 지원하지 않기 때문이다.
아래는 업데이트 실행 후 나오는 에러 문구이다.
OC\RepairException: Upgrade is not possible
수리 경고:You have incompatible or missing apps enabled that could not be found or updated via the marketplace.수리 경고:Please install or update the following apps manually or disable them with: occ app:disable files_videoplayer수리 경고:For manually updating, see
위와 같이 나올 경우, occ app:disable files_videoplayer 를 보면 이 어플리케이션을 지원하지 않기 때문에 비활성화 시키라는 말이다.
일단 occ를 실행하기 위해 occ가 있는 owncloud가 설치된 폴더로 이동한다.(경로는 설치한 사용자마다 다르다. )
cd /var/www/owncloud
그리고 나서
sudo ./occ app:disable files_videoplayer
를 입력하면 되는데, 여기서 에러가 또 발생 할 수 있다.
이런식으로 나오는데, 여기서 설명하는 것은 명령어 앞에 sudo -u www-data를 붙여서 실행하라는 것이다.
즉,
sudo -u www-data ./occ app:disable files_videoplayer
이렇게 실행하면 적용이 된다.
그 다음에는 업데이트를 완료해야 하기 떄문에 다음을 입력한다
sudo -u www-data ./occ upgrade
여기도 마찬가지로 앞에 sudo -u www-data를 붙여서 실행한다.