FAQ #
Q. papp_cloud 版本,功能问题? #
A:
- 2.x:使用超算账号直接登录
- 3.x:使用并行云桌面账号登录(登录一次默认有效期 30 天),然后再登录超算账号
⚠️注意: papp_cloud 使用的前提条件是,一定要可以访问互联网
Q. papp_cloud 报错 403 Forbidden
怎么办?
#
A: 这是旧版的问题,升级到最新版本即可解决
Q. papp_cloud ssh
和 scp
等子命令参数不知道怎么用?
#
A:
例如:执行 papp_cloud ssh -h 即可查看,
$ papp_cloud ssh -h
usage: papp_cloud ssh [<flags>] <destination> [<command>...]
Ssh is a sub command for logging into a remote machine and for executing commands on a remote machine.
example:
1. 使用paratera帐号登录广州超算(IPv4)
$ papp_cloud ssh paratera@gz
2. 使用paratera帐号登录广州超算(IPv6)
$ papp_cloud ssh -6 paratera@gz
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-V, --version Show application version.
-D, --debug Enable debug mode.
-s, --select select a vpn link route.
-X, --x11 Enables X11 forwarding. This can also be specified on a per-host basis in a configuration file.
-6, --ipv6 Forces ssh to use IPv6 addresses only.
Args:
<destination> ssh connects and logs into the specified destination, which may be specified as either [user@]hostname or a URI of the form ssh://[user@]hostname[:port]. The user must prove his/her identity to the remote machine
using one of several methods
[<command>] If a command is specified, it is executed on the remote host instead of a login shell.
Q. papp_cloud 网络类报错问题? #
常见类型的关键字如下:
- connnect: network is unreachable
- dial tcp: lookup cloud.paratera.com
- connection timed out
- timed out waiting for prompt
另外:papp_cloud ssh 登录卡顿的情况,一般也是网络连接的问题
A: 这是网络连接问题,
- 请先检查本地连接互联网是否能通,执行 ping cloud.paratera.com 检测
- traceroute -n cloud.paratera.com检查一下路由路径
Q. papp_cloud 密钥报错 bad permissions
问题?
#
A:
- 先检查密钥权限,修改密钥权限命令
chmod 0600 密钥文件
- 第1步若不能解决问题,请再检查
~/.ssh
目录以及目录下的所有文件权限,全部修改成0600
- 第2步若不能解决问题,请重新给用户发送一个密钥文件
Q. papp_cloud 3.x 版本没有登录时报错问题? #
报错关键字如下几种:
- VerifyToken get local account: getLocalAccount query uid
- login db store local account error
A:使用
papp_cloud login -u username -p
登录一下并行云桌面账号即可
Q. papp_cloud scp 报错 stalled
?
#
A6: 3种解决方法如下
- 限速 scp -l 1000 /from/path /to/path #单位为Kbit,1000Kbit/8=125Kb
- 修改内核参数 echo 0 > /proc/sys/net/ipv4/tcp_sack
- 调整 MTU 值 ifconfig eth0 mtu 1492 or ip link set dev eth0 mtu 1492 参考资料:http://islocal.cc/arlo/8954c4ab/
Q. papp_cloud scp 报错 no space left on device
?
#
A7: 这是磁盘空间不足的报错,分两种情况:
- (上传文件):
df -h
命令检查超算端的磁盘使用情况,清理超算端的磁盘- (下载文件):
df -h
命令检查本地的磁盘使用情况,清理本地的磁盘
Q. read /dev/ptmx: input/output error #
It’s doesn’t exist /dev/ptmx but /dev/pts/ptmx so I can make a soft link? or change the path hardcode in pty_linux.go?
该提问来源于开源项目:creack/pty
A: 升级 papp_cloud 到最新版本 https://github.com/unchartedsoftware/witch/issues/4