Closed salman-aboholiqah closed 1 month ago
Hello,
The error indicates it's trying to create the log file under the site directory instead of the bench; usually the logs are under bench/logs
but it's trying to create it under bench/sites/ager/logs
, which doesn't exist. I suspect this is because we're creating the logger in __init__.py
which gets loaded at various points. Presumably it's getting loaded during site creation while the current working directory is the actual site directory.
To fix this, we'll have to make logger creation lazy (i.e. the logger is created on demand the first time it's requested), which would require changing all references.
In the meantime, can you please try to create the logs directory under the site directory as a workaround? i.e. mkdir -p ~/frappe-bench/sites/ager/logs
I have a site running well in production mode But when I ran this command
It shows me this error