A sia-ui error has occured error: sia closed unexpected


  • admins

    They most likely are related. My hands are full for the next 2 weeks or so, but after that I'm intending to work full steam on the host + storage manager until we've fixed the bugs that have been showing up.



  • Hello, I received the same error after a power failure. But the solution did not help. If I delete the folder AppData\Roaming\Sia-UI\sia\host
    the program starts, but does not give me to set up the same folder of saved files

    I tried to set up by hand in storagemanager.json
    "Path": "E:\sia",
    "UID": "qfvyRA==",

    But:
    C:\Users\BornToRun\Downloads\Sia-UI-v1.1.0-win32-x64\resources\app\Sia>siad --si
    a-directory %APPDATA%/Sia-UI/sia
    Loading...
    (0/7) Loading siad...
    (1/7) Loading gateway...
    (2/7) Loading consensus...
    (3/7) Loading transaction pool...
    (4/7) Loading wallet...
    (5/7) Loading miner...
    (6/7) Loading host...
    Closing miner...
    Closing wallet...
    Closing transaction pool...
    Closing consensus set...
    Closing gateway...
    unexpected EOF

    And:
    Error Adding Folder
    symlink E:
    C:\Users...\AppData\Roaming\Sia-UI\sia\host\storagemanager\9a9775c7: A required privilege is not held by the client



  • @Taek Since a windows update and system restart I've been unable to get Sia-UI working. I've had the same 'A Sia-UI error has occurred: Siad unexpectedly closed' error message as others. I managed to get the UI open by running siad in the command prompt, but the block wasn't synched and it won't let me open the wallet. So I ran the command as requested and got this:

    C:\Users\Owner>C:\Sia-UI-v1.0.4-win32-x64\resources\app\Sia\siad --sia-directory %APPDATA%/Sia-UI/sia
    Loading...
    (0/6) Loading siad...
    (1/6) Loading gateway...
    invalid character '\x00' looking for beginning of value

    I have a substantial number of contracts and host data, so need to avoid wiping and starting again. Otherwise this will be the last straw for me. Any suggestions?


  • admins

    @augustus Delete your gateway folder, you shouldn't need to delete anything else. Also, upgrade to v1.2.0 - the most recent release. It is a lot more stable.



  • @Taek I deleted the Gateway folder and was able to log in, access my wallet and continue hosting. I then proceeded to carry out the update to version 1.20 as suggested. But since then opening Sia-UI results in a constant 'Loading Sia...' message. I've closed down and restarted several times, even left it in the loading state for over 24 hours, but it refuses to load up. What now?



  • Yeah got this too cant seem to make it run again lost about 62k and one tb worth of contracts. think im done now..



  • This post is deleted!

  • admins

    The host upgrade takes about 1 hour per 50GB you are storing. Unfortunately, this also includes storage you have allocated but is not in use.

    We have a fix coming up which should improve things substantially. Should be available tomorrow.



  • @Taek Ok... new fault. Sia-UI won't launch at all now. Carried out the same diagnostic as before. Results below:

    C:\Users\Owner>C:\Sia-UI-v1.0.4-win32-x64\resources\app\Sia\siad --sia-directory %APPDATA%/Sia-UI/sia
    Loading...
    (0/6) Loading siad...
    listen tcp 127.0.0.1:9980: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

    Any suggestions?



  • @augustus That indicates that you already have a process bound to that ip:port - you can use Resource Monitor to find out what is listening on that port and close or change it.



  • @brwainer I've checked listening ports in resource monitor and the only entry for port 9980 is:
    Image: siad.exe process ID: 7476 address: IPv4 loopback

    The same siad.exe process ID are listed on ports 9981 & 9982. How should I proceed?



  • @Taek I am having a similar problem on my linux machine (elementary OS)



  • @augustus it sounds to me like you already have one said instance running (in the background?) and are trying to launch another. If that's not the case then you'll have to wait for someone more knowledgeable to answer and let you know what needs to be deleted in order to reset the state of sia.



  • I've restarted several times and checked that no siad processes are running, so not sure why siad.exe is being listed as listening to port 9980. @Taek can you shed some light? My hosting has been offline for over a week now!



  • @augustus if a process is bound to a port, and you can't close it via normal means (i.e. you don't have a command prompt open for it, and it isn't showing in the taskbar tray as an icon you can right click) then you have to kill the process from task manager or a similar program. Or restart the computer, that closes all processes. Sai doesn't have any automatic startup, so it wouldn't start on boot/login unless you manually set that up yourself.



  • @brwainer I'm struggling to see how what your stating fixes the problem. I've restarted my computer several times which does indeed free up port 9980, but Sia-UI still won't start. The same problem still occurs.


  • admins

    @augustus sorry for the slow reply. Been buried. if you are getting the error: "listen tcp 127.0.0.1:9980: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted." when you try to start the UI, it means that there's another program somewhere using that port.

    It is a weird error though, if Sia is already available at port :9980 the UI should just automatically connect to it, instead of complain.



  • @Taek so to clarify, this means you have no idea how to fix the issue? In which case I will reinstall so I can access my wallet. But I'll no longer be hosting. I've experienced far too many problems and am tired of software issues outside of my control leading to financial penalties.


  • admins

    Sorry to hear that. But the error you are reporting is very unusual.



  • @Taek I've managed to get the Sia-UI working again. I backed up the storage folder & Sia-UI folder (containing GPUCache, consensus, gateway, host, etc folders) wiped Sia and re-downloaded and reinstalled. Copying over the backed up files seems to have worked as the block is almost fully synced, wallet seed is present and can be accessed. I've proceeded to add the old storage folder however I'm unsure if this is enough to make previous client data accessible. Is there any way I can determine if clients are able to access their data and that everything is running as it should be?


Log in to reply