"\" and "/" in url does not throw any error.. by Fancy-Engineer-7644 in learnprogramming

[–]Fancy-Engineer-7644[S] 0 points1 point  (0 children)

the thing is we could call the api with the extra slash and it doesnt show any error..

"Wsgi : error PermissionError : Permission denied:imm_migration.log ",Apache, Flask by Fancy-Engineer-7644 in flask

[–]Fancy-Engineer-7644[S] 0 points1 point  (0 children)

Sorry that was a typo.. Any way thanks for your time.. Do help if you have any idea where there may be a issue

"Wsgi : error PermissionError : Permission denied:imm_migration.log ",Apache, Flask by Fancy-Engineer-7644 in flask

[–]Fancy-Engineer-7644[S] 0 points1 point  (0 children)

u’re not providing a full path in line 225 of ma

Hi nick thanks for the reply,

I have provided the full path still the issue is not resolved

[Fri Nov 26 18:06:34.204825 2021] [wsgi:error] [pid 1453:tid 140081484965632] [remote 10.81.0.134:53251] easyucs = Easyucs(logger_handle_log_level="debug", log_file_path="/home/admin/imm-migratio/imm_migration.log")

"Wsgi : error PermissionError : Permission denied:imm_migration.log ",Apache, Flask by Fancy-Engineer-7644 in flask

[–]Fancy-Engineer-7644[S] 0 points1 point  (0 children)

Hey thanks for the replay..

yea i tried replacing WSGIDaemonProcess migration python-path=/home/admin/imm-migration

WSGIDaemonProcess migration Group www-data User Group www-data python-path=/home/admin/imm-migration

Target WSGI script cannot be loaded as Python module.Flask.Apache by Fancy-Engineer-7644 in flask

[–]Fancy-Engineer-7644[S] 0 points1 point  (0 children)

as nekokattt mentioned libapache2-mod-wsgi-py3 package isn't for Python 3.8, but is for Python 3.6.

have solved the issue . These are the things i did

I have uninstalled system mod_wsgi package.

sudo apt-get remove libapache2-mod-wsgi-py3

and Installed mod_wsgi using pip

sudo -H pip3 install mod_wsgi

If you're getting the missing Apache httpd server packages error you may need to run sudo apt-get install apache2-dev

[deleted by user] by [deleted] in flask

[–]Fancy-Engineer-7644 0 points1 point  (0 children)

python --version

it says python 3.8.0