httpd: could not open error log file /etc/httpd/logs/error_log. Unable to open logs - apache2

When i start my centOS server. Its through me error like below.
Starting httpd: (20)Not a directory: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs
Please help me to fix this. Even i checked the permission of logs.

That's because of permission of file. you should set permission for zabbix user.

Related

Snowsql error in mac OS : Observed error: [Errno 1] Operation not permitted: '/Applications/SnowSQL.app/Contents/snowsql_rt.log_bootstrap'

I am fcing problem while logging to my snoqsql and geting below issue.
when I rung the below line in comand line:
(base) user#MacBook-Air MacOS % snowsql <snoflake ID> -u <user ID>
getting the below response :
We were unable to create or write to the ../snowsql_rt.log_bootstrap. Make sure you have permission to write to the log file's parent folder or to modify the location of the log file specified in the SnowSQL log_file configuration option. See docs: https://docs.snowflake.com/en/user-guide/snowsql-config.html#log-file
Observed error: [Errno 1] Operation not permitted: '/Applications/SnowSQL.app/Contents/snowsql_rt.log_bootstrap'
We were unable to create or write to the ../snowsql_rt.log. Make sure you have permission to write to the log file's parent folder or to modify the location of the log file specified in the SnowSQL log_file configuration option. See docs: https://docs.snowflake.com/en/user-guide/snowsql-config.html#log-file
Observed error: [Errno 1] Operation not permitted: '/Applications/SnowSQL.app/Contents/snowsql_rt.log'
Password:
250001 (n/a): Could not connect to Snowflake backend after 0 attempt(s).Aborting
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!
Shoule be able to login to the Snowflake account

SP2-0310: unable to open file "apex_epg_config.sql"

Hi I have installed Apex on Oracle 19c pluggable database. I have also successfully run the apex_rest_config command. But when I try to configure pl/sql gateway with the command #apex_epg_config.sql Path_to_apexfolder It gives the following error
SP2-0310: unable to open file "apex_epg_config.sql"

sybase iq - "operation failed on file due to file permission"

I'm trying to get to a local file from sybase iq.
My code to connect to my file is like this:
USNIG CLIENT FILE 'C://TEMP/A.TXT'
If i run it on iq workspace it's working perfectly.
If i run this query via a service.cs it's not working and i get error:
ERROR [HY000] "operation failed on file due to file permission FILE: C://TEMP/A.TXT
i tried to find an answer via google but nothing...
the DSN is ok.
Any idea what to do?
Thanks!

Error occurred while opening logfile C:\Windows\system32\LogFiles\Sum\Api.log

I need to restart the MS SQL server service every morning because my web client site can not connect.
However, when I start my services it works. I don't know what is causing the problem.
I found this in my error log.
sqlservr (4052) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.log"
for read only access failed with system error 5 (0x00000005):
"Access is denied. ".
The open file operation will fail with error -1032 (0xfffffbf8).
sqlservr (3000) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.chk"
for read / write access failed with system error 5 (0x00000005): "Access is denied. ".
The open file operation will fail with error -1032 (0xfffffbf8).
Hope somebody can help me fix this.
Your serviceaccount need access to the folder:
C:\Windows\System32\LogFiles\Sum
Go to the folder and add the account with read/write permissions.
http://support.microsoft.com/kb/2811566

How can I disable apache2 error logging?

In /etc/apache2/apache2.conf I have uncommented the following line:
# ErrorLog ${APACHE_LOG_DIR}/error.log
Which resulted in the following:
serv:/var/log/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting (2)No such file or directory: apache2: could not open error log file /etc/apache2/logs/error_log.
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
failed!
How can I disable error logging of virtual hosts that contain no ErrorLog/CustomLog directive?
As you can see apache can not open log file. In this case you must change
/etc/apache2/apache2.conf
with
/etc/apache2/${APACHE_LOG_DIR}/error.log
This resolution it can be see in stating apache ubuntu forum.
Try starting apache using the following command
service apache2 start

Resources