laobubu / ssland Goto Github PK
View Code? Open in Web Editor NEWA lightweight Shadowsocks multi-user web-frontend panel.
A lightweight Shadowsocks multi-user web-frontend panel.
I have execute the setup steps, but at last I find that the server doesnt start.
So I tried directly to execute the ssland.py
The error msg as following:
root@vultr:/opt/ssland# ./ssland.py
[2017-10-06 22:04:54] DEBUG: using event model: epoll
Traceback (most recent call last):
File "./ssland.py", line 78, in <module>
init_all_service()
File "./ssland.py", line 59, in init_all_service
service.start(accounts[name], event_loop=main_loop)
File "/opt/ssland/service/Shadowsocks.py", line 101, in start
_stat.add_to_loop()
File "/opt/ssland/core/ssutil.py", line 85, in add_to_loop
self.ctx.connect()
File "/opt/ssland/core/ssutil.py", line 55, in connect
socket.socket.connect(self, self.addr_remote)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 2] No such file or directory
And the django has no bug while runserver.
System Info:
Linux vultr.guest 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux
Python Version
Python 2.7.13
and while writing this issue I also tried python3
Traceback (most recent call last):
File "ssland.py", line 78, in <module>
init_all_service()
File "ssland.py", line 55, in init_all_service
for name, service_config in config.MODULES.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
Help, please.
Thanks
Right now I can only set time usage.
Thanks!
╭─root@VM-40-141-debian /var/www/html
╰─$ git clone https://github.com/laobubu/ssland.git ssland
Cloning into 'ssland'...
remote: Counting objects: 788, done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 788 (delta 38), reused 0 (delta 0), pack-reused 695
Receiving objects: 100% (788/788), 156.13 KiB | 136.00 KiB/s, done.
Resolving deltas: 100% (456/456), done.
Checking connectivity... done.
╭─root@VM-40-141-debian /var/www/html
╰─$ cd ssland
╭─root@VM-40-141-debian /var/www/html/ssland ‹universal›
╰─$ ls
config.py django-manage.py README.md service tools
core quota requirements.txt ssland.py web
╭─root@VM-40-141-debian /var/www/html/ssland ‹universal›
╰─$ ./tools/setup.sh
Starting SSLand Setup...
[ALLOWED_HOSTS]
You must set the allowed hostname (domain or IP).
If you don't want to filter (not recommended), just press Enter key.
Hostname: linux.cool2645.com
You may edit web/settings.py file to add more
[SITE_CONFIG]
Site name [ default: SSLand ] =
HTTP Port [ default: 8000 ] = 8091
[DJANGO]
Requirement already satisfied (use --upgrade to upgrade): Django==1.10.1 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): jsonfield in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): PyQRCode==1.2 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): shadowsocks in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2.5.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 5))
Cleaning up...
Migrations for 'web':
web/migrations/0001_initial.py:
- Create model ProxyAccount
- Create model Quota
- Create model TrafficStat
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions, web
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying sessions.0001_initial... OK
Applying web.0001_initial... OK
Create one super user? [y/N] y
Username (leave blank to use 'root'):
Email address: [email protected]
Password:
Password (again):
Superuser created successfully.
Notice: the super user will not have proxy account; you may create later.
[FINISHED]
To start SSLand daemon, please execute ./ssland.py -d start
Start now? [y/N] y
ERROR:root:not running
started
╭─root@VM-40-141-debian /var/www/html/ssland ‹universal›
╰─$ netstat -an | grep 8091
╭─root@VM-40-141-debian /var/www/html/ssland ‹universal›
╰─$
每次到创建用户的时候就会Syntax error
, 以下是我的操作过程,请问这是什么原因呢?
root@myusername:~/ssland# ./install.sh
./install.sh: 4: ./install.sh: [[: not found
Requirement already satisfied (use --upgrade to upgrade): bottle>=0.12.9 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
Cleaning up...
Shadowsocks config file [ default: /etc/ss.conf ] =
./install.sh: 21: ./install.sh: [[: not found
The encrypt method is aes-256-cfb. You can change this later by editing /etc/ss.conf
User port formular [ default: 6580+id ] =
SSLand web port [ default: 8080 ] =
Creating the first user, which is also the administrator.
Username: myusername
Password:
Shadowsocks Key:
./install.sh: 44: ./install.sh: Syntax error: "(" unexpected
root@ubuntu-512mb-sgp1-01:~/ssland# ./tools/setup.sh
Starting SSLand Setup...
WIZARD_GENERATED = 'Sun Mar 12 04:01:38 UTC 2017'
WIZARD_GENERATED = 'Sun Mar 12 03:57:01 UTC 2017'
SSLand setup script was executed before.
Still continue? [y/N] y
[ALLOWED_HOSTS]
ALLOWED_HOSTS is modified. Skipping.
[SITE_CONFIG]
Site name [ default: SSLand ] = BoniVPN
HTTP Port [ default: 8000 ] =
[DJANGO]
Requirement already satisfied (use --upgrade to upgrade): Django==1.10.1 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): jsonfield in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): PyQRCode==1.2 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): shadowsocks in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2.5.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 5))
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in /usr/local/lib/python2.7/dist-packages (from python-dateutil>=2.5.0->-r requirements.txt (line 5))
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
No changes detected in app 'web'
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions, web
Running migrations:
No migrations to apply.
Create one super user? [y/N] [FINISHED]
To start SSLand daemon, please execute ./ssland.py -d start
Start now? [y/N] y
started
我打开debug,加了点日志,定位到views_generic.py这段循环跳不出来了,求修复
while True:
_percent = get_percent(_gtime)
if _percent > 100: break
if _percent > 0:
grids.append({
'x_percent': _percent,
'time': _gtime
})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.