Open Benjamin-Loison opened 2 months ago
The video you mentioned is private, hence a clean error message would be nice but there is no data to retrieve.
It seems that the following comments should be in #301.
https://discord.com/channels/933841502155706418/933841503103627316/1284625717359022162
curl https://yt.lemnoslife.com
curl -k https://localhost
curl http://localhost
stall from the official instance.
On my laptop:
curl https://yt.lemnoslife.com
curl: (28) Failed to connect to yt.lemnoslife.com port 443 after 136304 ms: Couldn't connect to server
htop
0[||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%] Tasks: 361, 398 thr, 142 kthr; 4 running
1[||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%] Load average: 252.61 252.44 244.08
2[||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%] Uptime: 04:31:16
3[||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]
Mem[||||||||||||||| 1.98G/23.4G]
Swp[ 0K/24.0G]
PID USER PRI NI VIRT RES SHR S CPU%▽MEM% TIME+ Command
104437 root 20 0 581M 158M 69120 R 7.2 0.7 0:00.11 mongosh localhost:27017/test --quiet
995 systemd-re 20 0 21632 12416 10240 S 3.3 0.1 3:11.39 /usr/lib/systemd/systemd-resolved
86857 www-data 20 0 207M 22412 15232 R 2.6 0.1 0:45.76 /usr/sbin/apache2 -k start
86906 www-data 20 0 207M 22924 15616 R 2.6 0.1 0:45.61 /usr/sbin/apache2 -k start
86910 www-data 20 0 207M 22668 15360 R 2.6 0.1 0:45.56 /usr/sbin/apache2 -k start
86961 www-data 20 0 207M 22412 15104 R 2.6 0.1 0:45.24 /usr/sbin/apache2 -k start
87109 www-data 20 0 207M 22668 15488 R 2.6 0.1 0:44.95 /usr/sbin/apache2 -k start
85662 www-data 20 0 207M 25412 16384 R 2.0 0.1 0:48.70 /usr/sbin/apache2 -k start
86160 www-data 20 0 207M 23052 15616 R 2.0 0.1 0:48.64 /usr/sbin/apache2 -k start
86199 www-data 20 0 207M 24760 16128 R 2.0 0.1 0:48.44 /usr/sbin/apache2 -k start
86201 www-data 20 0 207M 23948 15872 R 2.0 0.1 0:48.93 /usr/sbin/apache2 -k start
86204 www-data 20 0 207M 24588 16000 R 2.0 0.1 0:46.66 /usr/sbin/apache2 -k start
86208 www-data 20 0 207M 24844 16128 R 2.0 0.1 0:49.05 /usr/sbin/apache2 -k start
86212 www-data 20 0 207M 23308 15744 R 2.0 0.1 0:48.42 /usr/sbin/apache2 -k start
86591 www-data 20 0 207M 23052 15744 R 2.0 0.1 0:46.21 /usr/sbin/apache2 -k start
86596 www-data 20 0 207M 22412 15104 R 2.0 0.1 0:46.88 /usr/sbin/apache2 -k start
86597 www-data 20 0 207M 22668 15360 R 2.0 0.1 0:47.08 /usr/sbin/apache2 -k start
86598 www-data 20 0 207M 22412 15232 R 2.0 0.1 0:46.84 /usr/sbin/apache2 -k start
86603 www-data 20 0 207M 22796 15488 R 2.0 0.1 0:46.41 /usr/sbin/apache2 -k start
86605 www-data 20 0 207M 22668 15360 R 2.0 0.1 0:47.10 /usr/sbin/apache2 -k start
86607 www-data 20 0 207M 22668 15360 R 2.0 0.1 0:46.85 /usr/sbin/apache2 -k start
86612 www-data 20 0 207M 22540 15360 R 2.0 0.1 0:46.57 /usr/sbin/apache2 -k start
86614 www-data 20 0 207M 23052 15744 R 2.0 0.1 0:45.96 /usr/sbin/apache2 -k start
86617 www-data 20 0 207M 22924 15616 R 2.0 0.1 0:46.34 /usr/sbin/apache2 -k start
86623 www-data 20 0 207M 24512 16000 R 2.0 0.1 0:46.37 /usr/sbin/apache2 -k start
86663 www-data 20 0 207M 23052 15744 R 2.0 0.1 0:46.24 /usr/sbin/apache2 -k start
86670 www-data 20 0 207M 22540 15232 R 2.0 0.1 0:46.08 /usr/sbin/apache2 -k start
86757 www-data 20 0 207M 22284 15104 R 2.0 0.1 0:45.99 /usr/sbin/apache2 -k start
F1Help F2Setup F3SearchF4FilterF5Tree F6SortByF7Nice -F8Nice +F9Kill F10Quit
sudo service apache2 restart
seems to help but only temporarily.
The issue does not happen when yt.lemnoslife.com
is not redirecting to this instance.
sudo service apache2 status | cat
Using FileZilla:
diff -qr apache2-{official,private}-instance
Both instances are up-to-date.
Probably related to #165.
find /etc/apache2/ -name 'mpm_prefork'
Source: the Stack Overflow answer 46173001
does not return anything.
find /etc/apache2/ -name 'mpm_prefork*'
/etc/apache2/mods-available/mpm_prefork.load
/etc/apache2/mods-available/mpm_prefork.conf
/etc/apache2/mods-enabled/mpm_prefork.load
/etc/apache2/mods-enabled/mpm_prefork.conf
Source: the Stack Overflow answer 37057176
ls -lh /etc/apache2/mods-enabled/mpm_prefork.{load,conf}
lrwxrwxrwx 1 root root 34 Aug 27 2023 /etc/apache2/mods-enabled/mpm_prefork.conf -> ../mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root 34 Aug 27 2023 /etc/apache2/mods-enabled/mpm_prefork.load -> ../mods-available/mpm_prefork.load
/etc/apache2/mods-enabled/mpm_prefork.load
:
# Conflicts: mpm_event mpm_worker
LoadModule mpm_prefork_module /usr/lib/apache2/modules/mod_mpm_prefork.so
/etc/apache2/mods-available/mpm_prefork.conf
:
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxRequestWorkers: maximum number of server processes allowed to start
# MaxConnectionsPerChild: maximum number of requests a server process serves
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 1000
MaxConnectionsPerChild 0
Private instance is set by default to:
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxRequestWorkers: maximum number of server processes allowed to start
# MaxConnectionsPerChild: maximum number of requests a server process serves
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0
Let us try:
StartServers 10
MinSpareServers 10
MaxSpareServers 20
MaxRequestWorkers 1500
MaxConnectionsPerChild 10000
Source: the Stack Overflow answer 46173001
sudo service apache2 restart
sudo service apache2 status
...
Sep 14 23:53:03 instance-20230827-2235 apachectl[113030]: AH00180: WARNING: MaxRequestWorkers of 1500 exceeds ServerLimit value of 256 servers, decreasing MaxRequestWorkers to 256. To increase, please see the ServerLimit directive.
...
Adding:
ServerLimit 2000
as mentioned in the Stack Overflow answer removes the warning.
Maybe YouTube Data API v3 servers involve this latency.
From the official instance:
time curl -s 'https://www.googleapis.com/youtube/v3/videos?part=snippet&id=_ZPpU7774DQ&key=AIzaSyDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
...
real 0m0.077s
user 0m0.041s
sys 0m0.005s
with correct output.
So YouTube servers do not seem to blame.
The Server Fault question 383526 may help.
find /etc/apache2/ -name *mpm*
/etc/apache2/mods-available/mpm_event.load
/etc/apache2/mods-available/mpm_worker.conf
/etc/apache2/mods-available/mpm_worker.load
/etc/apache2/mods-available/mpm_prefork.load
/etc/apache2/mods-available/mpm_prefork.conf
/etc/apache2/mods-available/mpm_event.conf
/etc/apache2/mods-enabled/mpm_prefork.load
/etc/apache2/mods-enabled/mpm_prefork.conf
a2dismod mpm_prefork
ERROR: The following modules depend on mpm_prefork and need to be disabled first: php8.3
a2enmod mpm_worker
Considering conflict mpm_event for mpm_worker:
Considering conflict mpm_prefork for mpm_worker:
ERROR: Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disabled first!
a2dismod php8.3
ERROR: /etc/apache2/mods-enabled/php8.3.load is not a symbolic link, not deleting
Could not remove /etc/apache2/mods-enabled/php8.3.conf: Permission denied
sudo a2dismod php8.3
ERROR: /etc/apache2/mods-enabled/php8.3.load is not a symbolic link, not deleting
Module php8.3 disabled.
To activate the new configuration, you need to run:
systemctl restart apache2
a2enmod mpm_worker
Considering conflict mpm_event for mpm_worker:
Considering conflict mpm_prefork for mpm_worker:
ERROR: Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disabled first!
a2dismod mpm_prefork
ERROR: The following modules depend on mpm_prefork and need to be disabled first: php8.3
sudo service apache2 stop
a2dismod mpm_prefork
ERROR: The following modules depend on mpm_prefork and need to be disabled first: php8.3
sudo service apache2 start
PHP files are returned as is.
a2enmod php8.3
Considering dependency mpm_prefork for php8.3:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php8.3:
ERROR: Module php8.3 not properly enabled: /etc/apache2/mods-enabled/php8.3.load is a real file, not touching it
a2enmod mpm_prefork
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
apachectl -V | grep -i mpm
Server MPM: prefork
Source: the Ask Ubuntu answer 525035
No DuckDuckGo or Google result for "ERROR: The following modules depend on mpm_prefork and need to be disabled first: php"
.
The Stack Overflow answer 67538339:
sudo a2dismod php8.3 mpm_prefork
ERROR: /etc/apache2/mods-enabled/php8.3.load is not a symbolic link, not deleting
Module php8.3 disabled.
ERROR: The following modules depend on mpm_prefork and need to be disabled first: php8.3
does not help.
DuckDuckGo and Google results for install apache2 mpm worker are not clear too.
On Debian 12 temporary official instance:
sudo apachectl -V | grep -i mpm
Server MPM: prefork
do-release-upgrade
...
Setting up fdisk (2.39.3-9ubuntu6.1) ...
Setting up iptables-persistent (1.0.20) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 79.)
debconf: falling back to frontend: Readline
Configuring iptables-persistent
-------------------------------
Current iptables rules can be saved to the configuration file /etc/iptables/rules.v4. These rules will then be loaded automatically during
system startup.
Rules are only saved automatically during package installation. See the manual page of iptables-save(8) for instructions on keeping the
rules file up-to-date.
Save current IPv4 rules? [yes/no] y
Current iptables rules can be saved to the configuration file /etc/iptables/rules.v6. These rules will then be loaded automatically during
system startup.
Rules are only saved automatically during package installation. See the manual page of ip6tables-save(8) for instructions on keeping the
rules file up-to-date.
Save current IPv6 rules? [yes/no] y
Removing obsolete conffile /etc/systemd/system/netfilter-persistent.service.d/iptables.conf ...
Setting up libjson-glib-1.0-0:arm64 (1.8.0-2build2) ...
...
sudo apt purge -y apache2
sudo apt autoremove -y
sudo apt install -y apache2
The Ask Ubuntu answer 590912 may help.
curl http://localhost
curl: (7) Failed to connect to localhost port 80 after 0 ms: Couldn't connect to server
ls /etc/apache2/sites-{available,enabled}/
/etc/apache2/sites-available/:
000-default-le-ssl.conf 000-default.conf default-ssl.conf travian-le-ssl.conf travian.conf
/etc/apache2/sites-enabled/:
000-default.conf
sudo a2ensite 000-default-le-ssl
Enabling site 000-default-le-ssl.
To activate the new configuration, you need to run:
systemctl reload apache2
sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
service apache2 status | cat
Searching DuckDuckGo and Google for "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP."
.
The Stack Overflow answer 62041173.
ls /etc/apache2/mods-enabled/*mpm*
/etc/apache2/mods-enabled/mpm_event.conf /etc/apache2/mods-enabled/mpm_event.load
sudo a2dismod mpm_event
Module mpm_event disabled.
To activate the new configuration, you need to run:
systemctl restart apache2
ls /etc/apache2/mods-enabled/*mpm*
ls: cannot access '/etc/apache2/mods-enabled/*mpm*': No such file or directory
sudo a2enmod mpm_worker
Considering conflict mpm_event for mpm_worker:
Considering conflict mpm_prefork for mpm_worker:
Enabling module mpm_worker.
To activate the new configuration, you need to run:
systemctl restart apache2
ls /etc/apache2/mods-enabled/*mpm*
/etc/apache2/mods-enabled/mpm_worker.conf /etc/apache2/mods-enabled/mpm_worker.load
sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
service apache2 status | cat
× apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-09-15 12:04:42 UTC; 17s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 371550 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 21ms
Sep 15 12:04:42 instance-20230827-2235 systemd[1]: Starting apache2.service - The Apache HTTP Server...
Sep 15 12:04:42 instance-20230827-2235 apachectl[371552]: [Sun Sep 15 12:04:42.413761 2024] [php:crit] [pid 371552:tid 263665626697760] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
Sep 15 12:04:42 instance-20230827-2235 apachectl[371552]: AH00013: Pre-configuration failed
Sep 15 12:04:42 instance-20230827-2235 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Sep 15 12:04:42 instance-20230827-2235 systemd[1]: apache2.service: Failed with result 'exit-code'.
Sep 15 12:04:42 instance-20230827-2235 systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
sudo apt install -y php-fpm
sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
service apache2 status | cat
× apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-09-15 12:11:36 UTC; 9s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 375148 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 25ms
Sep 15 12:11:36 instance-20230827-2235 systemd[1]: Starting apache2.service - The Apache HTTP Server...
Sep 15 12:11:36 instance-20230827-2235 apachectl[375150]: [Sun Sep 15 12:11:36.936088 2024] [php:crit] [pid 375150:tid 252513107337248] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
Sep 15 12:11:36 instance-20230827-2235 apachectl[375150]: AH00013: Pre-configuration failed
Sep 15 12:11:36 instance-20230827-2235 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Sep 15 12:11:36 instance-20230827-2235 systemd[1]: apache2.service: Failed with result 'exit-code'.
Sep 15 12:11:36 instance-20230827-2235 systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
So it does not help.
Maybe could give a try to NGINX, but I do not remember if it is supposed to work well with the no-key service, as have to pay attention to ytPrivate/keys.txt
visibility due to .htaccess
.
Well it seems to support no-key service, see wiki/Home/1c7139f68af217d41d0a201a97eaecf87c139a8b.
I am just afraid for other websites that I have on this VPS.
cd /etc/apache2; . envvar; apache2 -D DUMP_MODULES -t
-bash: envvar: No such file or directory
[Sun Sep 15 12:17:14.645395 2024] [core:warn] [pid 377061] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
The Ask Ubuntu comment 1366318 does not help.
Following comment does not seem to help:
sudo apt purge php8filter
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package php8filter
a2enmod -l
Unknown option: l
Maybe reading keys.txt
due to the mutex is the bottleneck.
sudo a2dismod mpm_worker
Module mpm_worker disabled.
To activate the new configuration, you need to run:
systemctl restart apache2
sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
service apache2 status | cat
× apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-09-15 12:20:53 UTC; 6s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 378368 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 16ms
Sep 15 12:20:53 instance-20230827-2235 systemd[1]: Starting apache2.service - The Apache HTTP Server...
Sep 15 12:20:53 instance-20230827-2235 apachectl[378370]: AH00534: apache2: Configuration error: No MPM loaded.
Sep 15 12:20:53 instance-20230827-2235 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Sep 15 12:20:53 instance-20230827-2235 systemd[1]: apache2.service: Failed with result 'exit-code'.
Sep 15 12:20:53 instance-20230827-2235 systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
sudo a2enmod mpm_prefork
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Enabling module mpm_prefork.
To activate the new configuration, you need to run:
systemctl restart apache2
sudo service apache2 restart
does not return anything.
As PHP is not interpreted:
a2enmod php
ERROR: Module php does not exist!
a2enmod php8.3
Considering dependency mpm_prefork for php8.3:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php8.3:
ERROR: Module php8.3 not properly enabled: /etc/apache2/mods-enabled/php8.3.load is a real file, not touching it
No matter sudo
and sudo service apache2 restart
does not help.
On a private instance:
sudo a2dismod php8.3
Module php8.3 disabled.
To activate the new configuration, you need to run:
systemctl restart apache2
diff -qr /etc/apache2{,_15_09_24}/
Only in apache2_15_09_24/mods-enabled: php8.3.conf
Only in apache2_15_09_24/mods-enabled: php8.3.load
PHP is still interpreted.
sudo service apache2 restart
PHP is no more interpreted.
diff -qr /etc/apache2{,_15_09_24}/
Only in /etc/apache2_15_09_24/mods-enabled: php8.3.conf
Only in /etc/apache2_15_09_24/mods-enabled: php8.3.load
sudo a2enmod php8.3
Considering dependency mpm_prefork for php8.3:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php8.3:
Enabling module php8.3.
To activate the new configuration, you need to run:
systemctl restart apache2
diff -qr /etc/apache2{,_15_09_24}/
does not return anything.
sudo service apache2 restart
brings back PHP interpretation.
/etc/apache2/mods-enabled/php8.3.conf
:
# Using (?:pattern) instead of (pattern) is a small optimization that
# avoid capturing the matching pattern (as $1) which isn't used here
<FilesMatch ".+\.ph(?:ar|p|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch ".+\.phps$">
SetHandler application/x-httpd-php-source
# Deny access to raw php sources by default
# To re-enable it's recommended to enable access to the files
# only in specific virtual host or directory
Require all denied
</FilesMatch>
# Deny access to files without filename (e.g. '.php')
<FilesMatch "^\.ph(?:ar|p|ps|tml)$">
Require all denied
</FilesMatch>
# Running PHP scripts in user directories is disabled by default
#
# To re-enable PHP in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_flag engine Off
</Directory>
</IfModule>
On the official instance:
ls /etc/apache2/mods-enabled/php8.3.{conf,load}
ls: cannot access '/etc/apache2/mods-enabled/php8.3.conf': No such file or directory
/etc/apache2/mods-enabled/php8.3.load
Restoring /etc/apache2/mods-enabled/php8.3.conf
from the private instance content and sudo service apache2 restart
made PHP work again.
Also proceeded again to https://github.com/Benjamin-Loison/YouTube-operational-API/blob/8d4747ea7b4414d53177f6f4b5876264b3d63d0f/README.md?plain=1#L17.
crontab -l
:
0 0 1 */3 * certbot --apache --key-type ecdsa --elliptic-curve secp384r1 -d yt.lemnoslife.com,yt5.lemnoslife.com
sudo service apache2 status
● apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: active (running) since Sun 2024-09-15 12:44:46 UTC; 3min 48s ago
...
/var/log/apache2/error.log
:
[Sun Sep 15 12:45:18.696987 2024] [php:warn] [pid 387871] [client XXX.XXX.XXX.XXX:45174] PHP Warning: file_get_contents(tests/part=activity&id=XXXXXXXXXXX.json): Failed to open stream: No such file or directory in /var/www/html/videos.php on line 30
[Sun Sep 15 12:45:18.909401 2024] [mpm_prefork:error] [pid 387576] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
wc -l /var/www/yt/ytPrivate/keys.txt
2460 /var/www/yt/ytPrivate/keys.txt
head /var/www/yt/ytPrivate/keys.txt
AIzaSyDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
AIzaSyDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...
curl -s 'https://www.googleapis.com/youtube/v3/videos?part=snippet&id=_ZPpU7774DQ&key=AIzaSyDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
{
"error": {
"code": 403,
"message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e.",
"errors": [
{
"message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e.",
"domain": "youtube.quota",
"reason": "quotaExceeded"
}
]
}
}
so let us order keys before restarting apache2. Would be nice to actually be the only one to run noKey/index.php
and see progress.
If I remember correctly I already worked towards this goal.
Maybe the lock on the keys.txt
exists but no thread releases it as it died.
After using https://github.com/Benjamin-Loison/YouTube-operational-API/issues/18#issuecomment-1286216222 on:
~/Desktop/bens_folder/dev/yt/youtube_data_api_v3_* | sort | uniq
on my Linux Mint 22 Cinnamon Framework 13,
sudo service apache2 start
makes the no-key service works fine.
Should try on Debian 12 it may help.
Unclear how to proceed as it already use the whole disk.
Maybe removing unit tests or similar possibly requiring a disk access would help. However, this is only about web-scraping endpoints.
@MauroCSHPYP you have commented an inappropriate issue, I opened this one with your previous message that I removed:
As a follow-up of this Stack Overflow question, it seems like error 500 is also returned in this endpoint - commentThreads:
Example:
https://yt.lemnoslife.com/commentThreads?part=snippet,replies&id=UgwJSPbq_dQWcHA2cmB4AaABAg.9eJBArFtonn9eN4Aj6bGRG&videoId=8aoxPTJyW0Q
But, with other commentThreads, the endpoints returns 200 - OK:
Working:
https://yt.lemnoslife.com/commentThreads?part=snippet,replies&id=UgzEfRi4gKKHQiHPvex4AaABAg&videoId=ml7GWjIhYsw
Looking at the "Network" tab on the DevTools of the browser, the error 500 is due to
internal server error
- this could be an unhandled error (exception) or a timeout?