-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
promtail logs no such file or directory #429
Comments
have you customized docker data root? If so, you need add option for it.
|
If you are trying that on a Kubernetes Cluster, please check if you don't forget to mount the host logs directory.
and
I also had that problem because I forgot |
I've also seen this locally with docker for mac, it feels like a bug where the symlink in @matti are you still having this issue? Did either @Serrvosky or my suggestions above help? |
I'm also having this problem, it does look like the symlinks in |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
@Serrvosky ,I had this configation , but the issue still |
Hello @chenpfeisoo. Actualy, I don't work with promtail for a long time ago, but this was my implementation at the time:
I think, I used this configuration with kubernetes version 1.13. Which version are you using? |
@Serrvosky Thanks for your reply .The version of my cluster is 1.15.0 |
Without *log, the error seen here grafana/loki#429 will occur
We have also run into this, it would be nice for a way to supress the error. We are hitting around 1000 errors / s in unnecessary log. |
We have similar issues, those logs under |
This error message is flooding my logs and it's not a real problem. |
maybe you change the docker root Dir to the /home/docker @ |
Have you customized docker data root and installed promtail by helm? If so, you need add values as below.
## helm-loki-stack-values.yaml
loki:
enabled: true
persistence:
enabled: true
storageClassName: nfs-client
size: 1Gi
promtail:
enabled: true
extraVolumes:
- name: dataroot
hostPath:
path: /dooray
extraVolumeMounts:
- name: dataroot
mountPath: /dooray
readOnly: true
|
I am having an issue that seems very similar to this, I'm not sure if I should open a new issue. Please direct me to do so if that's preferred. I am using the grafana-agent on linux to export logs via Loki and I used to exporting a log file ( Jul 6 15:03:33 localhost grafana-agent[11276]: ts=2023-07-06T15:03:33.342184934Z caller=positions.go:206 level=warn component=logs logs_config=integrations msg="could not determine if log file still exists while cleaning positions file" error="stat /root/.pm2/logs/server-out-0.log: permission denied" This started after I moved the location of the log file to a more universal location and updated the job spec: - job_name: pm2
static_configs:
- labels:
instance: <INSTANCE>
job: pm2
__path__: /var/log/pm2/server-{out,error}-[0-9].log
pipeline_stages:
- multiline:
firstline: '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}:\s*'
- regex:
expression: '(?P<timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}):\s(?P<log>(?s:.*))'
- timestamp:
source: timestamp
format: RFC3339
- drop:
expression: "^ *$"
drop_counter_reason: "drop empty lines"
After I made the change I restarted the agent. Is there a way to tell the agent to forget about the old log file and it's checkpoints? [UPDATE] I was able to resolve my issue by removing the entry form the positions.yaml file. Note I had to stop the agent while editing the positions file because it is constantly being updated. Also, I needed to act as the grafana-agent to edit the file. systemctl stop grafana-agent.service
sudo su -l grafana-agent -s /bin/bash
vim /tmp/positions.yaml
# remove lines to unused log files:
# /root/.pm2/logs/server-error-0.log: "10901"
# /root/.pm2/logs/server-out-0.log: "8404847"
systemctl start grafana-agent.service |
installed with:
promtail logs are getting filled with:
The text was updated successfully, but these errors were encountered: