防火墙也关了,云服务里面所有端口都是ALL

经过N次各种代码、各种卸载重装,终于可以打开了,默认端口8888,但是奇迹发生了,装完居然没有用户名oracle装宝塔面板打不开,不是端口问题【更新见鬼了!】-LMLPHP

Requirement already satisfied: gunicorn in /usr/local/lib/python2.7/dist-packages (19.9.0)
Starting Bt-Panel….        done
Starting Bt-Tasks…         done
Traceback (most recent call last):
  File "tools.py", line 564, in <module>
    set_panel_username()
  File "tools.py", line 349, in set_panel_username
    username = public.GetRandomString(8).lower()
AttributeError: ‘module’ object has no attribute ‘GetRandomString’
Traceback (most recent call last):
  File "tools.py", line 562, in <module>
    set_panel_pwd(sys.argv[2])
  File "tools.py", line 61, in set_panel_pwd
    result = sql.table(‘users’).where(‘id=?’,(1,)).setField(‘password’,public.md5(password))
AttributeError: ‘module’ object has no attribute ‘md5’
Stopping Bt-Tasks…        done
Stopping Bt-Panel…        done
Starting Bt-Panel….        done
Starting Bt-Tasks…         done
Reading package lists… Done
Building dependency tree      
Reading state information… Done
ufw is already the newest version (0.36-0ubuntu0.18.04.1).
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Skipping adding existing rule
Skipping adding existing rule (v6)
Skipping adding existing rule
Skipping adding existing rule (v6)
Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup
Default incoming policy changed to ‘deny’
(be sure to update your rules accordingly)
Firewall reloaded
==================================================================
Congratulations! Installed successfully!
==================================================================
Bt-Panel: http://*.*.*.*:8888/030ff640
username:                                 (这里是空的)
password: 6e827091
Warning:
If you cannot access the panel,
release the following port (8888|888|80|443|20|21) in the security group
西藏网友:===============宝塔面板命令行==================
(1) 重启面板服务           (8) 改面板端口
(2) 停止面板服务           (9) 清除面板缓存
(3) 启动面板服务           (10) 清除登录限制
(4) 重载面板服务           (11) 取消入口限制
(5) 修改面板密码           (12) 取消域名绑定限制
(6) 修改面板用户名         (13) 取消IP访问限制
(7) 强制修改MySQL密码      (14) 查看面板默认信息
(22) 显示面板错误日志      (15) 清理系统垃圾
(23) 关闭BasicAuth认证     (16) 修复面板(检查错误并更新面板文件到最新版)
(24) 关闭谷歌认证          (17) 设置日志切割是否压缩
(0) 取消
===============================================
请输入命令编号:1
===============================================
正在执行(1)…
===============================================
Stopping Bt-Tasks…        done
Stopping Bt-Panel…        done
Starting Bt-Panel……….failed
——————————————————
[2019-10-22 10:25:59 +0000] [32761] [INFO] Starting gunicorn 19.9.0
[2019-10-22 10:25:59 +0000] [32761] [INFO] Listening at: http://0.0.0.0:8888 (32761)
[2019-10-22 10:25:59 +0000] [32761] [INFO] Using worker: geventwebsocket.gunicorn.workers.GeventWebSocketWorker
[2019-10-22 10:25:59 +0000] [344] [INFO] Booting worker with pid: 344
[2019-10-22 10:26:01 +0000] [395] [INFO] Starting gunicorn 19.9.0
[2019-10-22 10:26:01 +0000] [395] [INFO] Listening at: http://0.0.0.0:8888 (395)
[2019-10-22 10:26:01 +0000] [395] [INFO] Using worker: geventwebsocket.gunicorn.workers.GeventWebSocketWorker
[2019-10-22 10:26:01 +0000] [427] [INFO] Booting worker with pid: 427
[2019-10-22 10:30:32 +0000] [2187] [INFO] Starting gunicorn 19.9.0
[2019-10-22 10:30:32 +0000] [2187] [INFO] Listening at: http://0.0.0.0:8899 (2187)
[2019-10-22 10:30:32 +0000] [2187] [INFO] Using worker: geventwebsocket.gunicorn.workers.GeventWebSocketWorker
[2019-10-22 10:30:32 +0000] [2235] [INFO] Booting worker with pid: 2235
——————————————————
Error: BT-Panel service startup failed.
        done
Starting Bt-Tasks…         done

重启一下就这样了,这是启动不成功吧
安徽网友:端口可能被墙了
香港网友:宝塔面板8888也会被墙?
香港网友:你8888888888888888888888888888888888该墙还是墙
福建网友:tcping 一下 看看
吉林网友:换个端口试试
江西网友:改过了,还是不行
江苏网友:pm地址和端口我来试试
青海网友:重新放行端口就好了
天津网友:重新放行端口就好了
浙江网友:Probing 140.*.*.*:22/tcp – Port is open – time=78.197ms

Ping statistics for 140.*.*.*:22
     4 probes sent.
     4 successful, 0 failed.
Approximate trip times in milli-seconds:
     Minimum = 77.135ms, Maximum = 123.451ms, Average = 98.748ms
广东网友:就是防火墙吧,把防火墙干掉
贵州网友:关闭了,也是不行
甘肃网友:

  1. #去掉iptables开机启动
  2. chkconfig iptables off
  3. #开放所有端口
  4. sudo iptables -P INPUT ACCEPT
  5. sudo iptables -P FORWARD ACCEPT
  6. sudo iptables -P OUTPUT ACCEPT
  7. sudo iptables -F

复制代码

安徽网友:ubuntu系统???目测应该是宝塔依赖环境的问题,上次我也遇到了,后来木得办法之只能重装系统了
湖北网友:忘了说,我是ubuntu哦,你这命令识别不了
青海网友:那也不应该啊,同样是oracle的,我上次另一个账号开了一台也是nbuntu,也是装这个面板,都很正常啊!
唯一不同的是,上次是美西,这次是韩区
云南网友:

  1. apt-get -y install iptables-persistent
  2. iptables-save > /etc/iptables/rules.v4 && ip6tables-save > /etc/iptables/rules.v6
  3. iptables -nvL

复制代码

湖南网友:也试了,还是不行
天津网友:也试了,还是不行
四川网友:不会吧!这就是ubuntu的命令啊,我也是一样的系统
湖南网友:四台甲骨文机器都装的宝塔  没问题!
安徽网友:韩国ububtu16装宝塔和楼主一样,打不开
湖南网友:Traceback (most recent call last):
  File "tools.py", line 564, in <module>
    set_panel_username()
  File "tools.py", line 349, in set_panel_username
    username = public.GetRandomString(8).lower()
AttributeError: ‘module’ object has no attribute ‘GetRandomString’
Traceback (most recent call last):
  File "tools.py", line 562, in <module>
    set_panel_pwd(sys.argv[2])
  File "tools.py", line 61, in set_panel_pwd
    result = sql.table(‘users’).where(‘id=?’,(1,)).setField(‘password’,public.md5(password))
AttributeError: ‘module’ object has no attribute ‘md5’

===============宝塔面板命令行==================
(1) 重启面板服务           (8) 改面板端口
(2) 停止面板服务           (9) 清除面板缓存
(3) 启动面板服务           (10) 清除登录限制
(4) 重载面板服务           (11) 取消入口限制
(5) 修改面板密码           (12) 取消域名绑定限制
(6) 修改面板用户名         (13) 取消IP访问限制
(7) 强制修改MySQL密码      (14) 查看面板默认信息
(22) 显示面板错误日志      (15) 清理系统垃圾
(23) 关闭BasicAuth认证     (16) 修复面板(检查错误并更新面板文件到最新版)
(24) 关闭谷歌认证          (17) 设置日志切割是否压缩
(0) 取消
===============================================
请输入命令编号:6
===============================================
正在执行(6)…
===============================================
请输入新的面板用户名(>5位):zgwxb
Traceback (most recent call last):
  File "/www/server/panel/tools.py", line 586, in <module>
    bt_cli(clinum)
  File "/www/server/panel/tools.py", line 452, in bt_cli
    set_panel_username(input_user.strip())
  File "/www/server/panel/tools.py", line 343, in set_panel_username
    sql.table(‘users’).where(‘id=?’,(1,)).setField(‘username’,username)
  File "/www/server/panel/class/db.py", line 153, in setField
    return self.save(keyName,(keyValue,))
  File "/www/server/panel/class/db.py", line 240, in save
    self.write_lock()
  File "/www/server/panel/class/db.py", line 305, in write_lock
    public.writeFile(self.__LOCK,"True")
AttributeError: ‘module’ object has no attribute ‘writeFile’

01-25 02:38