matecat / MateCat

MateCat is an AI driven translation tool for language industry professionals. Matecat makes machine translation post-editing and project outsourcing easy.
http://www.matecat.com
GNU Lesser General Public License v3.0
375 stars 178 forks source link

Please wait... There are still 7 segments in queue. {Infinite Volume analysis} #1830

Closed vinayaksharmagh closed 3 years ago

vinayaksharmagh commented 3 years ago

When I start the analysis, it takes me to the volume analysis page where volume analysis keeps on looping without termination.

Screenshot (218)


In php_errors.log following logs get generated during this phase

[30-Oct-2020 15:25:31 Asia/Calcutta] PHP Notice: Undefined property: stdClass::$new_keys in /home/matecat/cattool/lib/View/API/V2/Json/CreationStatus.php on line 28 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP Stack trace: [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 1. {main}() /home/matecat/cattool/router.php:0 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 2. Klein\Klein->dispatch() /home/matecat/cattool/router.php:78 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 3. Klein\Klein->handleRouteCallback() /home/matecat/cattool/vendor/klein/klein/src/Klein/Klein.php:588 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 4. call_user_func:{/home/matecat/cattool/vendor/klein/klein/src/Klein/Klein.php:887}() /home/matecat/cattool/vendor/klein/klein/src/Klein/Klein.php:887 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 5. {closure:/home/matecat/cattool/router.php:20-24}() /home/matecat/cattool/vendor/klein/klein/src/Klein/Klein.php:887 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 6. API\V2\KleinController->respond() /home/matecat/cattool/router.php:23 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 7. API\V2\ProjectCreationStatusController->get() /home/matecat/cattool/lib/Controller/API/V2/KleinController.php:158 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 8. API\V2\Json\CreationStatus->render() /home/matecat/cattool/lib/Controller/API/V2/ProjectCreationStatusController.php:60 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP Warning: ZipArchive::open(): Empty string as source in /home/matecat/cattool/lib/Model/Analysis/AnalysisModel.php on line 68 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP Stack trace: [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 1. {main}() /home/matecat/cattool/index.php:0 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 2. analyzeController->doAction() /home/matecat/cattool/index.php:19 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 3. Analysis_AnalysisModel->loadData() /home/matecat/cattool/lib/Controller/analyzeController.php:115 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 4. Analysis_AnalysisModel->loadReferenceFiles() /home/matecat/cattool/lib/Model/Analysis/AnalysisModel.php:89 [30-Oct-2020 15:25:31 Asia/Calcutta] PHP 5. ZipArchive->open() /home/matecat/cattool/lib/Model/Analysis/AnalysisModel.php:68 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/matecat/cattool/lib/Controller/AbstractControllers/ajaxController.php:58) in /home/matecat/cattool/inc/Bootstrap.php on line 322 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP Stack trace: [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 1. {main}() /home/matecat/cattool/index.php:0 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 2. ajaxController->finalize() /home/matecat/cattool/index.php:29 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 3. controller->logPageCall() /home/matecat/cattool/lib/Controller/AbstractControllers/ajaxController.php:60 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 4. controller->readLoginInfo() /home/matecat/cattool/lib/Controller/AbstractControllers/TimeLogger.php:34 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 5. controller->sessionStart() /home/matecat/cattool/lib/Controller/AbstractControllers/controller.php:192 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 6. Bootstrap::sessionStart() /home/matecat/cattool/lib/Controller/AbstractControllers/controller.php:132 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 7. session_start() /home/matecat/cattool/inc/Bootstrap.php:322 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/matecat/cattool/lib/Controller/AbstractControllers/ajaxController.php:58) in /home/matecat/cattool/inc/Bootstrap.php on line 322 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP Stack trace: [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 1. {main}() /home/matecat/cattool/index.php:0 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 2. ajaxController->finalize() /home/matecat/cattool/index.php:29 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 3. controller->logPageCall() /home/matecat/cattool/lib/Controller/AbstractControllers/ajaxController.php:60 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 4. controller->readLoginInfo() /home/matecat/cattool/lib/Controller/AbstractControllers/TimeLogger.php:34 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 5. controller->sessionStart() /home/matecat/cattool/lib/Controller/AbstractControllers/controller.php:192 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 6. Bootstrap::sessionStart() /home/matecat/cattool/lib/Controller/AbstractControllers/controller.php:132 [30-Oct-2020 15:25:32 Asia/Calcutta] PHP 7. session_start() /home/matecat/cattool/inc/Bootstrap.php:322 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP Warning: get_class() expects parameter 1 to be object, array given in /home/matecat/cattool/lib/Model/Chunks/ChunkStruct.php on line 57 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP Stack trace: [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 1. {main}() /home/matecat/cattool/router.php:0 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 2. Klein\Klein->dispatch() /home/matecat/cattool/router.php:78 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 3. Klein\Klein->handleRouteCallback() /home/matecat/cattool/vendor/klein/klein/src/Klein/Klein.php:588 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 4. call_user_func:{/home/matecat/cattool/vendor/klein/klein/src/Klein/Klein.php:887}() /home/matecat/cattool/vendor/klein/klein/src/Klein/Klein.php:887 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 5. {closure:/home/matecat/cattool/router.php:20-24}() /home/matecat/cattool/vendor/klein/klein/src/Klein/Klein.php:887 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 6. API\V2\KleinController->respond() /home/matecat/cattool/router.php:23 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 7. API\V2\ProjectsController->get() /home/matecat/cattool/lib/Controller/API/V2/KleinController.php:158 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 8. API\V2\Json\ProjectAnonymous->renderItem() /home/matecat/cattool/lib/Controller/API/V2/ProjectsController.php:43 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 9. API\V2\Json\Project->renderItem() /home/matecat/cattool/lib/View/API/V2/Json/ProjectAnonymous.php:46 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 10. API\V2\Json\JobAnonymous->renderItem() /home/matecat/cattool/lib/View/API/V2/Json/Project.php:104 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 11. API\V2\Json\Job->renderItem() /home/matecat/cattool/lib/View/API/V2/Json/JobAnonymous.php:47 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 12. Chunks_ChunkStruct->getQualityInfo() /home/matecat/cattool/lib/View/API/V2/Json/Job.php:191 [30-Oct-2020 15:25:33 Asia/Calcutta] PHP 13. get_class() /home/matecat/cattool/lib/Model/Chunks/ChunkStruct.php:57 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP Notice: Undefined index: eq_word_count in /home/matecat/cattool/lib/Model/Analysis/AbstractStatus.php on line 201 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP Stack trace: [30-Oct-2020 15:25:34 Asia/Calcutta] PHP 1. {main}() /home/matecat/cattool/index.php:0 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP 2. getVolumeAnalysisController->doAction() /home/matecat/cattool/index.php:19 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP 3. Analysis_AbstractStatus->fetchData() /home/matecat/cattool/lib/Controller/getVolumeAnalysisController.php:46 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP Notice: Undefined index: standard_word_count in /home/matecat/cattool/lib/Model/Analysis/AbstractStatus.php on line 202 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP Stack trace: [30-Oct-2020 15:25:34 Asia/Calcutta] PHP 1. {main}() /home/matecat/cattool/index.php:0 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP 2. getVolumeAnalysisController->doAction() /home/matecat/cattool/index.php:19 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP 3. Analysis_AbstractStatus->fetchData() /home/matecat/cattool/lib/Controller/getVolumeAnalysisController.php:46 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP Notice: Undefined index: raw_word_count in /home/matecat/cattool/lib/Model/Analysis/AbstractStatus.php on line 203 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP Stack trace: [30-Oct-2020 15:25:34 Asia/Calcutta] PHP 1. {main}() /home/matecat/cattool/index.php:0 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP 2. getVolumeAnalysisController->doAction() /home/matecat/cattool/index.php:19 [30-Oct-2020 15:25:34 Asia/Calcutta] PHP 3. Analysis_AbstractStatus->fetchData() /home/matecat/cattool/lib/Controller/getVolumeAnalysisController.php:46

vinayaksharmagh commented 3 years ago

Another thing that I have observer is that infinite volume analysis is possibly getting piled up. Say if I reload to the home page and upload and analyze a new file then I get a message "Please wait... There are other projects in queue."

vinayaksharmagh commented 3 years ago

This is my config.ini


ENV = "production" ; set to "production" for production environment CHECK_FS = no

[production] CLI_HTTP_HOST = "http://localhost" ; Set the hostname for batch processes ( they do not know the global variable $_SERVER ) COOKIE_DOMAIN = "localhost" ENABLE_MULTI_DOMAIN_API = no

DB_SERVER = "localhost" DB_DATABASE = "matecat" DB_USER = "matecat" DB_PASS = "matecat01"

REDIS_SERVERS = "tcp://localhost:6379" QUEUE_BROKER_ADDRESS = "tcp://localhost:61613" QUEUE_DQF_ADDRESS = "tcp://localhost:61613" QUEUE_JMX_ADDRESS = "http://localhost:8161" QUEUE_CREDENTIALS = "admin:admin" SSE_BASE_URL = "localhost/sse" ;no trailing slash here STORAGE_DIR = "/home/matecat/cattool/storage" ;provide an absolute path

SMTP_HOST = 'localhost' SMTP_PORT = '25' SMTP_SENDER = 'no-reply@matecat.loc' SMTP_HOSTNAME = 'localhost'

; Filters Configuration FILTERS_ADDRESS = false FILTERS_MASHAPE_KEY = false

LXQ_LICENSE = false LXQ_PARTNERID = false

FILE_STORAGE_METHOD = 'fs'

Ostico commented 3 years ago

I think that your background processes crashed for some reason. Check maybe fatal_errors.log

vinayaksharmagh commented 3 years ago

Well yes, there was an entry in fatal_error log fatal_error.txt

Although, it was because of the fact that I had mistakenly placed a debug function at the first line (where namespace declaration should be present). I resolved it and there has been no entry in fatal_error since then.

Ostico commented 3 years ago

So, is this issue solved?

vinayaksharmagh commented 3 years ago

No!

Take a look at this (set_contribution.log)

{"log":{"token_hash":"5f9c0d57f2ffa","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"construct","line":131},"time":1604062552,"date":"2020-10-30T18:25:52+05:30","content":"(Executor 1580:DESKTOP-TKCCOK5:0) : spawned !!!"}} {"log":{"token_hash":"5f9c0d57f2ffa","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"__construct","line":139},"time":1604062552,"date":"2020-10-30T18:25:52+05:30","content":"** No REDIS\/AMQ instances found. Exiting. **"}} {"log":{"token_hash":"5f9c0d57f2ffa","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"construct","line":140},"time":1604062552,"date":"2020-10-30T18:25:52+05:30","content":"Could not connect to localhost:61613 (10\/10)"}} {"log":{"token_hash":"5f9c0d60e5869","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"construct","line":131},"time":1604062561,"date":"2020-10-30T18:26:01+05:30","content":"(Executor 1685:DESKTOP-TKCCOK5:0) : spawned !!!"}} {"log":{"token_hash":"5f9c0d60e5869","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"_readAMQFrame","line":327},"time":1604062644,"date":"2020-10-30T18:27:24+05:30","content":"--- (Executor 1685:DESKTOP-TKCCOK5:0) : processing frame 2"}} {"log":{"token_hash":"5f9c0d60e5869","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"main","line":244},"time":1604062644,"date":"2020-10-30T18:27:24+05:30","content":{"classLoad":"\AsyncTasks\Workers\SetContributionWorker","params":{"id_segment":"22","fromRevision":false,"segment":"Hello how are you sire?","translation":"Bonjour, comment vas-tu? ","oldSegment":"Hello how are you sire?","oldTranslation":"Bonjour, comment vas-tu? kjjb hhsdbj","context_before":"","context_after":"","api_key":"demo@matecat.com","id_job":"18","job_password":"cdc127a7ee09","uid":null,"oldTranslationStatus":"NEW","propagationRequest":false,"props":{},"id_mt":"1"},"reQueueNum":0,"reQueueMessage":""}}} {"log":{"token_hash":"5f9c0d60e5869","context":{"ip":"127.0.1.1","class":"Engines_AbstractEngine","function":"call","line":220},"time":1604062644,"date":"2020-10-30T18:27:24+05:30","content":{"timing":{"Total Time":0.357801,"Connect Time":0.162259,"Pre-Transfer Time":0.162413,"Start Transfer Time":0.162417,"Transfer Time":"195384\u03bcs"},"resource_hash":"5f9c0db444e3a2.57263886","url":"http:\/\/api.mymemory.translated.net\/update","options":{"post_parameters":{"seg":"Hello how are you sire?","tra":"Bonjour, comment vas-tu? kjjb hhsdbj","newseg":"Hello how are you sire?","newtra":"Bonjour, comment vas-tu? ","langpair":"en-GB|fr-FR","prop":"{\"project_id\":\"167\",\"project_name\":\"Hello.docx.xlf\",\"job_id\":\"18\"}","de":"demo@matecat.com"}},"response":{"responseData":"OK","responseStatus":200,"number_of_results":1,"segment_ids":[774487338]}}}} {"log":{"token_hash":"5f9c0d60e5869","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"update","line":409},"time":1604062644,"date":"2020-10-30T18:27:24+05:30","content":"Key UPDATE -- Job: 18, Segment: 22 "}} {"log":{"token_hash":"5f9c0d60e5869","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"main","line":300},"time":1604062644,"date":"2020-10-30T18:27:24+05:30","content":"--- (Executor 1685:DESKTOP-TKCCOK5:0) - QueueElement acknowledged."}} {"log":{"token_hash":"5f9c126dd0da4","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"__construct","line":131},"time":1604063854,"date":"2020-10-30T18:47:34+05:30","content":"(Executor 1572:DESKTOP-TKCCOK5:0) : spawned !!!"}} {"log":{"token_hash":"5f9c126dd0da4","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"construct","line":139},"time":1604063854,"date":"2020-10-30T18:47:34+05:30","content":"** No REDIS\/AMQ instances found. Exiting. **"}} {"log":{"token_hash":"5f9c126dd0da4","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"__construct","line":140},"time":1604063854,"date":"2020-10-30T18:47:34+05:30","content":"Could not connect to localhost:61613 (10\/10)"}} {"log":{"token_hash":"5f9c12759442b","context":{"ip":"127.0.1.1","class":"TaskRunner\Executor","function":"__construct","line":131},"time":1604063861,"date":"2020-10-30T18:47:41+05:30","content":"(Executor 1701:DESKTOP-TKCCOK5:0) : spawned !!!"}}

Ostico commented 3 years ago

"Could not connect to localhost:61613 (10/10)" Your AMQ instance is not up or it is not set correctly.

vinayaksharmagh commented 3 years ago

root@DESKTOP-TKCCOK5:/home/matecat/cattool/daemons# activemq status INFO: Loading '/opt/apache-activemq-5.11.3/bin/env' INFO: Using java '/usr/bin/java' ActiveMQ is running (pid '1402')

vinayaksharmagh commented 3 years ago

I run these commands whenever I start my OS. Is the above issue because of some incorrect order in which I start these services.

service redis-server restart a2enmod rewrite filter deflate headers expires proxy_http ssl php5.6 phpenmod mcrypt apache2ctl restart service mysql restart activemq start apache2ctl restart a2ensite 443-matecat.conf a2ensite default-vhost.conf service apache2 restart

cd /home/matecat/cattool/daemons /bin/bash /home/matecat/cattool/daemons/restartAnalysis.sh

service apache2 restart screen -d -m -S 'node' node /home/matecat/cattool/nodejs/server.js

Update: Ok, I have resolved the "Could not connect to localhost:61613 (10/10)" issue. It was happening because of some incorrect permissions. Despite that. the overall issue hasn't resolved.

vinayaksharmagh commented 3 years ago

Update: I have made a change in the config.ini Previously the file had a line "FILTERS_MASHAPE_KEY = false" I commented it out. Now instead of showing "Please wait... There are still n segments in queue" it is showing "Fast word counting" infinitely.

Screenshot (250)

vinayaksharmagh commented 3 years ago

This is my /var/log/apache2/matecat/error.log (It is showing a weird warning)


[Sun Nov 01 14:03:58.743952 2020] [ssl:warn] [pid 240] AH01906: 0.ajax.localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:03:58.744375 2020] [ssl:warn] [pid 240] AH01909: 0.ajax.localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:03:58.745122 2020] [ssl:warn] [pid 240] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:03:58.745160 2020] [ssl:warn] [pid 240] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:03:58.992706 2020] [ssl:warn] [pid 241] AH01906: 0.ajax.localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:03:58.992737 2020] [ssl:warn] [pid 241] AH01909: 0.ajax.localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:03:58.993167 2020] [ssl:warn] [pid 241] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:03:58.993180 2020] [ssl:warn] [pid 241] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:01.796546 2020] [ssl:warn] [pid 241] AH01906: 0.ajax.localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:01.796594 2020] [ssl:warn] [pid 241] AH01909: 0.ajax.localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:01.797575 2020] [ssl:warn] [pid 241] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:01.797605 2020] [ssl:warn] [pid 241] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:02.974342 2020] [ssl:warn] [pid 1319] AH01906: 0.ajax.localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:02.974429 2020] [ssl:warn] [pid 1319] AH01909: 0.ajax.localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:02.975617 2020] [ssl:warn] [pid 1319] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:02.975649 2020] [ssl:warn] [pid 1319] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:03.031036 2020] [ssl:warn] [pid 1320] AH01906: 0.ajax.localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:03.031095 2020] [ssl:warn] [pid 1320] AH01909: 0.ajax.localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:03.031747 2020] [ssl:warn] [pid 1320] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:03.031767 2020] [ssl:warn] [pid 1320] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:12.663365 2020] [ssl:warn] [pid 1549] AH01906: 0.ajax.localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:12.663449 2020] [ssl:warn] [pid 1549] AH01909: 0.ajax.localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:12.664210 2020] [ssl:warn] [pid 1549] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:12.664239 2020] [ssl:warn] [pid 1549] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:13.314825 2020] [ssl:warn] [pid 1586] AH01906: 0.ajax.localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:13.314886 2020] [ssl:warn] [pid 1586] AH01909: 0.ajax.localhost:443:0 server certificate does NOT include an ID which matches the server name [Sun Nov 01 14:04:13.315712 2020] [ssl:warn] [pid 1586] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Nov 01 14:04:13.315736 2020] [ssl:warn] [pid 1586] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name

EDIT:

Just for your reference, this is my /etc/apache2/sites-available/443-matecat.conf

<VirtualHost *:443>

ServerAdmin webmaster@localhost
ServerName localhost

DocumentRoot /home/matecat/cattool
DirectoryIndex index.php index.php3 index.html index.htm index.shtml
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

SSLEngine On
SSLProtocol all -SSLv3 -SSLv2

SSLProxyEngine On

SSLCertificateFile /etc/apache2/ssl-cert/my_matecat.crt
SSLCertificateKeyFile /etc/apache2/ssl-cert/my_matecat.key

<Directory /home/matecat/cattool/ >

        Options All
        AllowOverride All
Require all granted

        ExpiresActive On
        ExpiresByType text/html "access plus 1 minute"
        ExpiresByType text/css "access plus 1 minute"
        ExpiresByType text/javascript "access plus 1 minute"
        ExpiresByType image/gif "access plus 1 week"
        ExpiresByType image/jpeg "access plus 1 week"
        ExpiresByType image/jpg "access plus 1 week"
        ExpiresByType image/png "access plus 1 week"
        ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
        ExpiresByType image/ico "access plus 1 week"
        ExpiresByType application/x-shockwave-flash "access plus 1 week"

</Directory>

php_flag register_globals off
php_flag magic_quotes_gpc off
ErrorLog ${APACHE_LOG_DIR}/matecat/error.log
CustomLog ${APACHE_LOG_DIR}/matecat/access.log combined
ServerSignature Off

<Location /sse/ >
    ProxyPass http://localhost:7788/
    ProxyPassReverse http://localhost:7788/
</Location>

<VirtualHost *:443>

ServerAdmin webmaster@localhost
ServerName 0.ajax.localhost
ServerAlias 1..ajax.localhost
ServerAlias 2.ajax.localhost
ServerAlias 3.ajax.localhost

DocumentRoot /home/matecat/cattool
DirectoryIndex index.php index.php3 index.html index.htm index.shtml
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

SSLEngine On
SSLProtocol all -SSLv3 -SSLv2

SSLProxyEngine On

SSLCertificateFile /etc/apache2/ssl-cert/my_matecat.crt
SSLCertificateKeyFile /etc/apache2/ssl-cert/my_matecat.key

<Directory /home/matecat/cattool/>

        Options All
        AllowOverride All
        Order allow,deny
        allow from all

        ExpiresActive On
        ExpiresByType text/html "access plus 1 minute"
        ExpiresByType text/css "access plus 1 minute"
        ExpiresByType text/javascript "access plus 1 minute"
        ExpiresByType image/gif "access plus 1 week"
        ExpiresByType image/jpeg "access plus 1 week"
        ExpiresByType image/jpg "access plus 1 week"
        ExpiresByType image/png "access plus 1 week"
        ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
        ExpiresByType image/ico "access plus 1 week"
        ExpiresByType application/x-shockwave-flash "access plus 1 week"

</Directory>

php_flag register_globals off
php_flag magic_quotes_gpc off
ErrorLog ${APACHE_LOG_DIR}/matecat/error.log
CustomLog ${APACHE_LOG_DIR}/matecat/access.log combined
ServerSignature Off

<Location /sse/ >
    ProxyPass http://localhost:7788/
    ProxyPassReverse http://localhost:7788/
</Location>

vinayaksharmagh commented 3 years ago

Interestingly, similar issue is currently happening on matecat's website as well. Screenshot (262)

Ostico commented 3 years ago

Hi @vinayaksharmagh you solved this issue?

vinayaksharmagh commented 3 years ago

It was solved but by setting up the entire thing from scratch on a different VM. Earlier I was using WSL, then I installed on VMware instance.