streamsets / datacollector-tests

StreamSets Test Framework-based tests for StreamSets Data Collector
Apache License 2.0
18 stars 29 forks source link

Invalid argument: '/etc/localtime' #67

Closed nahuel-numberlabs closed 1 year ago

nahuel-numberlabs commented 1 year ago

Hi there, I am trying to deploy the tool in an AWS EC2 instance and I am getting this error.

StreamSet Testing Tool Error

Find below some details...

AMI ID: ami-06e46074ae430fba6 AMI NAME: al2023-ami-2023.0.20230329.0-kernel-6.1-x86_64 PYTHON VERSION: 3.9.16

PD: EC2-USER has privileges to run DOCKER and to read the file /etc/localtime

Any thoughts ?

keyoffecka commented 1 year ago

Make sure /etc/localtime is not a soft link but a real file or a hard link

nahuel-numberlabs commented 1 year ago

@keyoffecka Thanks for jumping in, I have already checked that and yes, is a proper file. As mentioned the ec2-user can read it just fine.

keyoffecka commented 1 year ago

Then it should be the other way around: a soft link to a timzeone file. In my case it's

ls -la /etc/localtime 
lrwxrwxrwx 1 root root 23 Apr  7  2022 /etc/localtime -> /usr/share/zoneinfo/UTC
nahuel-numberlabs commented 1 year ago

For some reason, AWS AMI doesn't have the symlink. The fix to the issue is what @keyoffecka suggested.