nodesign / weio

weio
http://we-io.net
128 stars 35 forks source link

first connection to IDE after flash weio_recovery returns error message #101

Closed manuio closed 8 years ago

manuio commented 9 years ago

screen shot 2015-01-26 at 17 49 22

After a soft reset connection to IDE works normally

drasko commented 9 years ago

Yes, this is really a bug. I have no idea for now where it comes from.

Easiest solution is to add a reboot on first re-flash. Might be that jffs formating of mtd parts confusing server... Maybe we have to force just restart of WeIO app on first re-flash...

nmarcetic commented 9 years ago

I also propose reboot, ssh is also down.

drasko commented 9 years ago

I would avoid reboot for the first version. We will investigate for the next major release (platform + app update). For minor releases it is only app update, so this bug will not be visible.

ks156 commented 9 years ago

I built a new binary image yesterday, and I've noticed that all is working fine at first boot. No Internal Server Error, ssh OK after setting the user account and password, and so on. I'll test again with the official release to see if the error is still here.

Could it be due to the binary size ? Mine is a bit bigger than the official release.

I can share my binary file if someone want to try.

manuio commented 9 years ago

I've tested yesterday and I had the same error.

drasko commented 9 years ago

This might be due to the way scripts are init in rcS. Last one is weio_run (START=99, https://github.com/nodesign/weio/blob/master/openWrt/files/etc/init.d/weio_run#L4), but I am not so sure that network is ready at this point.

Also, WeIO is actualy always started by this script: https://github.com/nodesign/weio/blob/master/scripts/run_weio.sh. I.e. initd service starts this script, and this script has while(1) loop to restart Tornado in case it breaks (otherwise user will never get their hand on IDE once it breaks).

Maybe there is something worng in this script...

On Thu, Mar 5, 2015 at 8:55 AM, Manuel Imperiale notifications@github.com wrote:

I've tested yesterday and I had the same error.

— Reply to this email directly or view it on GitHub https://github.com/nodesign/weio/issues/101#issuecomment-77321369.

ks156 commented 9 years ago

This problem seems related to jffs2, and don't occurs with all binaries.

ks156 commented 8 years ago

Everything looks fine with Chaos Calmer. First boot is OK

drasko commented 8 years ago

:clap:

ks156 commented 8 years ago

Fixed by v1.2