Closed MrGlenn-tech closed 1 month ago
Did some more testsing / some changes and it seems like this where it stops working PermissionError: [Errno 13] Permission denied: '/home/appuser/cdrfiles/cdrfiles_archives/2024'
Im running the docker-compose as sudo not sure if any thing need to change on my side
Hello I know there still issues but i need specific issue per bugs , that's why i close preceding one
For this one , i see in logs what happens , it is linked with the permission issue I have made some improvements to test permissions and create folders that not exist to archive files and in this improvement i did not use the function correctly
Another i can see is that in your .env file the locales is not good , you let LOCALE_LANGUAGE =fr_FR
Letting this , your times will not be well formatted and the day_of_week will be set in french
Just for information ,i think the docker image doesn't restart , it's just the poller that scans scp that run every 60s
Can we close this now ?
Sorry to bother you,
Was this fixed ? i get the same issue unfurtuntly
Ok , can you send me latest logs ?
Hi,
Sure here they are
cdr-240607075205.283879.log Permissions of the directory:/home/appuser/cdrfiles/cdrfiles_archives/ Read permission: Yes Write permission: Yes Execute permission: Yes Traceback (most recent call last): File "/home/appuser/app/srv/runserver.py", line 51, in <module> scpc.monitor(os.environ.get('SCP_3CX_SRVDIR'), File "/home/appuser/app/myhelpers/scpclient.py", line 39, in monitor csv_files_read(localfolder, archivefolder) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/appuser/app/myhelpers/traitement_fichier.py", line 63, in csv_files_read files_move(f, archivefolder) File "/home/appuser/app/myhelpers/traitement_fichier.py", line 32, in files_move os.mkdir(savefolderd, mode=0o777) PermissionError: [Errno 13] Permission denied: '/home/appuser/cdrfiles/cdrfiles_archives/2024'
Thx Can you try adding thé user you run docker to thé docker group si that you don't have to run docker compose with sudo ?
Yes did that just now and did a docker-compose up with out sudo and it starts but the same issue in the log files
Normaly , if you user IS part of docker group, no need if sudo
It starts now with out sudo so that part is ok, but i still get the same error code in the log file about permission.
Great , 1- can you look at thé user and permission for the folder creating thé error 2 - Can you remove folder 2024
Today , i was able to reproduce the problem , perhaps i will have a solution tomorow
Hello , i published latest master this evening , i hope it will now be ok
Tested it now,
Getting a new error now :(
/home/appuser/app Traceback (most recent call last): File "/home/appuser/app/srv/runserver.py", line 62, in <module> run_server(server_type, client_config) File "/home/appuser/app/srv/runserver.py", line 53, in run_server with create_client(server_type, **client_config) as client: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/appuser/app/srv/runserver.py", line 41, in create_client return scpclient(**kwargs) ^^^^^^^^^^^^^^^^^^^ TypeError: scpclient.__init__() got an unexpected keyword argument 'server_dir'
Sorry , i've made some change in code so that it will be easier to maintain
new master correct this error
Now it works ! Great job indeed ! that is so good, i will buy you some more beers for sure :)
Great Thx for the beers Don't hesitate to create improvements issue if needed
Hi,
now i got everything working and i can se one line in the database but then it stops wokring. and the docker image restarts.
this is the error i get any idea how i should solve it?