Comments (16)
Seeing the numerous troubles I had, it seems that the heritage from the previous versions (using initd at the time) has gone quite heavy and triggered some obscure behavior.
So, I decided to clean wipe my system of all nodejs related files and packages and remake a clean install from scratch.
Now I do have what's expected with only one mirakurun-server process running, and being started from the sudoer user dedicated.
As such this bug can be closed.
from mirakurun.
please write in English.
from mirakurun.
I added the English version
from mirakurun.
try below: (note: configurations are kept)
sudo -i
npm uninstall -g --unsafe mirakurun
pm2 unstartup
pm2 update
reboot
sudo -i
npm install -g --unsafe mirakurun
reboot
sudo -i
ps aux | grep PM2
pm2 status
-
please tell me your platform which you're running
https://github.com/Chinachu/Mirakurun/blob/master/.github/CONTRIBUTING.md#report-an-issue -
please paste the server/tuners configuration
from mirakurun.
chinachu@goelette:~$ uname -a
Linux goelette 4.4.0-92-generic #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
chinachu@goelette:~$ cat /etc/debian_version
stretch/sid
"/usr/local/etc/mirakurun/tuners.yml"
- name: PT3-S1
types:
- BS
- CS
command: recpt1 --device /dev/pt3video0 --lnb 15 <channel> - -
decoder: arib-b25-stream-test
isDisabled: false
- name: PT3-S2
types:
- BS
- CS
command: recpt1 --device /dev/pt3video1 --lnb 15 <channel> - -
decoder: arib-b25-stream-test
isDisabled: false
- name: PT3-T1
types:
- GR
command: recpt1 --device /dev/pt3video2 <channel> - -
decoder: arib-b25-stream-test
isDisabled: false
- name: PT3-T2
types:
- GR
command: recpt1 --device /dev/pt3video3 <channel> - -
decoder: arib-b25-stream-test
isDisabled: false
- name: TBS6922
types:
- SKY
command: szap-s2j -c /usr/local/etc/szap-s2j.conf -l <satelite> -S 1 -p -r -M 5 -C 35 <channel>
dvbDevicePath: /dev/dvb/adapter0/dvr0
decoder: arib-b1-stream-test
isDisabled: true
from mirakurun.
I followed your instructions, there is the result
root@goelette:~# ps auxw | grep PM2
root 929 2.6 1.7 885328 35504 ? Ssl 07:39 0:02 PM2 v2.6.1: God Daemon (/root/.pm2)
root@goelette:~# pm2 status
┌──────────────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬────────────┬──────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
├──────────────────┼────┼──────┼─────┼────────┼─────────┼────────┼─────┼────────────┼──────┼──────────┤
│ mirakurun-server │ 0 │ fork │ 943 │ online │ 0 │ 88s │ 83% │ 117.8 MB │ root │ disabled │
└──────────────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴────────────┴──────┴──────────┘
Use `pm2 show <id|name>` to get more details about an app
from mirakurun.
pm2 delete mirakurun-server
pm2 save
from mirakurun.
I'm confused here, I am supposed to do
pm2 delete mirakurun-server
pm2 save
after I did
sudo -i
npm install -g --unsafe mirakurun
reboot
?
from mirakurun.
pm2 delete and save are sudo too. you should clean up.
from mirakurun.
But if I do this the process won't run anymore, right ?
from mirakurun.
your environment has broken. I did tested just now.
# pm2 status
│ chinachu-operator │ 1 │ ...
│ chinachu-wui │ 0 │ ...
# npm install -g --unsafe mirakurun
# pm2 status
│ chinachu-operator │ 1 │ ...
│ chinachu-wui │ 0 │ ...
│ mirakurun-server │ 2 │ ...
# reboot
# pm2 status
│ chinachu-operator │ 1 │ ...
│ chinachu-wui │ 0 │ ...
│ mirakurun-server │ 2 │ ...
from mirakurun.
Okay, things are getting more and more hairy...
Since the environment is broken I shutdown all processes and run npm install again... facing this error
root@goelette:~# npm install -g --unsafe mirakurun
> [email protected] preinstall /usr/local/lib/node_modules/.staging/mirakurun-d2df8319
> node bin/preinstall.js
/usr/local/bin/mirakurun -> /usr/local/lib/node_modules/mirakurun/bin/cli.sh
/usr/local/bin/mirakurun-epgdump -> /usr/local/lib/node_modules/mirakurun/bin/epgdump.js
> [email protected] postinstall /usr/local/lib/node_modules/mirakurun
> node bin/postinstall.js
Version: [email protected] [OK]
2.6.1-beta.1
Version: [email protected] [NG] Expected: >=2.4.0 <3.0.0
npm ERR! Linux 4.4.0-92-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "--unsafe" "mirakurun"
npm ERR! node v6.5.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node bin/postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node bin/postinstall.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mirakurun package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node bin/postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mirakurun
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mirakurun
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
from mirakurun.
ok, it's my mistake. I just released 2.6.1
.
# npm install -g @kanreisa/[email protected]
# pm2 update
# npm install -g --unsafe mirakurun
from mirakurun.
Okay this resolves the matter.
One thing however about the installation process, I start to see what is the real basis of the problem I had, PM2 processes are user separated.
It's not that my environment was broken, it is that I installed mirakurun being real root user, not by doing sudo.
# pm2 status
$ sudo pm2 status
doesn't show the same things
from mirakurun.
Here I straight things up
# pm2 delete mirakurun-server
# pm2 kill
# pm2 unstartup
$ sudo npm install -g --unsafe mirakurun
$ sudo pm2 save
$ cd chinachu/
$ sudo pm2 start processes.json
$ sudo pm2 save
chinachu@goelette:~/chinachu$ sudo pm2 status
┌───────────────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────┬────────────┬──────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
├───────────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼────────────┼──────┼──────────┤
│ chinachu-operator │ 2 │ fork │ 10901 │ online │ 0 │ 3m │ 0% │ 39.3 MB │ root │ disabled │
│ chinachu-wui │ 1 │ fork │ 10895 │ online │ 0 │ 3m │ 0% │ 143.9 MB │ root │ disabled │
│ mirakurun-server │ 0 │ fork │ 10839 │ online │ 1 │ 3m │ 33% │ 599.2 MB │ root │ disabled │
└───────────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────┴────────────┴──────┴──────────┘
Use `pm2 show <id|name>` to get more details about an app
from mirakurun.
please don't ask me more about PM2. go here.
from mirakurun.
Related Issues (20)
- IPTV機能について HOT 1
- websocketのSSL対応 HOT 2
- 同じ番組が複数録画される [BUG] HOT 3
- several vulnerabilities CVE-2020-15168,CVE-2020-7598 are introduced in mirakurun HOT 2
- Web UIで外部(インターネット)からフォントを読み込んでしまっている HOT 2
- Web UIで外部(インターネット)から画像を読み込んでしまっている HOT 2
- 放送局が直前に停波していると録画のスクランブルが解除されない HOT 2
- unixドメインソケットからはRPCがつかえない [BUG] HOT 1
- 地上波の番組をChinachuで録画中に、同じ物理チャンネルの別サービスが /api/channels/GR/{channel}/stream で取得できない [BUG] HOT 3
- PX-MLT8PEで6ch全録を実施するとメモリ使用量が4.7GBになる。 HOT 2
- "docker-compose run --rm -e SETUP=true mirakurun"で「/usr/local/mirakurun/run/が存在しない」とのエラー [BUG] HOT 2
- 提案: コミュニティをDiscordから移行する
- TSDecoder unexpected dead [BUG] HOT 1
- Windows + Node.js 16 環境でローカルインストールに失敗する [BUG] HOT 3
- Open University Radio not found in channel scan [BUG] HOT 1
- rivarunからMirakurunにソケット接続できない
- 【要望】nodejs v18.xエンジンをサポート HOT 1
- Windows 環境で Mirakurun 3.9.0-rc.0 以降のバージョンをインストールすると起動に失敗する [BUG] HOT 3
- PT2からBSアンテナに給電されない
- Muninプラグインの機能不全 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mirakurun.