freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.91k stars 481 forks source link

Invalid or missing modules symlinks (version 1.8.96) #3369

Closed SS88UK closed 1 year ago

SS88UK commented 1 year ago

Hello,

Read the FAQ but I am still confused by the error displayed and my situation;

PHP 8.1.20 FreeScout 1.8.96

Error(s) e.g:

Error occurred creating [/var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/public/modules/ticketnumber] symlink: symlink(): No such file or directory

Error(s) on Modules & Status Page:

/var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/public/modules/customerdataenrichment -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/CustomerDataEnrichment/Public
/var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/public/modules/ticketnumber -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/TicketNumber/Public

Contents of modules folder:

XXX@Ubuntu-2204-jammy-amd64-base:~/public_html/public/modules$ ls -lsa
total 68
4 drwxr-xr-x 2 xx_user xx_user 4096 Sep  8 16:50 .
4 drwxrwxr-x 8 xx_user xx_user 4096 Dec 15  2022 ..
0 -rw-r--r-- 1 xx_user xx_user    0 Sep  8 16:36 .gitkeep
4 lrwxrwxrwx 1 xx_user xx_user   84 Feb 26  2023 apiwebhooks -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/ApiWebhooks/Public
4 lrwxrwxrwx 1 xx_user xx_user   92 Dec 15  2022 blockexternalimages -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/BlockExternalImages/Public
4 lrwxrwxrwx 1 xx_user xx_user   95 Sep  8 16:50 customerdataenrichment -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/CustomerDataEnrichment/Public
4 lrwxrwxrwx 1 xx_user xx_user   86 Dec 15  2022 enduserportal -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/EndUserPortal/Public
4 lrwxrwxrwx 1 xx_user xx_user   92 Dec 15  2022 extendedattachments -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/ExtendedAttachments/Public
4 lrwxrwxrwx 1 xx_user xx_user   87 Dec 15  2022 extendededitor -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/ExtendedEditor/Public
4 lrwxrwxrwx 1 xx_user xx_user   86 Dec 15  2022 knowledgebase -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/KnowledgeBase/Public
4 lrwxrwxrwx 1 xx_user xx_user   80 Dec 15  2022 reports -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/Reports/Public
4 lrwxrwxrwx 1 xx_user xx_user   83 Dec 15  2022 satratings -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/SatRatings/Public
4 lrwxrwxrwx 1 xx_user xx_user   85 Dec 15  2022 savedreplies -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/SavedReplies/Public
4 lrwxrwxrwx 1 xx_user xx_user   87 Sep  8 16:36 sendertimezone -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/SenderTimeZone/Public
4 lrwxrwxrwx 1 xx_user xx_user   82 Dec 15  2022 sendlater -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/SendLater/Public
4 lrwxrwxrwx 1 xx_user xx_user   77 Dec 15  2022 tags -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/Tags/Public
4 lrwxrwxrwx 1 xx_user xx_user   85 Dec 15  2022 timetracking -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/TimeTracking/Public
4 lrwxrwxrwx 1 xx_user xx_user   82 Dec 15  2022 workflows -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/Workflows/Public

My Problems:

  1. "ticketnumber" is never getting created, even after deactivating and re-activating.
  2. "customerdataenrichment" IS being created and removed on deactivation and re-activation, but it's error persists.

Any help is appreciated!

eickit commented 1 year ago

i have the same problem, with "inbox" an "officehours" module

freescout-helpdesk commented 1 year ago
  1. "ticketnumber" is never getting created, even after deactivating and re-activating.

Does /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/TicketNumber/Public folder exist?

  1. "customerdataenrichment" IS being created and removed on deactivation and re-activation, but it's error persists.

Check if this /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/CustomerDataEnrichment/Public is a folder.

SS88UK commented 1 year ago

"ticketnumber" is never getting created, even after deactivating and re-activating.

XX@Ubuntu-2204-jammy-amd64-base:~/public_html/Modules$ ls -lsa
total 68
4 drwxr-xr-x 16 xx_user xx_user 4096 Sep  8 16:53 .
4 drwxr-x--- 19 xx_user        99 4096 Sep  8 16:42 ..
4 -rw-r--r--  1 xx_user xx_user  584 Sep  8 16:36 .gitkeep
4 drwxr-xr-x 12 xx_user xx_user 4096 Feb 26  2023 ApiWebhooks
4 drwxr-xr-x  8 xx_user xx_user 4096 Jan 27  2022 BlockExternalImages
4 drwxr-xr-x  7 xx_user xx_user 4096 Nov  3  2022 CustomerDataEnrichment
4 drwxr-xr-x  9 xx_user xx_user 4096 Jan 27  2022 ExtendedAttachments
4 drwxr-xr-x  8 xx_user xx_user 4096 Jan 27  2022 ExtendedEditor
4 drwxr-xr-x  9 xx_user xx_user 4096 Dec 20  2022 Reports
4 drwxr-xr-x  8 xx_user xx_user 4096 Jan 27  2022 SatRatings
4 drwxr-xr-x  9 xx_user xx_user 4096 Jan 27  2022 SavedReplies
4 drwxr-xr-x  8 xx_user xx_user 4096 Jan 28  2022 SendLater
4 drwxr-xr-x  8 xx_user xx_user 4096 Sep  8 16:36 SenderTimeZone
4 drwxr-xr-x  9 xx_user xx_user 4096 Jan 27  2022 Tags
4 drwxr-xr-x  7 xx_user xx_user 4096 Mar  9  2023 TicketNumber
4 drwxr-xr-x  9 xx_user xx_user 4096 Jan 27  2022 TimeTracking
4 drwxr-xr-x 10 xx_user xx_user 4096 Jan 27  2022 Workflows
XX@Ubuntu-2204-jammy-amd64-base:~/public_html/public/modules$ cd /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/TicketNumber/Public
bash: cd: /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/TicketNumber/Public: Too many levels of symbolic links
XX@Ubuntu-2204-jammy-amd64-base:~/public_html/Modules/TicketNumber$ ls -lsa
total 44
4 drwxr-xr-x  7 xx_user xx_user 4096 Mar  9  2023 .
4 drwxr-xr-x 16 xx_user xx_user 4096 Sep  8 16:53 ..
4 drwxr-xr-x  2 xx_user xx_user 4096 Jan 27  2022 Config
4 drwxr-xr-x  3 xx_user xx_user 4096 Jan 27  2022 Database
4 drwxr-xr-x  3 xx_user xx_user 4096 Jan 27  2022 Http
4 drwxr-xr-x  2 xx_user xx_user 4096 Jan 27  2022 Providers
4 lrwxrwxrwx  1 xx_user xx_user   85 Mar  9  2023 Public -> /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/TicketNumber/Public
4 drwxr-xr-x  3 xx_user xx_user 4096 Jan 27  2022 Resources
4 -rw-r--r--  1 xx_user xx_user  513 Jan 27  2022 composer.json
4 -rw-r--r--  1 xx_user xx_user  598 Jan 27  2022 module.json
4 -rw-r--r--  1 xx_user xx_user  516 Jan 27  2022 start.php

"customerdataenrichment" IS being created and removed on deactivation and re-activation, but it's error persists.

XX@Ubuntu-2204-jammy-amd64-base:~/public_html/Modules$ cd /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/CustomerDataEnrichment/Public
bash: cd: /var/www/698ac8cb-7db0-42a9-905e-f1da7b0ee738/public_html/Modules/CustomerDataEnrichment/Public: No such file or directory

Looks like the wrong/old symlink for me! Should I delete or re-point it this one?

ls -lsa
total 44
4 drwxr-xr-x  7 xx_user xx_user 4096 Nov  3  2022 .
4 drwxr-xr-x 16 xx_user xx_user 4096 Sep  8 16:53 ..
4 drwxr-xr-x  2 xx_user xx_user 4096 Jan 27  2022 Config
4 drwxr-xr-x  4 xx_user xx_user 4096 Jan 27  2022 Database
4 drwxr-xr-x  3 xx_user xx_user 4096 Jan 27  2022 Http
4 drwxr-xr-x  2 xx_user xx_user 4096 Jan 27  2022 Providers
4 lrwxrwxrwx  1 xx_user xx_user   62 Nov  3  2022 Public -> /home/XX/webapps/help2/Modules/CustomerDataEnrichment/Public
4 drwxr-xr-x  3 xx_user xx_user 4096 Jan 27  2022 Resources
4 -rw-r--r--  1 xx_user xx_user  553 Nov  3  2022 composer.json
4 -rw-r--r--  1 xx_user xx_user  652 Nov  3  2022 module.json
4 -rw-r--r--  1 xx_user xx_user  516 Nov  3  2022 start.php
freescout-helpdesk commented 1 year ago

https://github.com/freescout-helpdesk/freescout/wiki/FreeScout-Modules#-invalid-or-missing-modules-symlinks-error

If some simlink is missing, incorrect or you see a folder instead of symlink just remove it, deactivate corresponding module and activate the module again and correct symlink should be created automatically. If it does not help create the symlink manually.

If Public folder is missing in some module directory just create an empty Public folder manually. If you have a symlink instead of Public folder - just remove it and create an empty Public folder manually.

SS88UK commented 1 year ago

Thank you, I did the "CustomerDataEnrichment" one and then saw the newest FS version update. Updated FreeScout and everything is working as expected, thank you! Much appreciated!