GithubHelp home page GithubHelp logo

远程的问题 about funboost HOT 9 CLOSED

LeeC20 avatar LeeC20 commented on May 25, 2024
远程的问题

from funboost.

Comments (9)

ydf0509 avatar ydf0509 commented on May 25, 2024

远程也要升级到30.6版本吧

from funboost.

LeeC20 avatar LeeC20 commented on May 25, 2024

我之前用的30.4, 刚刚从这里下载了,好像还是30.5,不是30.6.... , 远程依然不行
因为我要改文件,所以只能手动安装。 这个repo什么时候更新到30.6

from funboost.

LeeC20 avatar LeeC20 commented on May 25, 2024

远程也要升级到30.6版本吧

我找到问题了,

当我注释掉 fabric_deploy_helper.pyline 95 -97后, fabric_deploy能够正常使用了。 估计是这个kill进程有问题。

`

    # kill_shell = f'''ps -aux|grep {process_mark}|grep -v grep|awk '{{print $2}}' |xargs kill -9'''
    # logger.warning(f'{kill_shell} 命令杀死 {process_mark} 标识的进程')
    # uploader.ssh.exec_command(kill_shell)

`

from funboost.

LeeC20 avatar LeeC20 commented on May 25, 2024

当我改成这样, 也可以运行。 不知道什么问题,单独运行paramiko,也是可以。 合起来就报错

`

    # uploader.ssh.exec_command(kill_shell)
    conn.run(kill_shell, encoding='utf-8',warn=True)  # 不想提示,免得烦扰用户以为有什么异常了。所以用上面的paramiko包的ssh.exec_command

`

from funboost.

ydf0509 avatar ydf0509 commented on May 25, 2024

pip 升级30.6是要使用官方源的,国内源是异步pypi官网的,又不是立即同步,是定时同步,你想第一时间安装最新的python三方包版本,就要 pip install funboost --upgrade -i https://pypi.org/simple ,

估计是你为了下载python包速度快,替换成了国内源

from funboost.

LeeC20 avatar LeeC20 commented on May 25, 2024

我也试了一下30.6, 还是不能远程。 我自己改了源码就通了。。 就很奇怪

fabric_deploy_helper.py

`
line97 - line 98

# uploader.ssh.exec_command(kill_shell)
 conn.run(kill_shell, encoding='utf-8',warn=True)  # 不想提示,免得烦扰用户以为有什么异常了。所以用上面的paramiko包的ssh.exec_command

`

from funboost.

ydf0509 avatar ydf0509 commented on May 25, 2024

我是可以的,kill命令就是正常的linux命令,你自己可以打印出kill的linux命令

from funboost.

ydf0509 avatar ydf0509 commented on May 25, 2024

估计你系统不一样,那就用conn操作呗

from funboost.

ydf0509 avatar ydf0509 commented on May 25, 2024

image
image

下面这个可能适应性强一些吧,我不知道你系统设置了什么类型的鉴权

from funboost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.