Alias problem

Started by diokobol, October 20, 2023, 09:13:46 PM

Previous topic - Next topic
Good morning, I'm new and I apologize for my English. I'm having this problem managing aliases with an updated 23.7.6 version (not installed from scratch).

python3 /usr/local/opnsense/scripts/filter/update_tables.py
File "/usr/local/opnsense/scripts/filter/update_tables.py", line 85, in <module>
    alias_content = alias.cached() if use_cached(alias_name) else alias.resolve()
  File "/usr/local/opnsense/scripts/filter/lib/alias/__init__.py", line 180, in resolve
    for address in address_parser.iter_addresses(item):
  File "/usr/local/opnsense/scripts/filter/lib/alias/base.py", line 52, in iter_addresses
    syslog.syslog(syslog.LOG_ERR, 'alias table %s overflow' % self._name)
AttributeError: 'BaseContentParser' object has no attribute '_name'


Searching the forum I found a similar problem due to GEOIP which I promptly disabled but without obtaining any results.

Can anyone help me figure out which alias is having problems.

A new firewall without importing the configuration from this outcome:

{"status": "ok"}


Thank you

Can you post the output of /usr/local/opnsense/scripts/filter/lib/alias/base.py

Also how many Aliases do you have?
Can you paste the configuration of all of your Aliases?

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD

Hi Seimus,
thanks for your reply... today I updated to version 23.7.7 and now the aliases are working correctly again (2 months ago I had the same problem and same solution)

the command launched in ssh session does not produce any output

I currently use around 67 aliases between self-generated ones and those defined by me.

Thank you.