Giter VIP home page Giter VIP logo

Comments (14)

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: Distributed build error

Xmake version

2.8.6

Operating system version and architecture

windows 7/windows server 2012

Describe the problem

Local windows 7, distributed server windows server 2012, building project error
vs2013

Expected results

Build normally

Project configuration

client.conf configuration:
{
connect_timeout = 10000,
distcc_build = {
hosts = {
{
connect = "127.0.0.1:9693",
token = "aee4d7a8875e4cfb2a421219cfb737bc"
},
{
connect = "10.0.0.57:9693",
token = "fef62d3bb81d39e08f38fbad770e9076"
}
}
},
recv_timeout = -1,
remote_build = {
connect = "127.0.0.1:9691",
token = "aee4d7a8875e4cfb2a421219cfb737bc"
},
remote_cache = {
connect = "127.0.0.1:9692",
token = "aee4d7a8875e4cfb2a421219cfb737bc"
},
send_timeout = -1
}

Additional information and error logs

Distributed build exception log.txt

from xmake.

waruqi avatar waruqi commented on June 5, 2024

服务端也是相同版本么,按理 njob 不应该为 nil,你可以调下下面的位置

maxjobs = maxjobs + host.njob

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


Is the server also the same version? Logically njob should not be nil. You can adjust the following position

maxjobs = maxjobs + host.njob

from xmake.

rooong avatar rooong commented on June 5, 2024

服务端也是相同版本么,按理 njob 不应该为 nil,你可以调下下面的位置

maxjobs = maxjobs + host.njob

版本一样的,同个安装包。
出现一次后,后面再试没再报错。但是连接上后,有时候分布式服务器有在一起编译构建,有时候没有。。。这个不知道什么情况(这期间分布式连接有开关操作)

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


Is the server version also the same? Logically njob should not be nil. You can adjust the following position

maxjobs = maxjobs + host.njob

The same version, the same installation package.
After it occurred once, no error was reported again when I tried again. But after connecting, sometimes the distributed servers are compiled and built together, and sometimes they are not. . . I don’t know what’s going on with this (during this period, the distributed connection is switching on and off)

from xmake.

waruqi avatar waruqi commented on June 5, 2024

服务端也是相同版本么,按理 njob 不应该为 nil,你可以调下下面的位置

maxjobs = maxjobs + host.njob

版本一样的,同个安装包。 出现一次后,后面再试没再报错。但是连接上后,有时候分布式服务器有在一起编译构建,有时候没有。。。这个不知道什么情况(这期间分布式连接有开关操作)

除非有必现的问题,并且提供复现步骤和完整 logs ,不然我也没法看,你可以自己翻源码 调下。

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


Is the server version also the same? Logically njob should not be nil. You can adjust the following position

maxjobs = maxjobs + host.njob

The same version and the same installation package. After it occurred once, no error was reported again when I tried again. But after connecting, sometimes the distributed servers are compiled and built together, and sometimes they are not. . . I don’t know what’s going on with this (during this period, the distributed connection is switching on and off)

Unless there is a problem that must occur, and the reproduction steps and complete logs are provided, I can't read it. You can read the source code and adjust it yourself.

from xmake.

rooong avatar rooong commented on June 5, 2024

分布式构建异常log2.txt
分布式构建异常log2
连接时,有njob值,后面host.njob访问的时候,有一台机器没值

from xmake.

waruqi avatar waruqi commented on June 5, 2024

连接完有值,应该会序列化存到本地,加载时候应该也有值才对。。

status = io.load(statusfile)

你可以继续调下。然后提个 pr 过来

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


There is a value after the connection, it should be serialized and saved locally, and there should be a value when loading. .

status = io.load(statusfile)

You can continue to adjust it. Then submit a pr

from xmake.

rooong avatar rooong commented on June 5, 2024

看了工程目录下.xmake/.../status.txt内容,将原有的远程服务器信息删了,重新连接,就可以了
PS:忘了保存原有的服务器信息了,不确定有什么区别

另外,可以复现的一个问题是,在分布式编译过程中,打断编译,然后关闭连接再分布式编译,很容易出现连不上远程服务问题,且远程服务器上分布式编译进程还在,且占用一定的CPU

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


After reading the contents of .xmake/.../status.txt in the project directory, delete the original remote server information and reconnect, it will be fine.
PS: I forgot to save the original server information, not sure what the difference is.

In addition, a reproducible problem is that during the distributed compilation process, if you interrupt the compilation, then close the connection and then perform distributed compilation, it is easy to fail to connect to the remote service, and the distributed compilation process is still on the remote server. and takes up a certain amount of CPU

from xmake.

waruqi avatar waruqi commented on June 5, 2024

PS:忘了保存原有的服务器信息了,不确定有什么区别

等下次复现的时候,贴下 这个文件内容

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on June 5, 2024

Bot detected the issue body's language is not English, translate it automatically.


PS: I forgot to save the original server information, not sure what the difference is.

When it happens next time, I'll post the content of this file.

from xmake.

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.