Skip to content
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

Read map file many errors #1474

Closed
2 of 12 tasks
AlexeySa opened this issue Mar 2, 2017 · 7 comments
Closed
2 of 12 tasks

Read map file many errors #1474

AlexeySa opened this issue Mar 2, 2017 · 7 comments
Labels

Comments

@AlexeySa
Copy link
Contributor

AlexeySa commented Mar 2, 2017

Classification (Please choose one option):

  • Crash/Hang/Data loss
  • WebUI/Usability
  • Serious bug
  • Other bug
  • Feature
  • Enhancement

Reproducibility (Please choose one option):

  • Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try
  • Not applicable

Rspamd version:

1.5.1 (git)

Operation system, CPU, memory and environment:

Centos 6.8 x64

Description (Please provide a descriptive summary of the issue):

I am get errors after start rspamd (log level "warning"):
rspamd[314244]: ; map; read_map_file: map file is unavailable for reading
rspamd[314243]: ; map; read_map_file: map file is unavailable for reading
rspamd[314245]: ; map; read_map_file: map file is unavailable for reading
rspamd[314245]: ; map; read_map_file: map file is unavailable for reading
rspamd[314248]: ; map; read_map_file: map file is unavailable for reading

If level = "debug" no this error.

Please help.

@fatalbanana
Copy link
Member

fatalbanana commented Mar 3, 2017

You will see this on startup for map files that don't exist (which is expected):

<35rhob>; map; rspamd_map_file_read_callback: rereading map file /etc/rspamd/local.d/mid.inc
<35rhob>; map; read_map_file: map file is unavailable for reading

@AlexeySa
Copy link
Contributor Author

AlexeySa commented Mar 3, 2017

Thank you. Indeed, the file does not exist.

I found one more problem. Rspamd put error if map file is empty.

map; read_map_file: can't open map /usr/local/rspamd/etc/rspamd/local.d/redirectors.inc: Success
stat /usr/local/rspamd/etc/rspamd/local.d/redirectors.inc
  File: `/usr/local/rspamd/etc/rspamd/local.d/redirectors.inc'
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file

@moisseev
Copy link
Member

moisseev commented Mar 3, 2017

@AlexeySa You can add a commented line as workaround.

@neuraload
Copy link

I'm getting this if map file is empty. Should be ignored if its empy imo.

csession; rspamd_controller_handle_get_map: cannot read map /etc/rspamd/local.d/blacklist.domain.map: Invalid argument

@LucaDev
Copy link

LucaDev commented Oct 24, 2017

Looking forward to getting this fixed! It's really annoying...

@stephdl
Copy link

stephdl commented Feb 9, 2018

Is it possible to make a PR concerning these map to the GH rspamd repository, what are the drawbacks if you did not do it before ?

I speak about

2tld.inc.local  
dkim_whitelist.inc.local  
dmarc_whitelist.inc.local  
mime_types.inc.local  
spf_dkim_whitelist.inc.local  
spf_whitelist.inc.local  
surbl-whitelist.inc.local

@stale
Copy link

stale bot commented Mar 25, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 25, 2019
@stale stale bot closed this as completed Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants