The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
2016-10-20 14:08
671 查看
1、背景及现象
今天在配置Jenkins的自动部署功能,手动构建时报“The username you provided is not allowed to use the text-based Tomcat Manager (error 403)”错误,如图2、原因
用于tomcat7自动部署的管理用户必须具有manager-script角色,manager-gui角色是不够的,不然会有错误出现:The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
在/etc/tomcat7/tomcat-users.xml文件中为管理用户添加manager-script角色即可。
3、解决方法
进入到tomcat的conf目录下,编辑tomcat-users.xml配置文件添加manager-script角色,并赋予角色给admin
4、结果
Jenkins再次手动构建则构建成功。相关文章推荐
- Jenkins部署:The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
- Jenkins部署:The username and password you provided are not correct (error 401)
- 使用FABridge时,出现You are trying to call recursively into the Flash Player which is not allowed…错误的处理
- Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextE
- ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings
- Tomcat Manager App--403 Access Denied You are not authorized to view this page
- Access to the database file is not allowed. [ File name = ***\DataBase.sdf
- CodeIgniter “The filetype you are attempting to upload is not allowed.”解决
- Tomcat上配置连接池{ connect error=Name [jdbc/OracleDB] is not bound in this Context. Unable to find [jdbc]}
- Oozie-Error: E0501: User: oozie is not allowed to impersonate root [ Edited ]
- Error: Target id 'android--1' is not valid. Use 'android.bat list targets' to get the target ids.
- error target id is not valid use android list targets to get the target ids
- Internet Information Services is not installed. You must have Internet Information Services installed in order to use the SharePoint Products and Technologies Configuration Wizard
- TIP: when you get a message in job log user [Dr. Who] is not authorized to view the log
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- Install SVN Error:The Feature You Are Tring to Use is on a Network Resource That is Unvaliable
- Posts Tagged ‘This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register问题的解决办法
- 使用cocapods报错 [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes
- CodeIgniter文件上传时提示The filetype you are attempting to upload is not allowed
- Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextE