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

Closed
veneerac opened this issue Dec 20, 2024 · 2 comments · Fixed by wso2/wso2-synapse#2274
Closed

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

@hisanhunais
Copy link

The fix is available from synapse version v4.0.0-wso2176 onwards. Need to bump the synapse version in carbon-apimgt and product-apim

@hisanhunais
Copy link

Bumped synapse version in [1]

[1] wso2/product-apim#13633

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

Successfully merging a pull request may close this issue.

2 participants