计算任务脚本安装方式(64位)

Moderators: 论坛版主, 社区功勋

Post Reply
User avatar
wusheng
3
Posts: 155
Joined: Thu Nov 01, 2018 10:13 am

计算任务脚本安装方式(64位)

Post by wusheng » Sat Jan 05, 2019 12:35 pm

测试通过设备
1.N1
2.NanoPi-Neo-Plus2
3.数码视讯Q5
测试通过系统
1.Armbian_5.62_Aml-s9xxx_Ubuntu_bionic_default_4.19.0-rc7_20181018
2.friendlycore-xenial_4.14_arm64_20181011.img 下载地址
3.Armbian_5.44_S9xxx_Ubuntu_bionic_3.14.29_server_20180729
安装方式:
1:
SSH登录设备

Code: Select all

wget https://github.com/qinghon/BonusCloud-Node/raw/master/aarch64/install.sh -O install.sh&&sudo bash install.sh
恢复证书或绑定后可选步骤:检查运行状态
viewtopic.php?f=14&t=3194&p=10129#p10129
可能遇到的问题
官网后台不显示版本:
解决办法:
在安装文件夹install中执行

Code: Select all

bash install.sh report_v
有未记录问题联系https://t.me/wusheng

bilang
2
Posts: 21
Joined: Thu Nov 01, 2018 10:47 am

Re: 计算任务脚本安装方式(64位)

Post by bilang » Sat Jan 12, 2019 6:13 am

NanoPi-Neo-Plus2测试通过

yzdjd
2
Posts: 18
Joined: Sat Nov 03, 2018 8:16 am

Re: 计算任务脚本安装方式(64位)

Post by yzdjd » Sat Jan 26, 2019 12:42 pm

N1原脚本安装的,再用这个安装可以保留原证书吗?

User avatar
wusheng
3
Posts: 155
Joined: Thu Nov 01, 2018 10:13 am

Re: 计算任务脚本安装方式(64位)

Post by wusheng » Sun Jan 27, 2019 2:22 am

yzdjd wrote:
Sat Jan 26, 2019 12:42 pm
N1原脚本安装的,再用这个安装可以保留原证书吗?
viewtopic.php?f=14&t=2048
有未记录问题联系https://t.me/wusheng

xuelanghua
Posts: 0
Joined: Fri Feb 08, 2019 12:06 am

Re: 计算任务脚本安装方式(64位)

Post by xuelanghua » Fri Feb 08, 2019 12:06 am

n1执行完不显示状态。怎么搞???

yzdjd
2
Posts: 18
Joined: Sat Nov 03, 2018 8:16 am

Re: 计算任务脚本安装方式(64位)

Post by yzdjd » Fri Feb 08, 2019 5:03 am

[quote=wusheng post_id=9504 time=1548555776 user_id=50]
[quote=yzdjd post_id=9499 time=1548506537 user_id=86]
N1原脚本安装的,再用这个安装可以保留原证书吗?
[/quote]

viewtopic.php?f=14&t=2048
[/quote]

这个方法是说脚本证书转化为镜像证书,我的问题是直接升级你这个镜像证书需不需要备份?还是同你发的那个帖子一样的备份还原方法?

User avatar
wusheng
3
Posts: 155
Joined: Thu Nov 01, 2018 10:13 am

Re: 计算任务脚本安装方式(64位)

Post by wusheng » Fri Feb 08, 2019 5:25 am

yzdjd wrote:
Fri Feb 08, 2019 5:03 am
wusheng wrote:
Sun Jan 27, 2019 2:22 am
yzdjd wrote:
Sat Jan 26, 2019 12:42 pm
N1原脚本安装的,再用这个安装可以保留原证书吗?
viewtopic.php?f=14&t=2048
这个方法是说脚本证书转化为镜像证书,我的问题是直接升级你这个镜像证书需不需要备份?还是同你发的那个帖子一样的备份还原方法?
不需要,除非你手滑remove了
有未记录问题联系https://t.me/wusheng

丁豆088
1
Posts: 6
Joined: Sat Nov 03, 2018 8:15 am

Re: 计算任务脚本安装方式(64位)

Post by 丁豆088 » Tue Feb 12, 2019 3:24 am

root@aml:~# sh n1backupimage.sh restore
mount emmc success!
挂载成功
opt/bcloud/
opt/bcloud/node.db
opt/bcloud/info
opt/bcloud/email
opt/bcloud/curl.res
opt/bcloud/client.key
opt/bcloud/client.crt
opt/bcloud/ca.crt
opt/bcloud/bcode
etc/network/interfaces
-e Certificate /mnt/mmc/opt/bcloud/client.key not found!
restore failed
证书文件未找到,还原失败

我的N1之前也是脚本安装的,转换了证书并备份了,现在重新装了新的计算任务脚本,想还原证书,出现以上错误。不知道如何下手。谢谢!

User avatar
wusheng
3
Posts: 155
Joined: Thu Nov 01, 2018 10:13 am

Re: 计算任务脚本安装方式(64位)

Post by wusheng » Tue Feb 12, 2019 3:43 am

丁豆088 wrote:
Tue Feb 12, 2019 3:24 am
root@aml:~# sh n1backupimage.sh restore
mount emmc success!
挂载成功
opt/bcloud/
opt/bcloud/node.db
opt/bcloud/info
opt/bcloud/email
opt/bcloud/curl.res
opt/bcloud/client.key
opt/bcloud/client.crt
opt/bcloud/ca.crt
opt/bcloud/bcode
etc/network/interfaces
-e Certificate /mnt/mmc/opt/bcloud/client.key not found!
restore failed
证书文件未找到,还原失败

我的N1之前也是脚本安装的,转换了证书并备份了,现在重新装了新的计算任务脚本,想还原证书,出现以上错误。不知道如何下手。谢谢!
手动还原试试,可能是解压路径有点问题,把四个证书文件解压到emmc(非u盘目录)的opt/bcloud文件夹下就可以了
有未记录问题联系https://t.me/wusheng

丁豆088
1
Posts: 6
Joined: Sat Nov 03, 2018 8:15 am

Re: 计算任务脚本安装方式(64位)

Post by 丁豆088 » Tue Feb 12, 2019 4:16 am

执行bash install.sh report_v后看到版本更新了,v0.3.11 但显示还是offline,如何查找问题在哪里?新的脚本好像是用docker安装的?

User avatar
Sinan Wang
5
Posts: 608
Joined: Thu Nov 01, 2018 10:34 am

Re: 计算任务脚本安装方式(64位)

Post by Sinan Wang » Tue Feb 12, 2019 12:25 pm

丁豆088 wrote:
Tue Feb 12, 2019 4:16 am
执行bash install.sh report_v后看到版本更新了,v0.3.11 但显示还是offline,如何查找问题在哪里?新的脚本好像是用docker安装的?
你换个网络环境看看呢

丁豆088
1
Posts: 6
Joined: Sat Nov 03, 2018 8:15 am

Re: 计算任务脚本安装方式(64位)

Post by 丁豆088 » Wed Feb 13, 2019 2:41 am

试过改成有线模式,还是显示离线,绑定的mac是有线网卡的mac,之前一直是用无线连接都没有问题。现在也没有收益,不知如何下手检查问题在哪里。

丁豆088
1
Posts: 6
Joined: Sat Nov 03, 2018 8:15 am

Re: 计算任务脚本安装方式(64位)

Post by 丁豆088 » Fri Feb 15, 2019 3:16 am

今天又重新安装了一次,一切似乎都很正常,可惜网站上看还是显示offline。
root@aml:~# sh n1backupimage.sh restore
mount emmc success!
挂载成功
本次还原的证书文件名为 /boot/bcloud.tar.gz
opt/bcloud/
opt/bcloud/node.db
opt/bcloud/info
opt/bcloud/email
opt/bcloud/curl.res
opt/bcloud/client.key
opt/bcloud/client.crt
opt/bcloud/ca.crt
opt/bcloud/bcode
etc/network/interfaces
Certificate //opt/bcloud/client.key exist
Certificate //opt/bcloud/client.crt exist
Certificate //opt/bcloud/ca.crt exist
restore success!
还原成功
root@aml:~# sh n1backupimage.sh backup
mount emmc success!
挂载成功
Certificate //opt/bcloud/client.key exist
Certificate //opt/bcloud/client.crt exist
Certificate //opt/bcloud/ca.crt exist
opt/bcloud/client.key
opt/bcloud/client.crt
opt/bcloud/ca.crt
opt/bcloud/node.db
etc/network/interfaces
backup success!
备份成功
backup file save to /boot/bcloud-fc7cxxxxxxxx.tar.gz
备份文件已保存至 /boot/bcloud-fc7cxxxxxxxx.tar.gz
root@aml:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
51e8cec63b41 bxc-worker:v2 "./bxc-worker" 4 minutes ago Up 4 minutes

问题在哪里?

User avatar
wusheng
3
Posts: 155
Joined: Thu Nov 01, 2018 10:13 am

Re: 计算任务脚本安装方式(64位)

Post by wusheng » Fri Feb 15, 2019 12:51 pm

安装完成后正常运行状态:
BXC-NODE 进程,不正常app扫描不到

Code: Select all

systemctl status bxc-node
● bxc-node.service - bxc node app
Loaded: loaded (/lib/systemd/system/bxc-node.service; enabled; vendor preset: e
Active: active (running) since Wed 2019-02-13 07:19:58 CST; 2 days ago
Main PID: xxxx (node)
Tasks: 14 (limit: 1896)
CGroup: /system.slice/bxc-node.service
├─ xxxx /opt/bcloud/nodeapi/node --alsologtostderr
└─xxxx /opt/bcloud/bxc-network

Warning: Journal has been rotated since unit was started. Log output is incomplete
BXC-network 保证运行

Code: Select all

ps -aux|grep -v grep|grep bxc-network
root 25574 0.1 0.2 93632 5360 ? Ss 17:18 0:14 /opt/bcloud/bxc-network
保证BXC-network工作正常,不正常表现为后台不在线/offline

Code: Select all

ifconfig tun0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.8.19.29 netmask 255.255.0.0 destination 10.8.19.29
inet6 fdff:4243:4c4f:5544:xxxx:xxxx:xxxx:xxxx prefixlen 112 scopeid 0x0<global>
inet6 fe80::be81:100:d7f1:928c prefixlen 64 scopeid 0x20<link>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 41122 bytes 7760965 (xxx MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 48572 bytes 17044452 (xxx MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker 镜像运行正常,表现为app中的运行中,不正常表现为未运行

Code: Select all

docker ps |grep bxc-worker
4cbc113c8e9a bxc-worker:v2 "./bxc-worker" 2 days ago Up 2 days unruffled_brown
有未记录问题联系https://t.me/wusheng

丁豆088
1
Posts: 6
Joined: Sat Nov 03, 2018 8:15 am

Re: 计算任务脚本安装方式(64位)

Post by 丁豆088 » Sat Feb 16, 2019 1:00 am

root@aml:~# systemctl status bxc-node
● bxc-node.service - bxc node app
Loaded: loaded (/lib/systemd/system/bxc-node.service; enabled; vendor preset:
Active: active (running) since Fri 2019-02-15 02:49:29 UTC; 22h ago
Main PID: 2915 (node)
Tasks: 13 (limit: 4915)
Memory: 39.7M
CPU: 2h 28min 43.209s
CGroup: /system.slice/bxc-node.service
└─2915 /opt/bcloud/nodeapi/node --alsologtostderr

Warning: Journal has been rotated since unit was started. Log output is incomple

root@aml:~# ps -aux|grep -v grep|grep bxc-network
root@aml:~# ifconfig tun0
tun0: error fetching interface information: Device not found

root@aml:~# docker ps |grep bxc-worker
51e8cec63b41 bxc-worker:v2 "./bxc-worker" 22 hours ago Up 22 hours clever_poitras

上面是我执行这四个命令的结果,看来进程是没有,tun0也不存在。该怎么办呢?谢谢!

User avatar
wusheng
3
Posts: 155
Joined: Thu Nov 01, 2018 10:13 am

Re: 计算任务脚本安装方式(64位)

Post by wusheng » Sat Feb 16, 2019 1:33 pm

丁豆088 wrote:
Sat Feb 16, 2019 1:00 am
root@aml:~# systemctl status bxc-node
● bxc-node.service - bxc node app
Loaded: loaded (/lib/systemd/system/bxc-node.service; enabled; vendor preset:
Active: active (running) since Fri 2019-02-15 02:49:29 UTC; 22h ago
Main PID: 2915 (node)
Tasks: 13 (limit: 4915)
Memory: 39.7M
CPU: 2h 28min 43.209s
CGroup: /system.slice/bxc-node.service
└─2915 /opt/bcloud/nodeapi/node --alsologtostderr

Warning: Journal has been rotated since unit was started. Log output is incomple

root@aml:~# ps -aux|grep -v grep|grep bxc-network
root@aml:~# ifconfig tun0
tun0: error fetching interface information: Device not found

root@aml:~# docker ps |grep bxc-worker
51e8cec63b41 bxc-worker:v2 "./bxc-worker" 22 hours ago Up 22 hours clever_poitras

上面是我执行这四个命令的结果,看来进程是没有,tun0也不存在。该怎么办呢?谢谢!
手动启动network试试,如果不行检查证书
有未记录问题联系https://t.me/wusheng

丁豆088
1
Posts: 6
Joined: Sat Nov 03, 2018 8:15 am

Re: 计算任务脚本安装方式(64位)

Post by 丁豆088 » Mon Feb 18, 2019 1:28 am

重新启动还是一样的。估计是证书问题吧?我是从非计算任务脚本证书转换过来的,也是这里面的教程。原来的版本是0.2.2n好像是这个版本。转换过程顺利,拷贝了备份文件,现在在这边恢复也成功。不知道问题出在哪里。

丁豆088
1
Posts: 6
Joined: Sat Nov 03, 2018 8:15 am

Re: 计算任务脚本安装方式(64位)

Post by 丁豆088 » Wed Feb 20, 2019 2:03 am

直接运行bxc-network时出以下提示:
root@aml:/opt/bcloud# ./bxc-network
./bxc-network: /usr/lib/aarch64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by ./bxc-network)

User avatar
wusheng
3
Posts: 155
Joined: Thu Nov 01, 2018 10:13 am

Re: 计算任务脚本安装方式(64位)

Post by wusheng » Wed Feb 20, 2019 2:14 am

丁豆088 wrote:
Wed Feb 20, 2019 2:03 am
直接运行bxc-network时出以下提示:
root@aml:/opt/bcloud# ./bxc-network
./bxc-network: /usr/lib/aarch64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by ./bxc-network)
可以尝试一下这里的解决办法
viewtopic.php?f=14&t=3232
有未记录问题联系https://t.me/wusheng

丁豆088
1
Posts: 6
Joined: Sat Nov 03, 2018 8:15 am

Re: 计算任务脚本安装方式(64位)

Post by 丁豆088 » Thu Feb 21, 2019 10:22 am

看来这个脚本是给ubuntu准备的,我之前一直是装的debian,今天改成装了ubuntu,没想到就可以了。希望作者也能出一个适合debian的版本。

User avatar
wusheng
3
Posts: 155
Joined: Thu Nov 01, 2018 10:13 am

Re: 计算任务脚本安装方式(64位)

Post by wusheng » Thu Feb 21, 2019 2:24 pm

丁豆088 wrote:
Thu Feb 21, 2019 10:22 am
看来这个脚本是给ubuntu准备的,我之前一直是装的debian,今天改成装了ubuntu,没想到就可以了。希望作者也能出一个适合debian的版本。
debian也是这个,一样的,唯一不同就是库的兼容性问题
有未记录问题联系https://t.me/wusheng

Post Reply