@peopleinside
i update uvdesk.yalm, i replaced "localhost:8000" with the ip address
thanks
@peopleinside i try to reinstall all machine
hi, i have reinstall all. Php version is correct and the project running well. I configurated the mailbox and the swift mailer correctly. When i try to update the mail i recive this error. I made sure the permissions are correct.
I can't find the error
Thanks
Max
administrator@uvdesk:/var/www/uvdesk/helpdesk-project$ sudo chown -R www-data:www-data /var/www/uvdesk
administrator@uvdesk:/var/www/uvdesk/helpdesk-project$ php bin/console uvdesk:refresh-mailbox [... email address removed ...]
In StreamHandler.php line 146:
The stream or file "/var/www/uvdesk/helpdesk-project/var/log/dev.log" could not be opened in append mode: failed to open stream: Pe
rmission denied
uvdesk:refresh-mailbox [-t|--timestamp TIMESTAMP] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<emails>...]
administrator@uvdesk:/var/www/uvdesk/helpdesk-project$
@mxdevito did you run the cron job as root?
php bin/console uvdesk:refresh-mailbox xxx@xxxx
Seems yes as I see administrator@ before the command line.
If you run the mail command as administrator you can get errors so again you need maybe to check if the dev folder is under admin or under normal user account group.
If you go under /uvdesk/var/cache/ by ssh than you run the following command:
ls -l dev
what do you see?
Seems you have server file or folder permission issue.
If you search on Google the error "could not be opened in append mode: failed to open stream: Permission denied" you will maybe see what can be wrong.
@peopleinside
it's not permission problems, just for test, i set permission 777 for only var/log folder. "administrator" is normal user with the administrator name. I have a message with error -> and nothing more.
Processing uvdesk mailbox configuration.
Opening imap stream...
IMAP stream opened.
Fetching Email collection since 19 January 2022.
Total fetched email -> 1
Starting to convert Emails into Tickets ->
=============================================
=============================================
Converting email 1 out of 1.
Error ->
Permission folder for var/cache
administrator@uvdesk:/var/www/uvdesk/helpdesk-project/var/cache$ ls -l dev/
total 1552
-rwxrwxrwx 1 www-data www-data 98 Jan 20 10:30 annotations.map
-rwxrwxrwx 1 www-data www-data 5292 Jan 20 10:21 annotations.php
drwxrwxrwx 2 www-data www-data 4096 Jan 20 10:29 Container3MgqZ4w
-rwxrwxrwx 1 www-data www-data 0 Jan 20 10:30 Container3MgqZ4w.legacy
drwxrwxrwx 2 www-data www-data 4096 Jan 20 10:30 ContainerXp2MXx0
drwxrwxrwx 3 www-data www-data 4096 Jan 20 10:21 doctrine
drwxrwxrwx 9 www-data www-data 4096 Jan 20 10:22 pools
drwxrwxrwx 114 www-data www-data 4096 Jan 20 11:07 profiler
-rwxrwxrwx 1 www-data www-data 100 Jan 20 10:21 serialization.php
-rwxrwxrwx 1 www-data www-data 436896 Jan 20 10:30 srcApp_KernelDevDebugContainerCompiler.log
-rwxrwxrwx 1 www-data www-data 43137 Jan 20 10:30 srcApp_KernelDevDebugContainerDeprecations.log
-rwxrwxrwx 1 www-data www-data 785 Jan 20 10:30 srcApp_KernelDevDebugContainer.php
-rwxrwxrwx 1 www-data www-data 0 Jan 20 10:30 srcApp_KernelDevDebugContainer.php.lock
-rwxrwxrwx 1 www-data www-data 44029 Jan 20 10:30 srcApp_KernelDevDebugContainer.php.meta
-rwxrwxrwx 1 www-data www-data 60238 Jan 20 10:30 srcApp_KernelDevDebugContainer.preload.php
-rwxrwxrwx 1 www-data www-data 692312 Jan 20 10:30 srcApp_KernelDevDebugContainer.xml
-rwxrwxrwx 1 www-data www-data 44029 Jan 20 10:30 srcApp_KernelDevDebugContainer.xml.meta
drwxrwxrwx 2 www-data www-data 12288 Jan 20 10:21 translations
drwxrwxrwx 190 www-data www-data 4096 Jan 20 10:21 twig
-rwxrwxrwx 1 www-data www-data 65694 Jan 20 10:30 url_generating_routes.php
-rwxrwxrwx 1 www-data www-data 8655 Jan 20 10:30 url_generating_routes.php.meta
-rwxrwxrwx 1 www-data www-data 71279 Jan 20 10:30 url_matching_routes.php
-rwxrwxrwx 1 www-data www-data 8655 Jan 20 10:30 url_matching_routes.php.meta
-rwxrwxrwx 1 www-data www-data 29486 Jan 20 10:21 validation.php
@mxdevito to mee looks your problem is a folder / group server permission issue but I'm not a developer. I think is your server permission files issue because of what I can find on Google about the error "could not be opened in append mode: failed to open stream: Permission denied" that you get.. as you can see on the web is not an error relative to UVdesk but of any applications if there are folders and file group permission.
Anyway you can try to wait a reply from developers.
@Sanjeev any suggestion to give to @mxdevito ?
@peopleinside
i update uvdesk.yalm, i replaced "localhost:8000" with the ip address
thanks
@mxdevito have hou solved all errors?
@peopleinside
yes sir, thanks for the help, and sorry for my errors.
@mxdevito glad to know and read you solved.