Ignore a specific file in ack 2.0 to avoid Permission Denied error - ack

I have a file that causes Ack 2.0 to report a "Permission denied" error, so I've been trying to get it to ignore the file.
I have tried the following in my ackrc
--type-set=lockfile:match:/NameOfLockfile/
--type=nolockfile
But it still reports the error "Permission denied". Using the same syntax I have confirmed that I can get it to not search in the given file (yet it must still try to access it since it gets permission denied error)

Just do --ignore-file=match:/NameOfLockFile/ or --ignore-file=is:NameOfLockFile. You don't need to set a filetype for it.

Related

Orocommerce installed. But Symfony Permission denied, Failed to read session data

After installed orocommerce, i input the URL and want to visit my domain, then error occurred.
Warning: SessionHandler::read(): open(/www/wwwroot/mydomain.com/var/sessions/prod/sess_u8756ela11vqu4ihcokmklo9b8, O_RDWR) failed: Permission denied (13) in /www/wwwroot/mydomain.com/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php on line 49
Warning: session_start(): Failed to read session data: user (path: /www/wwwroot/mydomain.com/var/sessions/prod) in /www/wwwroot/mydomain.com/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php on line 149
**StrictSessionHandler.php on line 49 is**
return $this->handler->read($sessionId);
**NativeSessionStorage.php on line 149 is**
if (!session_start()) {
throw new \RuntimeException('Failed to start the session.');
}
can anybody help me?
"Permission denied" means the webserver has no access to the sessions folder.
You have to set up permissions properly or change the user used for the webserver.

How to fix 'Uncaught PHP Exception Twig_Error_Loader: Unable to find template' on Symfony 3.4?

I deployed a symfony 3.4 project from my local machine (Windows 10) to a cloud server (Digital Ocean) based on Ubuntu.
I spent 2 days trying to resolve this (i think) routing problem:
"request.CRITICAL: Uncaught PHP Exception Twig_Error_Loader..."
Locally, on localhost with XAMPP, it works perfect.
The project runs ok on the login (is like a backend user app), with the register ok But when it tries to pass the login, it needs to load the initial dashboard with some includes (like nav_side.html.twig) and the server response is error 500.
How can i fix it?
Thanks a lot for your response...i'm a little bit desperate. :)
I made composer update, i deleted the cache folder, but the error is still there.
request.CRITICAL: Uncaught PHP Exception Twig_Error_Loader: "Unable to
find template "Backe ndBundle:includes:nav_side.html.twig"
(looked into: /var/www/onecup/app/Resources/views,
/var/www/onecup/vendor/s
ymfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form) in
"BackendBundle:Dashboard:index.html.twig" at line 7." at
/var/www/onecup/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line
234 {"exception":"[object] (Twig_Err or_Loader(code: 0):
Unable to find template \"BackendBundle:includes:nav_side.html.twig\"
(looked into: /var/www/ onecup/app/Resources/views,
/var/www/onecup/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form)
in \"BackendBundle:Dashboard:index.html.twig\" at line 7. at
/var/www/onecup/vendor/twig/twig/lib/Twig/Loader/Fil
esystem.php:234)"} []
#Flying was right: examine your code and try to find possible case inconsistences in directory / filenames. e.g. "file" and "File". Windows filesystem is case-insensitive, but Ubuntu filesystem is case-sensitive.
So, i changed the Includes to includes and that's all.
Thanks a lot!! :)

wordpress Error establishing a database connection, the page can not display

I am very new to Wordpress. I uploaded data to cpanel, but when I tried to borrows the link to display the website I get this message when I look at the error log.
Error establishing a database connection
There were the below two error messages. I hope somebody can help me.
PHP Warning: require(/home/.../public_html/wp-includes/load.php): failed to open stream: No such file or directory in /home/.../public_html/wp-settings.php on line 19
PHP Fatal error: require(): Failed opening required '/home/.../public_html/wp-includes/load.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/.../public_html/wp-settings.php on line 19
Most likely you have a bad (incomplete) file upload.
Try to upload again your Wordpress installation.

Execution failed for task ':kotlin-source:compileKotlin'

I tried to run the cordapp-example from the command prompt. But when I input the "gradlew.bat deployNodes" command, I got the error as below.
Execution failed for task ':kotlin-source:compileKotlin'.
Could not resolve all dependencies for configuration ':kotlin-source:compileClasspath'.
Could not determine artifacts for org.jolokia:jolokia-war:1.3.7
Could not get resource 'https://jcenter.bintray.com/org/jolokia/jolokia-war/1.3.7/jolokia-war-1.3.7.war'.
Could not HEAD 'https://jcenter.bintray.com/org/jolokia/jolokia-war/1.3.7/jolokia-war-1.3.7.war'.
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
I had done the "keytool -importcert" command to import the certificate of jolokia-war into java cacerts, but the error was still there.
Does anyone know how to solve the problem?
The error message indicates that the compilation failed because your machine was unable to download the resource at this location: https://jcenter.bintray.com/org/jolokia/jolokia-war/1.3.7/jolokia-war-1.3.7.war.
This URL works for me and I was able to download the resource. You are most likely behind a firewall or otherwise unable to download this resource. You need to make your machine able to access this resource to compile and deploy the node.

Permission Denied in Sublimetext3 unix

I downloaded Sublimetext3, and tried saving a file and received "Error: Permission denied". I tried changing the Sharing and Permissions access and continue to receive the same error.
How do I fix this issue?

Resources