EFForg / OpenWireless

The official home of the EFF OpenWireless Project
Other
732 stars 80 forks source link

telnet not working inf failsafe mode & bugs login www #275

Closed build000 closed 9 years ago

build000 commented 9 years ago

Server Error: OSError: [Errno 2] No such file or directory, [' File "/www/cgi-bin/routerapi/setup_state", line 40, in \n get_setup_state()\n', ' File "/www/cgi-bin/routerapi/setup_state", line 31, in get_setup_state\n state = uci.get(\'openwireless.setup_state\')\n', ' File "/www/cgi-bin/routerapi/uci.py", line 12, in get\n return run([\'get\', name])\n', ' File "/www/cgi-bin/routerapi/uci.py", line 32, in run\n return subprocess.check_output(args_list).strip()\n', ' File "/usr/lib/python2.7/subprocess.py", line 566, in check_output\n process = Popen(stdout=PIPE, _popenargs, *_kwargs)\n', ' File "/usr/lib/python2.7/subprocess.py", line 710, in init\n errread, errwrite)\n', ' File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child\n raise child_exception\n']

This message is redirect to login.html and to run router is failsafe mode connect to router from telnet not working. In general, does not accept the password, which you try to log on directly by the login.html results in the message - if at all there was this password:

Server Error: IOError: [Errno 2] No such file or directory: '/etc/auth/password', [' File "/www/cgi-bin/routerapi/login", line 32, in \n jsonrpc_login()\n', ' File "/www/cgi-bin/routerapi/login", line 23, in jsonrpc_login\n tokens = a.authenticate(password, remote_address)\n', ' File "/www/cgi-bin/routerapi/auth.py", line 245, in authenticate\n if self.is_password(password):\n', ' File "/www/cgi-bin/routerapi/auth.py", line 158, in is_password\n with open(self.password_filename, \'r\') as f:\n']

Rangak commented 9 years ago

I am aware of this error. This happened due to last commit where cerowrt was upgraded to 3.10.50-1. I am looking into it. For now use the repo with prior commit https://github.com/EFForg/OpenWireless/commit/9830c14ef7c46b3c4bfdc493b58d58b5b0624c0c.

Failsafe is no longer available due to a security problem it was creating. To reflash the router you need to use the tftp method with the factory.img (not sysupgrade.bin) described on the OpenWRT website. I will update the README to reflect that.

Rangak commented 9 years ago

The source of this error was lack of sudo in the build due to sudo package being moved from oldpackages feed to the packages feed on github. The github packages feed was referenced to a specific commit, whereas the oldpackages feed was using latest commit. Referring the old packages feed to a specific commit fixed this problem.