Closed mihha closed 6 years ago
If installing application in /var/www/html/
(application directory), server web root directory must be /var/www/html/public
And you will access FreeScout at https://my_domain
I am using Apache web server and not NGINX
See Apache virtual host configuration: https://github.com/freescout-helpdesk/freescout/wiki/Installation-Guide#72-apache
And check logs in /storage/logs folder
You can also enable debugging to see error messages in your browser by adding the following to .env
file (don't forget to remove it when you finish debugging):
APP_DEBUG=true
The problem is that application key is not placed into the .env file when you generate it using php artisan key:generate
ERROR: No application encryption key has been specified. {"exception":"[object] (RuntimeException(code: 0): No application encryption key has been specified.
I tried to add it like this in the .env file but it is still reporting this issue
APP_KEY=[base64:zsgOn1T302Dfb3ZaOvnRlnLM7IhiP999hq31z/FgM7Q=]
AH!
It works now
After I manually placed APP_KEY in the .env file I run the following
php artisan config:cache
Same problem here, but even after running the php artisan key:generate command I still get the error.
@nickbe did you use installation wizard (/install
)?
Have you tried to check logs and enable debugging?
Hello @freescout-helpdesk , I also have the same problem. I use PHP 7.3.6, Nginx 1.15.2 as reserve proxy server and Apache 2.4.39 connect to php-fpm.
I use two method to installed the freescout in fresh, even I tried making my database name and password more uncompelxity, also tried mariadb 10.3 and postgres 11, but I always get "Whoops, looks like something went wrong" at the end of configuration. and I see these errors in /storage/logs folder
` [2019-06-20 11:03:10] production.ERROR: preg_match(): Compilation failed: invalid range in character class at offset 1828 {"exception":"[object] (ErrorException(code: 0): preg_match(): Compilation failed: invalid range in character class at offset 1828 at /var/www/mailserver/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php:1375) [stacktrace]
...', 'http://mail.eas...')
"} [2019-06-20 11:03:28] production.ERROR: preg_match(): Compilation failed: invalid range in character class at offset 1828 {"exception":"[object] (ErrorException(code: 0): preg_match(): Compilation failed: invalid range in character class at offset 1828 at /var/www/mailserver/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php:1375) [stacktrace]
...', 'http://mail.eas...')
"} [2019-06-20 11:03:31] production.ERROR: preg_match(): Compilation failed: invalid range in character class at offset 1828 {"exception":"[object] (ErrorException(code: 0): preg_match(): Compilation failed: invalid range in character class at offset 1828 at /var/www/mailserver/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php:1375) [stacktrace]
...', 'http://mail.eas...')
"} [2019-06-20 11:03:57] production.ERROR: preg_match(): Compilation failed: invalid range in character class at offset 1828 {"exception":"[object] (ErrorException(code: 0): preg_match(): Compilation failed: invalid range in character class at offset 1828 at /var/www/mailserver/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php:1375) [stacktrace]
...', 'https://mail.ea...')
"} `
I think I should be something wrong goes with laveral, but I couldn't figure out what kind of problem is, Could you help me
@a2d8a4v do you have "-" symbol in any of the fields (App URL, Database Host, etc.)?
Hello, @free-scout, no . In fact, at first I use database name with “_” underline, but I also tried pure alphabet on database name, user name, password ,etc And I always run composer command to clean cache before trying another new run
@a2d8a4v Which App URL are you using? Latin letters, any "-" symbols? Can you share it?
Hello, @freescout-helpdesk scout, I’m using this domain: easyserver.io And app url is that mail.easyserver.io
@freescout-helpdesk And there are other error log call from debug mode
in ValidatesAttributes.php line 1375 at HandleExceptions->handleError(2, 'preg_match(): Compilation failed: invalid range in character class at offset 1828', '/var/www/mail_easyserver_io/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php', 1375, array('attribute' => 'app_url', 'value' => 'http://mail.easyserver.io', 'pattern' => '~^ ((aaa|aaas|about|acap|acct|acr|adiumxtra|afp|afs|aim|apt|attachment|aw|barion|beshare|bitcoin|blob|bolo|callto|cap|chrome|chrome-extension|cid|coap|coaps|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-playcontainer|dlna-playsingle|dns|dntp|dtn|dvb|ed2k|example|facetime|fax|feed|feedready|file|filesystem|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|ham|hcp|http|https|iax|icap|icon|im|imap|info|iotdisco|ipn|ipp|ipps|irc|irc6|ircs|iris|iris.beep|iris.lwz|iris.xpc|iris.xpcs|itms|jabber|jar|jms|keyparc|lastfm|ldap|ldaps|magnet|mailserver|mailto|maps|market|message|mid|mms|modem|ms-help|ms-settings|ms-settings-airplanemode|ms-settings-bluetooth|ms-settings-camera|ms-settings-cellular|ms-settings-cloudstorage|ms-settings-emailandaccounts|ms-settings-language|ms-settings-location|ms-settings-lock|ms-settings-nfctransactions|ms-settings-notifications|ms-settings-power|ms-settings-privacy|ms-settings-proximity|ms-settings-screenrotation|ms-settings-wifi|ms-settings-workplace|msnim|msrp|msrps|mtqp|mumble|mupdate|mvn|news|nfs|ni|nih|nntp|notes|oid|opaquelocktoken|pack|palm|paparazzi|pkcs11|platform|pop|pres|prospero|proxy|psyc|query|redis|rediss|reload|res|resource|rmi|rsync|rtmfp|rtmp|rtsp|rtsps|rtspu|secondlife|s3|service|session|sftp|sgn|shttp|sieve|sip|sips|skype|smb|sms|smtp|snews|snmp|soap.beep|soap.beeps|soldat|spotify|ssh|steam|stun|stuns|submit|svn|tag|teamspeak|tel|teliaeid|telnet|tftp|things|thismessage|tip|tn3270|turn|turns|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|videotex|view-source|wais|webcal|ws|wss|wtai|wyciwyg|xcon|xcon-userid|xfire|xmlrpc\.beep|xmlrpc.beeps|xmpp|xri|ymsgr|z39\.50|z39\.50r|z39\.50s)):// # protocol (([\pL\pN-]+:)?([\pL\pN-]+)@)? # basic auth ( ([\pL\pN\pS-\.])+(\.?([\pL]|xn\-\-[\pL\pN-]+)+\.?) # a domain name | # or \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} # an IP address | # or \[ (?:(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?: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0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,4}(?:(?:[0-9a-f]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,5}(?:(?:[0-9a-f]{1,4})))?::)(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,6}(?:(?:[0-9a-f]{1,4})))?::)))) \] # an IPv6 address ) (:[0-9]+)? # a port (optional) (/?|/\S+|\?\S|\#\S) # a /, nothing, a / with something, a query or a fragment $~ixu')) at preg_match('~^ ((aaa|aaas|about|acap|acct|acr|adiumxtra|afp|afs|aim|apt|attachment|aw|barion|beshare|bitcoin|blob|bolo|callto|cap|chrome|chrome-extension|cid|coap|coaps|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-playcontainer|dlna-playsingle|dns|dntp|dtn|dvb|ed2k|example|facetime|fax|feed|feedready|file|filesystem|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|ham|hcp|http|https|iax|icap|icon|im|imap|info|iotdisco|ipn|ipp|ipps|irc|irc6|ircs|iris|iris.beep|iris.lwz|iris.xpc|iris.xpcs|itms|jabber|jar|jms|keyparc|lastfm|ldap|ldaps|magnet|mailserver|mailto|maps|market|message|mid|mms|modem|ms-help|ms-settings|ms-settings-airplanemode|ms-settings-bluetooth|ms-settings-camera|ms-settings-cellular|ms-settings-cloudstorage|ms-settings-emailandaccounts|ms-settings-language|ms-settings-location|ms-settings-lock|ms-settings-nfctransactions|ms-settings-notifications|ms-settings-power|ms-settings-privacy|ms-settings-proximity|ms-settings-screenrotation|ms-settings-wifi|ms-settings-workplace|msnim|msrp|msrps|mtqp|mumble|mupdate|mvn|news|nfs|ni|nih|nntp|notes|oid|opaquelocktoken|pack|palm|paparazzi|pkcs11|platform|pop|pres|prospero|proxy|psyc|query|redis|rediss|reload|res|resource|rmi|rsync|rtmfp|rtmp|rtsp|rtsps|rtspu|secondlife|s3|service|session|sftp|sgn|shttp|sieve|sip|sips|skype|smb|sms|smtp|snews|snmp|soap.beep|soap.beeps|soldat|spotify|ssh|steam|stun|stuns|submit|svn|tag|teamspeak|tel|teliaeid|telnet|tftp|things|thismessage|tip|tn3270|turn|turns|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|videotex|view-source|wais|webcal|ws|wss|wtai|wyciwyg|xcon|xcon-userid|xfire|xmlrpc\.beep|xmlrpc.beeps|xmpp|xri|ymsgr|z39\.50|z39\.50r|z39\.50s)):// # protocol (([\pL\pN-]+:)?([\pL\pN-]+)@)? # basic auth ( ([\pL\pN\pS-\.])+(\.?([\pL]|xn\-\-[\pL\pN-]+)+\.?) # a domain name | # or \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} # an IP address | # or \[ (?:(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-f]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-f]{1,4})))?::(?:(?:(?:[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?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,5}(?:(?:[0-9a-f]{1,4})))?::)(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,6}(?:(?:[0-9a-f]{1,4})))?::)))) \] # an IPv6 address ) (:[0-9]+)? # a port (optional) (/?|/\S+|\?\S|\#\S) # a /, nothing, a / with something, a query or a fragment $~ixu', 'http://mail.easyserver.io')in ValidatesAttributes.php line 1375
`
@a2d8a4v copy this file to /vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php
and reinstall the app.
@freescout-helpdesk thank you so much! Let me try later!
Wow! @freescout-helpdesk , It really works! Thank you so much for helping me!
I'm getting the same error on loading the helpdesk.
production.ERROR: file_put_contents(/home/helpdesk/storage/framework/cache/data/5e/3c/5e3cbbed47195384f39edf30b47d8cd8245cdff8): failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/home/helpdesk/storage/framework/cache/data/5e/3c/5e3cbbed47195384f39edf30b47d8cd8245cdff8): failed to open stream: Permission denied at /home/helpdesk/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)
Checked the permission on file "/home/helpdesk/storage/framework/cache/data/5e/3c/5e3cbbed47195384f39edf30b47d8cd8245cdff8", it is 644, changed it to 755. Doesn't help.
APP_KEY
.file_put_contents(/home/helpdesk/storage/framework/cache/data/5e/3c/5e3cbbed47195384f39edf30b47d8cd8245cdff8): failed to open stream: Permission denied
Any ideas?
Still Having Same issue on version [1.8.20]
Somehow this is working, however it is not sustainable? The issue is coming back again time to time. Here are the steps of what I do after it shows up again:
.env
file/bin/php8.2 /var/www/freescout/artisan freescout:clear-cache
Does anyone else is having this issue?
managed to fix it with permission via
chmod -R 775 /var/www/freescout/storage/
I was able to install the application on my server but now when I try to access login page, I am receiving the following:
I am accessing this on the following URL:
https://my_domain/public/index.php
I am sure that I am doing something wrong here but can't figure out what exactly
Is there a log file which I can consult?