Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]- "No Such File" Error During Tenant Reload After API Deletion #3484

Open
veneerac opened this issue Dec 20, 2024 · 0 comments
Open

[Bug]- "No Such File" Error During Tenant Reload After API Deletion #3484

veneerac opened this issue Dec 20, 2024 · 0 comments
Labels

Comments

@veneerac
Copy link

veneerac commented Dec 20, 2024

Description

This issue occurs because the synapse file is missing from its mount location (/tenant folder) while loading the tenant at 'while (apiIterator.hasNext())'.


private static void createAPIs(SynapseConfiguration synapseConfig,
                                   String rootDirPath, Properties properties) {


 Iterator apiIterator = FileUtils.iterateFiles(apiDir, extensions, false);
            while (apiIterator.hasNext()) {
            
          }
}


This causes the below error and fails the tenant loading.

Errors

FATAL {org.wso2.carbon.mediation.initializer.multitenancy.TenantServiceBusInitializer} - Couldn't initialize the ESB for tenant:[info1.com](http://info1.com/) java.io.UncheckedIOException: java.nio.file.NoSuchFileException: /home/azureuser/AM_GW_3.2.0.300/wso2am-3.2.0/repository/tenants/2/synapse-configs/default/api/admin-AT-info1.com--Mocky1test_v1.0.0.xml
..
Caused by: java.nio.file.NoSuchFileException: /home/azureuser/AM_GW_3.2.0.300/wso2am-3.2.0/repository/tenants/2/synapse-configs/default/api/admin-AT-info1.com--Mocky1test_v1.0.0.xml
...

Version

3.2.0.300

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant