51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 7826|回复: 7
打印 上一主题 下一主题

[求助] linux作为负载机,报错:MsgId: MERR-10770

[复制链接]
  • TA的每日心情
    郁闷
    2015-6-17 09:59
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2015-6-15 20:03:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    使用win7系统机器作为Controller,linux centos6.5的虚拟机作为Generator,在Controller的Load Generators是Ready状态,但是启动Generator的时候linux端日志报错如下:
    15/06/2015 19:55:48 Error: Communication error: Failed to bind socket while calling bind function. (sys error message - 权限不够)        [MsgId: MERR-10344]
    15/06/2015 19:55:48 Error: Communication error: Failed to create a TCP server for the HTTP channel's server. (sys error message - 权限不够)        [MsgId: MERR-10344]
    15/06/2015 19:55:48 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed.        [MsgId: MERR-60999]
    15/06/2015 19:55:48 Warning: Failed to create "router" server.        [MsgId: MWAR-29974]


    windows端没有日志报错,在Controller端启动负载的时候报错如下:



    Error: Vuser type "WS_SOAP" specified in /tmp/brr_XYHY72/netdir/D/LR/script/MIS/SelectQueryPerson/SelectQueryPerson.usr cannot be found (or its section is empty) in /opt/HP/HP_LoadGenerator/dat/mdrv.dat.        [MsgId: MERR-10770]

    没有任何事务进行,打开日志也没有日志生成。脚本如下:
    Action()
    {

            lr_start_transaction("queryPerson");

            web_service_call( "StepName=queryPerson_101",
                    "SOAPMethod=CusService|CusServicePort|queryPerson",
                    "ResponseParam=responsequeryPerson",
                    "Service=CusService",
                    "ExpectedResponse=SoapResult",
                    "Snapshot=t1433918332.inf",
                    BEGIN_ARGUMENTS,
                    "arg0={queryPerson}",
                    //"arg0Specified=",
                    END_ARGUMENTS,
                    BEGIN_RESULT,
                    END_RESULT,
                    LAST);

            lr_end_transaction("queryPerson", LR_AUTO);

            //lr_output_message("=====responsequeryPerson=======================%s", lr_eval_string("{responsequeryPerson}"));

            //lr_eval_string( "{responsequeryPerson}" );

            return 0;
    }

    脚本回放可以跑通。在负载时跑不通,请问是什么原因?

    PS:LR 11.0
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2017-10-27 14:21
  • 签到天数: 306 天

    连续签到: 1 天

    [LV.8]测试军长

    3#
    发表于 2015-6-16 16:49:51 | 只看该作者
    首先确认是否关闭Linux虚拟机的防火墙
    这是别人分享的,但愿对你有帮助
    首先要再linux下安装LR,并且启动LR的负载:
    [higkoo@bogon bin]$ cd /opt/HP/HP_LoadGenerator/bin
    [higkoo@bogon bin]$ ./m_daemon_setup start
    负载启动后,需要关闭linux环境下的防火墙,以下是两种方法的命令:
    service 方式
    开启: service iptables start
    关闭: service iptables stop
    iptables方式
    查看防火墙状态:
    /etc/init.d/iptables status
    暂时关闭防火墙:
    /etc/init.d/iptables stop
    重启iptables:
    /etc/init.d/iptables restart
    这些都就绪后,就要开始对运行脚本的windows系统的服务端的设置
    1、打开LR的controller页面,打开load Generator,add-》nama输入负载端的Ip,platform. 选择unix,添加完成后,选中,点击Details,把Unix Environment 下勾选Don't use RSJ,ok后,点击connect
    2、stats状态由connecting变成Ready,说明已经可以连接负载机了,然后运行场景就ok啦
    注明:如果是web协议的话,可以运行成功
    如果java协议的话,LR不支持,会报错:The 'General-Java' type is not supported on 'LINUX' platforms
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2015-6-17 09:59
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    4#
     楼主| 发表于 2015-6-16 17:53:53 | 只看该作者
    本帖最后由 mathtiancai 于 2015-6-16 18:05 编辑
    地壳 发表于 2015-6-16 16:49
    首先确认是否关闭Linux虚拟机的防火墙
    这是别人分享的,但愿对你有帮助
    首先要再linux下安装LR,并且启动 ...

    防火墙确认是关闭状态,之前没有关闭的时候Load Generators中是Fail状态,排查后是防火墙原因,关了防火墙就变为Ready状态。
    Load Generators中状态是Ready状态,但是运行负载的时候报错。需要测试的是webservices协议。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2015-6-17 09:59
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    5#
     楼主| 发表于 2015-6-16 18:03:16 | 只看该作者
    改用windows 7作为Generator后,Generator端Agent日志报错如下:

    16/06/2015 16:52:09 Error: Communication error: The Server failed to receive message, while calling recv function, closing connection. (sys error message - WSAECONNABORTED)        [MsgId: MERR-10344]
    16/06/2015 16:52:09 Error: Client LiMQ-PC;5588;3160 is not responding.        [MsgId: MERR-29992]
    16/06/2015 16:52:09 Error: Communication error: The Client failed to send packet. The socket has been shut down.        [MsgId: MERR-10343]
    16/06/2015 16:52:09 Error: Communication error: The Client failed to send packet. The socket has been shut down.        [MsgId: MERR-10343]
    16/06/2015 16:52:09 Error: Two Way Communication Error: Function two_way_comm_post_message / two_way_comm_post_message_ex failed.        [MsgId: MERR-60990]
    16/06/2015 16:52:09 Error: Communication error: The Client failed to send packet. The socket has been shut down.        [MsgId: MERR-10343]

    Controller端报错如下:

    Error: The user files were not transferred to the local load generator
    Error (-81015): LR_VUG: Number of iterations is not defined in file 'C:\Users\LiMQ\AppData\Local\Temp\lr5tmpdirLVD.600\lrcfgyng.601\cfgHdQ.606'.
    Error: Failed to create custom channel client on main thread(connection string: (-server_type=6)(-guid_identifier=gV1v30hYBkyuFYhbVNfpmg==)(-ll_server_index=5)).


    继续求助。。。
    PS:Load Generators中一直是Ready状态没有报错
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2015-11-30 15:34
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]测试小兵

    6#
    发表于 2016-1-26 16:10:46 | 只看该作者
    mathtiancai 发表于 2015-6-16 18:03
    改用windows 7作为Generator后,Generator端Agent日志报错如下:

    16/06/2015 16:52:09 Error: Communica ...

    我现在思考的是是不是linux作为肉鸡是不是不支持webservice协议
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    7#
    发表于 2016-7-7 16:57:18 | 只看该作者
    chenxiancx 发表于 2016-1-26 16:10
    我现在思考的是是不是linux作为肉鸡是不是不支持webservice协议

    你好,后来这个问题有解决方法么
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    8#
    发表于 2016-7-7 16:57:57 | 只看该作者
    mathtiancai 发表于 2015-6-16 18:03
    改用windows 7作为Generator后,Generator端Agent日志报错如下:

    16/06/2015 16:52:09 Error: Communica ...

    你好,遇到了和你一样的问题,你后来有解决这个问题么
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-9-20 10:55 , Processed in 0.085104 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表