My apologies if this question seems noob-ish. It will be a great help if anyone can solve my problem.
I have hosted a site on mochahost and while using an ftp client, .htaccess file accidentally got deleted. Now when I try to use the Contact Form, it gives the following error, this was working when the .htaccess file was there:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster#hostedsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This is the Error Log I found using cPanel:
[Fri Feb 23 03:03:11 2018] [error] [client 45.115.84.90] File does not exist: /home/user/public_html/404.shtml, referer: http://hostedsite.com/index.php
[Fri Feb 23 03:03:11 2018] [error] [client 45.115.84.90] File does not exist: /home/user/public_html/favicon.ico, referer: http://hostedsite.com/index.php
[Fri Feb 23 03:03:10 2018] [error] [client 45.115.84.90] File does not exist: /home/user/public_html/500.shtml, referer: http://hostedsite.com/
Update:
Mochahost support asked me to use Pear Mail client, and I've also found this Error in the log of public_html directory:
[23-Feb-2018 05:01:22 America/Chicago] PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/user/php/Net/SMTP.php on line 465
You have to contact Mochahost support team , letting them know this issue and ask them if they can recover the .htaccess file from the backup.
Turned out that I was severely misguided by the mochahost support when the told me that I MUST use pear mail, otherwise mail won't go through. Then they refused to help me that this is custom code so they can't do anything and that too was the same code they referred to, here is the link: Send Email from a PHP Script Using SMTP Authentication(PEAR)
I asked a seasoned developer and he told me that the problem was in fact in the pear, not the htaccess file. Also, the simple php mail() is enough for this specific scenario and it's working now.
Support means support, mochahost support should investigate the issue first without just ditching the customer almost immediately.
Related
Attempting to use directives for an Apache module that is not enabled will result in apachectl configtest messages like the following:Example Error Output
(13)Permission denied: AH00957: HTTP: attempt to connect to 127.0.0.1:9090 (127.0.0.1) failed
The Apache error log may have more information.
I tried verifying logs and searched the error in online but unable to find anything. Can someone please help with the same.
I've suddenly started encountering the following errors when attempting to use gmail authentication (Yesod.Auth.GoogleEmail2) in my Yesod Application:
FailedConnectionException2 "www.googleapis.com" 443 True sendBuf: resource vanished (Broken pipe)
and
TlsExceptionHostPort (HandshakeFailed (Error_Packet_unexpected "Alert [(AlertLevel_Fatal,DecodeError)]" " expected: change cipher")) "www.googleapis.com" 443
The second error is more common. It's still possible to log in---reloading after the error gives
StatusCodeException (Status {statusCode = 400, statusMessage = "Bad Request"}) [("Content-Type","application/json; charset=utf-8"),("Cache-Control","no-cache, no-store, max-age=0, must-revalidate"),("Pragma","no-cache"),("Expires","Mon, 01 Jan 1990 00:00:00 GMT"),("Date","Wed, 24 Aug 2016 01:13:02 GMT"),("Content-Encoding","gzip"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","SAMEORIGIN"),("X-XSS-Protection","1; mode=block"),("Server","GSE"),("Alternate-Protocol","443:quic"),("Alt-Svc","quic=\":443\"; ma=2592000; v=\"35,34,33,32,31,30\""),("Transfer-Encoding","chunked"),("X-Response-Body-Start","{\n \"error\" : \"invalid_grant\",\n \"error_description\" : \"Code was already redeemed.\"\n}"),("X-Request-URL","POST https://accounts.google.com:443/o/oauth2/token")] (CJ {expose = []})
and heading back through the auth route after getting that message logs you in.
I'm building on the Yesod scaffolded site, and as far as I can tell, nothing has changed in Foundation.hs or Application.hs since before this problem started showing up. The application is being deployed with keter, and compiled in stack lts-6.12
twofold question: what's the cause, and what's the fix?
I had bump up to lts-6.28 to get it work.
I'm having issues installing Magento 2 via command line. When setup is running it gets to:
Module 'Magento_Indexer':
Running recurring..
And it throws an error:
[Magento\Framework\Exception\LocalizedException]
Key must not exceed 56 bytes.
I have searched around and couldn't find any clues as to what it can be. I thought the --key might be too long for Magento setup but I have tried the setup without --key, as it is optional but the error still occurs.
2016/07/08 14:42:49 [error] 30074#30074: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'Magento\Framework\Exception\LocalizedException' with message 'Key must not exceed 56 bytes.' in /magento/lib/internal/Magento/Framework/Encryption/Crypt.php:58
Stack trace:
0 /magento/lib/internal/Magento/Framework/Encryption/Encryptor.php(401): Magento\Framework\Encryption\Crypt->__construct('oon5eeRee7yiemo...', 'blowfish', 'ecb', false)
1 /magento/lib/internal/Magento/Framework/Encryption/Encryptor.php(313): Magento\Framework\Encryption\Encryptor->getCrypt('oon5eeRee7yiemo...', 0, false)
2 /magento/app/code/Magento/Config/Model/Config/Backend/Encrypted.php(107): Magento\Framework\Encryption\Encryptor->decrypt('PayPal')
3 /magento/lib/internal/Magento/Framework/App/Config/MetadataProcessor.php(86): Magento\Config\Model\Config\Backend\Encrypted->processValue('PayPal')
4 /magento/lib/internal/Magento/Framework/App/Config/Data.php(32): Magento\Framework\App\Config\MetadataPr" while reading response header from upstream, client: 127.0.0.1, server: www.magentotest.com, request: "GET /setup/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.magentotest.com"
If anyone could help that would be great, thank you!
app/etc/env.php is populated with the details of your installation. Look at the contents crypt, and make sure that key doesn't have multiple lines appended to it, as was the case in my new installation, after running the setup:install multiple times.
Changing this key for a current install would obviously be a bad idea. If this fixes you out, please let me know so I can log a ticket.
I have reset my Raspberry Pi (there was too much trash running). I thought I can simply use my Backup in order to make SVN running again. And here comes the problem: My Backups (Daily, fully automatic) just copied all folders and files to a FTP-Webserver. Now I just downloaded it onto my Windows-PC and copied it to the Raspberry Pi via WinSCP (first i created the folder with sudo svnadmin create) and i have deleted all existing files and folder and just replaced them with the stuff from the FTP server - Should be the same ? After that I have set the permissions and now it should work. But it doesnt - here is the problem (when trying to open the svn with google chrome) - there is this message:
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="160033">Could not open the requested SVN filesystem</m:human-readable>
</D:error>
The apache-error log also logs the problem:
[Sat Dec 05 21:37:28.826821 2015] [:error] [pid 559:tid 3003118640] (20014)Internal error: [client 192.168.188.20:55525] Unknown FS type 'fsfs\r'
[Sat Dec 05 21:37:28.831649 2015] [dav:error] [pid 559:tid 3003118640] [client 192.168.188.20:55525] Could not fetch resource information. [500, #0]
[Sat Dec 05 21:37:28.831808 2015] [dav:error] [pid 559:tid 3003118640] [client 192.168.188.20:55525] Could not open the requested SVN filesystem [500, #160033]
[Sat Dec 05 21:37:28.831914 2015] [dav:error] [pid 559:tid 3003118640] [client 192.168.188.20:55525] Could not open the requested SVN filesystem [500, #160033]
Does somebody of you have an idea what I can do to make my repositories working again ?
Many thanks in advance,
Dominik
Update(1):
I have fixed some files which seam to cause the problems. Now when I try to dump my repository there is the following error:
sudo svnadmin dump XYZ > b
svnadmin: E200002: Serialized hash malformed
' into a number04: Could not convert '8
Update(2)
Now i fixed some files (seems to be problem with encoding or something like that). I got a lot of errors like the following:
svnadmin: E160004: Corrupt representation '10 830800 775 3124 (null) c38413b634a5c0f296b8806f46ba0d3b8f906125 (null)'
svnadmin: E160004: Malformed representation header at XYZ/db/revs/0/10:830817
I fixed them: Open the file deleted the space where null is (looks like a normal space ...) and made a new space (simply used windows editor). That fixes this problem but it only worked for the first 9 files now I get an other error:
svnadmin: E200002: Can't read length line in file 'XYZ/db/revs/0/10'
I already tried the same thing - delete the space and the last (empty line) after the length but that does not work for me. Has andybody of you an idea ?
In the future I will use dump to make a dump and save the dump to my ftp-server. But even with these modifications dump does not work - when trying to dump r 0-9 or r 1 there is the following error:
svnadmin: E200002: Serialized hash malformed
' into a number04: Could not convert '10
Thanks in advance,
Dominik
It's a long time that I've worked with svn so it's just a guess. I also would prefer to write this in a comment, but it's too long ;-)
As far as I know they change the fs-type with every new version. So if you installed a newer version the dpkg manager tries to convert the registered repositories. If you overwrite a generated repository with an older one this conversion does not take place. dpkg-reconfigure <svn package name> could possibly help. But I'm not sure.
Here is a link http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_fs_fs/structure pointing to the description of the fs-structure of svn. Perhaps comparing the structures and versions gives you an idea what went wrong.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster#gitlab.dev.sample.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.0-fips DAV/2 Phusion_Passenger/4.0.42 mod_bwlimited/1.4 mod_fcgid/2.3.9 Server at gitlab.dev.sample.com Port 80