View Issue Details

IDProjectCategoryView StatusLast Update
0006793SymmetricDSImprovementpublic2025-03-31 20:00
Reporteremiller Assigned Toelong  
Prioritynormal 
Status resolvedResolutionfixed 
Product Version3.14.9 
Target Version3.16.1Fixed in Version3.16.1 
Summary0006793: The symadmin import-config command should provide a better error message when it lacks the permissions to import a CSV file
DescriptionIt'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.
Tagsconfiguration, environmental, symadmin

Activities

There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.16 13802243

2025-03-31 19:27:43

admin

Details Diff
0006793: error to user about file permissions Affected Issues
0006793
mod - symmetric-core/src/main/java/org/jumpmind/symmetric/service/impl/DataLoaderService.java Diff File

Issue History

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