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



  • Hi everyone,

    FYI I just had the same issue on a W10 64-bit machine after a crash.

    What i had to do is delete the storagemanager.json file (C:\Users\xxx\AppData\Roaming\Sia-UI\sia\host\storagemanager), because it only contained some tabs and spaces. After I deleted this file I could properly start SiaUI and the file got recreated.

    UPDATE: This did not really help at the end, because my Storage Folders disappeared. I am speaking to the devs about it, I'll update this post once I figure out who to solve this issue.

    UPDATE 2: Unfortunately all my contracts and money are lost :( I got the info from devs that I was probably the only one this happened to, but without this file I have basically lost all the data that is needed for hosting my files and contracts.

    So I now re-created the Stroage Folder and started from scratch. I can live with loosing a couple of thousand SIA coins, but I'll be backing up my files like crazy from now on.

    Supposedly this only happens on Windows and it will be better in v1.2 (I am using 1.1.0).



  • I've got this under windows 7 x64 and I use a seperate foder on a other hdd but still have the files in
    C:\Users\USERNAME\AppData\Roaming\Sia-UI\sia, I have atleast 54 contracts before, how to recreate now, what should I delete in that folder to startup sia again ?

    Regards Peter


  • admins

    Dev here. First thing I need to say is that I really appreciate you all posting this. Clearly it's not a rare or isolated issue, but something we need to spend more time digging into. Secondly, the topic of this thread has really changed to being about file corruption, and not just about Siad crashing.

    Second, for anyone reading thing, if you are having this problem on a machine that is not Windows, please speak up. Right now I'm assuming that this is a windows only problem, which is going to cause a lot of grief if my assumption is incorrect (but it's a great shortcut if my assumption is actually correct).

    Third, is anyone having problems with corrupted files other than their storagemanager.json?

    I am sorry for the issues that this is causing. We're definitely looking into it.



  • @Taek Would this corruption of the storagemanager.json that is being discussed in this topic also have been related to my own issues with storagemanager.json (and I think other files as well, but not sure) getting corrupted? My issue is: http://forum.sia.tech/topic/798/corrupt-host-folder-paths/6


  • 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.


Log in to reply