archive is not a ZIP archive in TOS for Bigdata(6.3 & 7.3) - talend

I have a zip file inside another zip file and when I extract the outer zip its extracting and when I am tried to extract the inner zip it is throwing me an error:
Error: Windows cannot open the folder
The compressed zip folder abc.zip is empty.
But it is working when I am extracting the inner zip file using 7zip in windows machine.
The same thing I'm trying it in TOD for bigdata in 6.3 and 7.3 the outer zip file is fine but while Im extracting the inner zip file I'm getting below error. Can somebody please suggest on this?
TOS(6.3) Error:
Starting job Sample at 07:46 16/02/2021.
[statistics] connecting to socket on port 3356
[statistics] connected
Processing archive C:/Users/abc.zip, please wait...
Exception in component tFileUnarchive_2
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtEndOfCentralDirectoryRecord(ZipFile.java:847)
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:777)
at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:522)
at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:216)
at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:192)
at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:164)
at com.talend.compress.zip.Unzip.doUnzipWithoutDecryption(Unzip.java:191)
at com.talend.compress.zip.Unzip.doUnzip(Unzip.java:76)
at gannett.sample_0_1.Sample.tFileUnarchive_2Process(Sample.java:1230)
at gannett.sample_0_1.Sample.runJobInTOS(Sample.java:2165)
at gannett.sample_0_1.Sample.main(Sample.java:1350)
[statistics] disconnected
Job Sample ended at 07:46 16/02/2021. [exit code=1]
TOS 7.3 Error:
Starting job Sample at 08:00 16/02/2021.
[statistics] connecting to socket on port 3527
[statistics] connected
Processing archive C:/Users/abc.zip, please wait...
archive is not a ZIP archive
[statistics] disconnected
Job Sample ended at 08:00 16/02/2021. [exit code=0]

Related

DevOps Assembly Info task Issues in build pipeline with .Net 6 Solution

All,
I am attempting to add an assembly info taskto a build pipeline for all projects in a .Net 6 solution.
The task is failing for some projects and succeeding with others and terminating with an error the logging for which is as follows
Setting .Net Core / .Net Standard assembly info...
Processing: D:\A\F5\_work\15\s\MyCompany.Core.Domain.Context\MyCompany.Core.Domain.Context.csproj
Detected file encoding: utf-8
##[error]Error reading file: null
Processing: D:\A\F5\_work\15\s\MyCompany.Identity.Api\MyCompany.Identity.Api.csproj
Detected file encoding: utf-8
Verify file encoding: iso-8859-2
Processing: D:\A\F5\_work\15\s\MyCompany.IdentityServer.Services\MyCompany.Identity.Services.IS4.csproj
Detected file encoding: iso-8859-1
Verify file encoding: iso-8859-1
ApplicationInsights:CorrelationIdManager [ { Error: connect ETIMEDOUT 52.138.227.130:443
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1099:14)
code: 'ETIMEDOUT',
errno: 'ETIMEDOUT',
syscall: 'connect',
address: '52.138.227.130',
port: 443 } ]
Issue 1: ##[error]Error reading file: null
Based on the fact that
successful processing of a .csproj file is accompanied by a 'Detected file encoding' a 'Verify file encoding'
failed processing of a .csproj file is accompanied by a 'Detected file encoding' only
I'm thinking this could be due to the encoding of the files?
If I inspect each of the processed project files in my solution on my laptop using Notepad++ I can see that MyCompany.Identity.Services.IS4.csproj, which appears to be processed successfully, is UTF-8 but the other two are UTF-8-BOM so there's not consistency there.
However if I look at the corresponding files copied to the build server, the encoding has changed.
The two that succeed are UTF-8 but the one that has the error ##[error]Error reading file: null is UTF-8-BOM.
Firstly, why is the encoding changing between being on my laptop, pushed to Azure Repos Git and then copied to the build server by the pipeline?
Secondly, why doe a file get detected with one encoding but verified as another, as is the case with MyCompany.Identity.Api.csproj
Finally, why is the UTF-8-BOMfile failing and how can I prevent this?
Issue 2: Error: connect ETIMEDOUT
I've no idea where to start with that one so any pointers would be gratefully received.
Thanks in advance

How to solve "ERROR: Import of Jasper report server export zip failed!"

I am getting the following error when trying to run js-import script as root user.
INFO: Jasper report server install successful!
PORTAL_HOME =
cp: cannot stat ‘/jasper/install/distributions/jasperReports/lib/*’: No such file or directory
Using CATALINA_BASE: /opt/jasper/tomcat/apache-tomcat-9.0.56
Using CATALINA_HOME: /opt/jasper/tomcat/apache-tomcat-9.0.56
Using CATALINA_TMPDIR: /opt/jasper/tomcat/apache-tomcat-9.0.56/temp
Using JRE_HOME: /usr/java/jdk1.8.0_312
Using CLASSPATH: /opt/jasper/tomcat/apache-tomcat-9.0.56/bin/bootstrap.jar:/opt/jasper/tomcat/apache-tomcat-9.0.56/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Using CATALINA_PID: /opt/jasper/tomcat/apache-tomcat-9.0.56/catalina_pid.txt
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
Waiting on Tomcat to start - Retry 1/5 in 60s
INFO: Tomcat started Successfully!
Running the JS import script [/jasper/install/scripts/runJSTestInstall.sh.tmp].
ERROR: Import of Jasper report server export zip failed!
ERROR: Main install failed while executing child script [installJasperReports]!
INFO: Check the [installJasperReports.log] file for more details.
INFO: Fix the issue and then run [uninstallJasperReports.sh /jasper/install] followed by [installAll.sh /jasper/install installJasperReports] to resume.
I get the below log in js-import file relevant to the above error.
VALIDATION COMPLETED
Total time: 4 seconds
Executing CE version
First resource path: /opt/jasper/jasperReports/jasperreports-server-cp-8.0.0-bin/buildomatic/conf_source/ieCe
Loading configuration resources
Initialization complete
Processing started
Tenant not found with Tenant ID "organizations"
Please give a solution for this!

Camel FTP: directory name with umlaut

I'm working with camel-ftp and I have problems with German umlauts (e.g. Ö) in the directory name to connect to the FTP-Server. I can't rename this directory because it's a working directory of the company.
I use camel.version: 2.18.1 and camel-ftp.version: 2.18.1.
I configured following route (in the route I defined the directory which contains the umlaut with the unicode character \u00d6 for Ö):
from(ftp://user#hostname:21/etc/\u00d6ffentlicherOrdner/test?password=pwd).routeId("kurse").to(...)
Error message:
Consumer FtpConsumer[ftp://user#hostname:21/etc//0�ffentlicherOrdner/test?password=xxxxxx]
failed polling endpoint: ftp://ftp://user#hostname:21/etc/0�ffentlicherOrdner/test?password=xxxxxx.
Will try again at next poll.
Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException -
File operation failed: 550 �ffentlicherOrdner: Das System kann die angegebene Datei nicht finden.
When I extend the route with the following parameters:
&ftpClient.controlEncoding=ISO-8859-15
&charset=ISO-8859-15
&consumer.bridgeErrorHandler=true
Then I get the output that everything seems fine, because I didn't get any error message:
Route: kurse started and consuming from: ftp://user#hostname:21/etc/ÖffentlicherOrdner/test?charset=ISO-8859-1&consumer.bridgeErrorHandler=true&ftpClient.controlEncoding=ISO-8859-1&password=xxxxxx
But now no files are polled. I have some files in test directory but when i start the process it isn't pushing the files to the endpoint.
I don't understand why it is not consuming the files? Maybe the encoding is still wrong?
EDIT:
I was so fixed concerning the encoding that I missed to check the FTP properties.
The solution of my problem was to set the passiveMode:
&passiveMode=true

PhpStorm FTP 425 Unable to build data connection: Cannot assign requested address

PhpStorm FTP upload failed.
[17-1-16 下午5:17] Failed to transfer file '/a': cant open output connection for file "ftp://192.168.1.229:21/a". Reason: "425 Unable to build data connection: Cannot assign requested address".
[17-1-16 下午5:17] Upload to server completed in less than a minute: 108 files transferred, 3 items failed (541.1 Kb/s)
My PhpStorm running on deepin system (Linux)
net.ipv4.tcp_fin_timeout=30
net.ipv4.tcp_timestamps=1
net.ipv4.tcp_tw_recycle=1
net.ipv4.ip_local_port_range = 10000 65000
I tried to change the number of ports, but still failed to upload.
Who can help me ?
I got the same problem in IntelliJ IDEA.
Changing the connection type from FTP to SFTP helped. I hope it's also possible for you.

Couldn't get lock for log file %h/logs/MyAppRemoteLogging%u.log

When I start my Tomcat 7 instance and try to deploy a .war I get the following error.
Handler error
java.io.IOException: Couldn't get lock for log file %h/logs/MyAppRemoteLogging%u.log
at java.util.logging.FileHandler.openFiles(FileHandler.java:389)
at java.util.logging.FileHandler.<init>(FileHandler.java:225)
I tried to set absolute paths in logging.properties.
Can someone tell me the cause of this error or what that "%h" points to ?
Try to create a "logs" folder under WebContent folder. Then put an empty file in it. That's because Tomcat does not deploy empty folders.