splewis / get5-web

An unsupported, proof-of-concept webpanel for servers using the get5 CS:GO server plugin. Please don't use it.
https://get5.splewis.net
GNU General Public License v3.0
103 stars 58 forks source link

./manager.py db upgrade #181

Open andrel0 opened 4 years ago

andrel0 commented 4 years ago

Hello! ,

I have centos7 / mariadb mysql / python 2.7 and pip 19.3.1. Unfortunately, the name of the BD is not only called "get5" but when you have cpanel it generates an alias before. Example:
user_get5.

Any suggestions for this error ( I am having problems during the process ) :

./manager.py db upgrade

Traceback (most recent call last): File "./manager.py", line 3, in import get5 File "/home/tournament/public_html/play/plataforma-mm/get5/init.py", line 29, in from flask import (Flask, render_template, flash, jsonify, File "/home/tournament/public_html/play/plataforma-mm/venv/lib/python2.7/site-packages/flask/init.py", line 21, in from .app import Flask, Request, Response File "/home/tournament/public_html/play/plataforma-mm/venv/lib/python2.7/site-packages/flask/app.py", line 20, in from werkzeug.routing import Map, Rule, RequestRedirect, BuildError File "/home/tournament/public_html/play/plataforma-mm/venv/lib/python2.7/site-packages/werkzeug/routing.py", line 948 exec(code, globs, locs) SyntaxError: unqualified exec is not allowed in function '_compile_builder' it contains a nested function with free variables

enyineer commented 4 years ago

Did you set your connection string for the get5-web config according to the user_get5 database name?

andrel0 commented 4 years ago

Hi Nico, thanks for answering. It is correct, set the username / password and address of the BD.