malkemit / namizun

Asymmetric upload and download
https://t.me/ExplainLikeIam5
626 stars 103 forks source link

مشکل نصب #62

Open nimaafallah opened 1 year ago

nimaafallah commented 1 year ago

Downloading pytz-2022.6-py2.py3-none-any.whl (498 kB) |██████████████▌ | 225 kB 8.3 kB/s eta 0:00:33ERROR: Exception: Traceback (most recent call last): File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 425, in _error_catcher yield File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 507, in read data = self._fp.read(amt) if not fp_closed else b"" File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 62, in read data = self.__fp.read(amt) File "/usr/lib/python3.8/http/client.py", line 459, in read n = self.readinto(b) File "/usr/lib/python3.8/http/client.py", line 503, in readinto n = self.fp.readinto(b) File "/usr/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 186, in _main status = self.run(options, args) File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 357, in run resolver.resolve(requirement_set) File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 177, in resolve discovered_reqs.extend(self._resolve_one(requirement_set, req)) File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for abstract_dist = self.preparer.prepare_linked_requirement(req) File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement local_path = unpack_url( File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 282, in unpack_url return unpack_http_url( File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 158, in unpack_http_url from_path, content_type = _download_http_url( File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 303, in _download_http_url for chunk in download.chunks: File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/utils/ui.py", line 160, in iter for x in it: File "/var/www/namizun/venv/lib/python3.8/site-packages/pip/_internal/network/utils.py", line 15, in response_chunks for chunk in response.raw.stream( File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 564, in stream data = self.read(amt=amt, decode_content=decode_content) File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 529, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "/usr/lib/python3.8/contextlib.py", line 131, in exit self.gen.throw(type, value, traceback) File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 430, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. Dependencies doesn't installed correctly

nimaafallah commented 1 year ago

سلام ، سرور رو ریلودos کردم، آپدیت کردم، بازم نشد

nimaafallah commented 1 year ago

دوباره تست کردم نصب شد، ولی آپلود رو انجام نمیده، اعداد و نسبت آپلود به دانلود سرور هم تغییر دادم، بازم شروع به آپلود نمیکنه

AkramiPro commented 1 year ago
sudo sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
sudo setenforce 0
sudo systemctl stop namizun.service
sudo systemctl disable namizun.service
sudo rm -rf /usr/local/bin/namizun
sudo rm -rf /var/www/namizun
sudo rm -rf /etc/systemd/system/namizun.service
sudo yum install epel-release -y
sudo yum install redis git python3 python3-pip python3-devel -y
sudo systemctl restart redis.service
sudo systemctl enable redis.service
mkdir -p /var/www/namizun && cd /var/www/namizun
git init
git remote add origin https://github.com/malkemit/namizun.git
git pull origin master
python3 -m venv /var/www/namizun/venv
sed -i 's/prettytable~=3\.5\.0/prettytable~=2.5.0/' /var/www/namizun/namizun_menu/setup.py
cd /var/www/namizun
source /var/www/namizun/venv/bin/activate
pip install --upgrade pip
pip install wheel
pip install namizun_core/ namizun_menu/
deactivate
ln -s /var/www/namizun/else/namizun.service /etc/systemd/system/
sudo sed -i '/^Restart\|^Requires\|^After/d' /etc/systemd/system/namizun.service
sudo sed -i '/^\[Unit\]$/a Requires=redis.service\nAfter=redis.service' /etc/systemd/system/namizun.service
sudo sed -i '/^\[Service\]$/a Restart=always' /etc/systemd/system/namizun.service
sudo chmod +x /etc/systemd/system/namizun.service
sudo systemctl daemon-reload
sudo systemctl enable namizun.service
sudo systemctl restart namizun.service
ln -s /var/www/namizun/else/namizun /usr/local/bin/
sudo chmod +x /usr/local/bin/namizun
sudo systemctl status namizun.service