View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006793 | SymmetricDS | Improvement | public | 2025-03-31 14:43 | 2025-03-31 20:00 |
Reporter | emiller | Assigned To | elong | ||
Priority | normal | ||||
Status | resolved | Resolution | fixed | ||
Product Version | 3.14.9 | ||||
Target Version | 3.16.1 | Fixed in Version | 3.16.1 | ||
Summary | 0006793: The symadmin import-config command should provide a better error message when it lacks the permissions to import a CSV file | ||||
Description | It's possible for the symadmin import-config command to fail to import a CSV file if the staging directory is read-only or if the user running the command has read-only access. When it fails, it logs an error like this one: [engine_name] - SimpleStagingDataWriter - Failed to write batch into staging from group_id:1:1. java.io.FileNotFoundException: /data/apps/symmetricDS/symmetric-server-3.15.11/tmp/group_id/incoming/1/00000-9999.create (No such file or directory) [engine_name] - DataLoaderService - Failed to process incoming batch from node '1' java.io.FileNotFoundException: /data/apps/symmetricDS/symmetric-server-3.15.11/tmp/group_id/incoming/1/00000-9999.create (No such file or directory) at java.base/java.io.FileOutputStream.open0(Native Method) at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:184) at com.jumpmind.symmetric.stage.c.getWriter(EnhancedThresholdFileWriter.java:39) at org.jumpmind.symmetric.io.stage.ThresholdFileWriter.write(ThresholdFileWriter.java:86) at java.base/java.io.BufferedWriter.flushBuffer(BufferedWriter.java:120) at java.base/java.io.BufferedWriter.write(BufferedWriter.java:233) at java.base/java.io.Writer.write(Writer.java:249) at org.jumpmind.symmetric.io.stage.SimpleStagingDataWriter.writeLine(SimpleStagingDataWriter.java:313) at org.jumpmind.symmetric.io.stage.SimpleStagingDataWriter.process(SimpleStagingDataWriter.java:246) at org.jumpmind.symmetric.service.impl.DataLoaderService.loadDataFromTransport(DataLoaderService.java:574) at org.jumpmind.symmetric.service.impl.DataLoaderService.loadDataBatch(DataLoaderService.java:229) at org.jumpmind.symmetric.service.impl.DataLoaderService.loadDataBatch(DataLoaderService.java:217) at org.jumpmind.symmetric.SymmetricAdmin.importConfig(SymmetricAdmin.java:470) at org.jumpmind.symmetric.SymmetricAdmin.executeWithOptions(SymmetricAdmin.java:439) at org.jumpmind.symmetric.AbstractCommandLauncher.execute(AbstractCommandLauncher.java:157) at org.jumpmind.symmetric.SymmetricAdmin.main(SymmetricAdmin.java:172) This error message doesn't convey the permissions issue to the user. The symadmin utility should catch this exception and provide a clearer error message. | ||||
Tags | configuration, environmental, symadmin | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2025-03-31 14:43 | emiller | New Issue | |
2025-03-31 14:43 | emiller | Tag Attached: configuration | |
2025-03-31 14:43 | emiller | Tag Attached: environmental | |
2025-03-31 14:43 | emiller | Tag Attached: symadmin | |
2025-03-31 19:28 | elong | Assigned To | => elong |
2025-03-31 19:28 | elong | Status | new => resolved |
2025-03-31 19:28 | elong | Resolution | open => fixed |
2025-03-31 19:28 | elong | Fixed in Version | => 3.16.1 |
2025-03-31 19:28 | elong | Target Version | => 3.16.1 |
2025-03-31 20:00 | admin | Changeset attached | => SymmetricDS 3.16 13802243 |