Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi (ftp, http) and ssh connections refused #256

Open
colibris79 opened this issue Dec 8, 2024 · 12 comments
Open

Wifi (ftp, http) and ssh connections refused #256

colibris79 opened this issue Dec 8, 2024 · 12 comments
Assignees
Labels
investigating Looking into the reason for the issue and or a solution internally

Comments

@colibris79
Copy link

Hi!
Just got an A30 and after updating to last firmware I installed SpruceOs and I love what it does with the device (I like it even more than my beloved Miyoo mini).
There is only one issue that I've been trying to figure out but after a few hours I don't know what's going on.
I have enabled "Wifi file transfer" and SSH in advanced options. The first time I connected I had no issues, but after that I always get a "Connection refused" error and just cannot connect anymore. I've tried connecting through ftp and html, also with my browser. For SSH I've tried both terminal and the file explorer and later deleted the ssh root user and tried again (refused connection). Tried giving an static IP to the A30 but same end result.
I use Mint 21.3 (Ubuntu 22.04) and I have many devices (including several retro handhelds) connecting without any issues to my PC through ftp and ssh and all of them are working fine.
And now I cannot access to the root of the sd card since SSH is not working.
Is there anything I can do to solve this issue? (being able to connect through wifi is really handy)
Thanks for all the hard work!

@veckia9x
Copy link
Contributor

veckia9x commented Dec 8, 2024

Sometimes the device IP changes, can you check the IP and try again? Thanks!

@colibris79
Copy link
Author

colibris79 commented Dec 8, 2024

Yes. I always check the IP before trying the connection. Still same result.
And now for some reason I cannot access Advanced settings anymore. When I try to open it just closes. Will try a fresh install with a different SD card later today
Guess something got corrupted at some point?

@Sundownersport
Copy link
Member

This sounds like corruption yes. Reformat, reinstall and try again

@veckia9x
Copy link
Contributor

veckia9x commented Dec 9, 2024

Sorry for the delayed response, Sun is right, that sounds like a corrupt sd card.

Do you mind sharing the brand/model and size of the sd card? Thanks!

@colibris79
Copy link
Author

Sorry for the delayed response, Sun is right, that sounds like a corrupt sd card.

Do you mind sharing the brand/model and size of the sd card? Thanks!

No worries. Thanks for the fast response!
Sandisk 32G. But it wasn't new (though it's the first time a SD card fails like that).

@colibris79
Copy link
Author

colibris79 commented Dec 9, 2024

I tried with a different card. And it worked fine for a while, I copied a few roms, rebooted and it still worked. But after copying the rest of my roms I'm facing the same problem.
I've tried setting a fixed IP in my router but didn't work either. Connection refused.
Everything else seems to be working fine. I've tried doing a factory reset to Miyoos firmware. Anything else I could try?
Edit: I've done a couple more reboots and now it is working again... so the problem is not even consistent

@colibris79
Copy link
Author

colibris79 commented Dec 9, 2024

Ok. I think I am getting somewhere.
-About the Wifi share: if when I turn on the a30 the wifi is off and I manually turn on the wifi through settings. I'll get the refused connection
If when I turn on the a30 the wifi is on (because it was on already when I turned the device off last time), wifi file transfer will work

-About last time not being able to open Advanced settings. I like messing with my retroarch configuration because I have it in some many devices that I like to leave it the way I'm so used to. So something in my retroarch.cfg was messing with the advanced settings app (my guess, setting the hotkey to the home button, but will do more testing). Restoring the copy of the original retroarch.cfg solves that problem

And, just as a suggestion, may I recommend making the turning off screen (those 3 seconds just before the device turns off) have a bit more of contrast or not so dark? I didn't realize till today there was such a screen and I think I may have taken the sd card out while it wasn't completely turned off. Just a suggestion for distracted people like myself : )

@veckia9x
Copy link
Contributor

veckia9x commented Dec 9, 2024

Thanks for the info on the SD card.

-About the Wifi share: if when I turn on the a30 the wifi is off and I manually turn on the wifi through settings. I'll get the refused connection
If when I turn on the a30 the wifi is on (because it was on already when I turned the device off last time), wifi file transfer will work

I'll ask the guys to take a look at this case scenario and see if something else might be happening, but I'm pretty sure this was tested and this might be something else still being off place.

-About last time not being able to open Advanced settings. I like messing with my retroarch configuration because I have it in some many devices that I like to leave it the way I'm so used to. So something in my retroarch.cfg was messing with the advanced settings app (my guess, setting the hotkey to the home button, but will do more testing). Restoring the copy of the original retroarch.cfg solves that problem

I'm not a retroarch advanced guy, but i fail to see how messing with buttons inside retroarch cfg being disruptive on the advanced settings app. I'm glad you found a temporary solution.

And, just as a suggestion, may I recommend making the turning off screen (those 3 seconds just before the device turns off) have a bit more of contrast or not so dark? I didn't realize till today there was such a screen and I think I may have taken the sd card out while it wasn't completely turned off. Just a suggestion for distracted people like myself : )

I'll ask but im pretty sure this might be just the way A30 works, kill everything app before shutdown, including our code. Just in case I'll spin that suggestion to others.

Thanks

@colibris79
Copy link
Author

colibris79 commented Dec 9, 2024

I'll ask the guys to take a look at this case scenario and see if something else might be happening, but I'm pretty sure this was tested and this might be something else still being off place.

Cool, thanks. It is happening to me with 2 different sd cards. So if you want me to test anything else, just let me know. But I can confirm that in my case this on/off wifi at startup triggers this issue.

I'm not a retroarch advanced guy, but i fail to see how messing with buttons inside retroarch cfg being disruptive on the advanced settings app. I'm glad you found a temporary solution.

I can confirm that changing back the hotkey to "Select" inside of retroarch allows me to open "Advanced settings" again. I send you my customised retroarch.cfg in case it helps.
I don't like setting up the hotkey to "Select" because that key is used in many games. My first option is usually L3 (but what surprise to find out that our L3 is fake). So for me the next best option is "Home", but I guess it messes up with the firmware or Spruce somehow
Uploading retroarch.cfg.zip…

@XanXic
Copy link
Member

XanXic commented Dec 9, 2024

Ah, yeah, 3.1.0 Advanced Settings, is incompatible with Home as a hotkey, I'm curious how you're getting away with using it without firing the tap/hold actions you have defined at the same time? I believe you would've also had to define it outside of Retroarch for that same reason. But there was some work done previously so we can enable that eventually. I didn't anticipate someone setting that up since it's so incompatible with spruce at large before some fixes I made in 3.2.0.

I guess just FYI that work is done in 3.2.0 so home was added as a hotkey in settings and using it as a hotkey will prevent tap and hold settings from firing. But some of the code is in advanced settings 3.1.0 for that lol. So if you set it to literally anything other than home Advanced Settings will be fine.

@colibris79
Copy link
Author

@XanXic Sorry for all the fuss and thanks for the help. I totally understand that Spruce is designed to make it as easy as possible for most people while having some advanced configurations at the same time. Right now I've got it configured to L2 which is close enough

@XanXic XanXic added the investigating Looking into the reason for the issue and or a solution internally label Dec 11, 2024
@colibris79
Copy link
Author

colibris79 commented Dec 16, 2024

Just tried a fresh install with new 3.2.0 and still experiencing the same issue
Everything else seems to be working fine (not too much testing yet though). Good that you added the warning about "Rewind" option. I had to turn it off for psx games a couple of days ago because it made things very choppy.

EDIT: Should I try using the multipass.cfg file? I am not completely sure about how it is used (couldn't find the info in the wiki). Does it override the firmware wifi configuration? I've tried to use it with two wifis at home but the second one when I tried to connect from settings, it asked for the password. So I guess I must be doing something wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Looking into the reason for the issue and or a solution internally
Projects
None yet
Development

No branches or pull requests

5 participants