You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git stash save "Saved local changes before pulling new changes"
git pull && chmod +x install.sh && ./install.sh
Click on "About Us" (old team page)
Internal Service Error
(venv) root@frontpage-dev:/var/www/html/frontpage# /var/www/html/frontpage/venv/bin/gunicorn -w 4 -b 127.0.0.1:5000 frontpage:app
[2024-04-23 05:51:12 +0000] [3522] [INFO] Starting gunicorn 21.2.0
[2024-04-23 05:51:12 +0000] [3522] [INFO] Listening at: http://127.0.0.1:5000/ (3522)
[2024-04-23 05:51:12 +0000] [3522] [INFO] Using worker: sync
[2024-04-23 05:51:12 +0000] [3523] [INFO] Booting worker with pid: 3523
[2024-04-23 05:51:12 +0000] [3524] [INFO] Booting worker with pid: 3524
[2024-04-23 05:51:12 +0000] [3525] [INFO] Booting worker with pid: 3525
[2024-04-23 05:51:13 +0000] [3526] [INFO] Booting worker with pid: 3526
[2024-04-23 05:51:24,454] ERROR in app: Exception on /about [GET]
Traceback (most recent call last):
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1971, in _exec_single_context
self.dialect.do_execute(
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 919, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such table: logos
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/frontpage/routes.py", line 866, in about
logos = Logo.query.all()
^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 2673, in all
return self._iter().all() # type: ignore
^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter
result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2306, in execute
return self._execute_internal(
^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2191, in _execute_internal
result: Result[Any] = compile_state_cls.orm_execute_statement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/orm/context.py", line 293, in orm_execute_statement
result = conn.execute(
^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1422, in execute
return meth(
^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/sql/elements.py", line 514, in _execute_on_connection
return connection._execute_clauseelement(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1644, in _execute_clauseelement
ret = self._execute_context(
^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1850, in _execute_context
return self._exec_single_context(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1990, in _exec_single_context
self._handle_dbapi_exception(
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2357, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1971, in _exec_single_context
self.dialect.do_execute(
File "/var/www/html/frontpage/venv/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 919, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: logos
[SQL: SELECT logos.id AS logos_id, logos.file AS logos_file, logos.description AS logos_description
FROM logos]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
The text was updated successfully, but these errors were encountered:
Frontpage Upgrade
Steps
Step 1: Update and Sync
Update repo with new code tested locally
migrations/versions
file with info from live site + schema from new migrationsRsync entire working server to dev server
rsync -aAXvP --delete -e "ssh -i ~/.ssh/frontpage-dev" --exclude={"/dev/*","/.ssh/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / root@64.23.217.243:/
Step 2: Prep Dev Server
rm /etc/nginx/sites-available/ddosecrets.news.nginx && nano /etc/nginx/sites-available/ddosecrets.news.nginx
certbot --nginx -d test.ddosecrets.news
systemctl enable frontpage.service && systemctl start frontpage.service
Step 3: Upgrade App
git stash save "Saved local changes before pulling new changes"
git pull && chmod +x install.sh && ./install.sh
The text was updated successfully, but these errors were encountered: