apache/dolphinscheduler · error · ServiceException
30001
30001
Error message
user has no operation privilege
What it means
Thrown in ClusterServiceImpl.createCluster when isNotAdmin(loginUser) is true. Cluster management is admin-only; any non-admin user attempting to create a cluster triggers this authorization guard before any parameters are validated.
Source
Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ClusterServiceImpl.java:81
@Autowired
private K8sManager k8sManager;
@Autowired
private K8sNamespaceDao k8sNamespaceDao;
/**
* create cluster
*
* @param loginUser login user
* @param name cluster name
* @param config cluster config
* @param desc cluster desc
*/
@Transactional
@Override
public Long createCluster(User loginUser, String name, String config, String desc) {
if (isNotAdmin(loginUser)) {
throw new ServiceException(Status.USER_NO_OPERATION_PERM);
}
checkParams(name, config);
Cluster clusterExistByName = clusterDao.queryByClusterName(name);
if (clusterExistByName != null) {
throw new ServiceException(Status.CLUSTER_NAME_EXISTS, name);
}
Cluster cluster = new Cluster();
cluster.setName(name);
cluster.setConfig(config);
cluster.setDescription(desc);
cluster.setOperator(loginUser.getId());
cluster.setCreateTime(new Date());
cluster.setUpdateTime(new Date());
cluster.setCode(CodeGenerateUtils.genCode());
View on GitHub (pinned to 02eac45a1b)
Solutions
- Ask an administrator to create the cluster.
- Have an admin grant the required cluster-management privileges to your account.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ClusterServiceImpl.java:81 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/dolphinscheduler@02eac45a1b (2026-09-06).
Data as JSON: /api/errors/46be4c817174536b.
Report an issue: GitHub.