OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: diokobol on October 20, 2023, 09:13:46 PM

Title: Alias problem
Post by: diokobol on October 20, 2023, 09:13:46 PM
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
Title: Re: Alias problem
Post by: Seimus on October 23, 2023, 12:07:19 PM
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.
Title: Re: Alias problem
Post by: diokobol on October 26, 2023, 01:29:58 AM
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.