GithubHelp home page GithubHelp logo

Comments (30)

tobiemh avatar tobiemh commented on April 28, 2024 2

Hi @jareer12 thanks for finding this bug.

We're fixing our Windows build at the moment, and it should be fixed soon...

from surrealdb.

pawm13 avatar pawm13 commented on April 28, 2024 1

Having the same issue here.

PS D:\SurrealDB> iwr https://windows.surrealdb.com -useb | iex

.d8888b. 888 8888888b. 888888b.
d88P Y88b 888 888 'Y88b 888 '88b
Y88b. 888 888 888 888 .88P
'Y888b. 888 888 888d888 888d888 .d88b. 8888b. 888 888 888 8888888K.
'Y88b. 888 888 888P' 888P' d8P Y8b '88b 888 888 888 888 'Y88b
'888 888 888 888 888 88888888 .d888888 888 888 888 888 888
Y88b d88P Y88b 888 888 888 Y8b. 888 888 888 888 .d88P 888 d88P
'Y8888P' 'Y88888 888 888 'Y8888 'Y888888 888 8888888P' 8888888P'

Fetching the latest database version...
Fetching the host system architecture...
Installing surreal-v1.0.0-beta.6
for windows-amd64...
Invoke-WebRequest:
Line |
54 | Invoke-WebRequest $DownloadUrl -OutFile $Executable -UseBasicPars …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
AccessDeniedAccess DeniedMN5JAXVW7ZB4J5V6ddiaBd4giMWe0RP+HSEBWV8MR3FNSddbWdny88/otUL7rWTNETDG5phRhZaRg/m4n839uNtAm9U=
PS D:\SurrealDB>

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024 1

@tobiemh
I actually just tried it on Windows 10 and it gives the exact same error message.

When I try a manual download from https://download.surrealdb.com/v1.0.0-beta.7/surreal-v1.0.0-beta.7.windows-amd64.exe
it starts the download but also fails, but I have no details what causes the error.

This page: https://download.surrealdb.com/v1.0.0-beta.7 gives an "Access Denied" error, so it looks like a server issue.

-- update --
I can now download using the complete uri, with the filename , but installing via the script still gives an error and the last page I mentioned still has an access denied error.

from surrealdb.

jub0t avatar jub0t commented on April 28, 2024

AccessDeniedAccess Denied

Run powershell as admin.

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Hi @pawm13 thanks for this. We've got an issue with our Windows build at the moment (a dependency that we rely on, is having issues building for Windows).

We're looking to get this resolved for our next release (1.0.0-beta.7) which should be this week.

We'll keep this issue updated when it's sorted. Thanks for bearing with us!

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Hi @pawm13, @jareer12 our Windows build should now be working!

If you could give it a test and let me know, that would be really helpful 👏 !

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

@RayZwankhuizen I've made some changes to the install script. Could you test again now, by any chance?

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh The script runs now, does the download and install.
However trying surrealdb.exe --help (or anything with surrealdb.exe) gives an error, the directory is not included in the path.
And in Powershell I get this when I try it from the directory itself:

PS C:\users\raymo\surrealdb> surrealdb --help
surrealdb : The term 'surrealdb' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • surrealdb --help
  •   + CategoryInfo          : ObjectNotFound: (surrealdb:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

--- EDIT ---
Okay, I tried running surrealdb.exe --help from the command prompt and I got a popup that says "The code execution cannot proceed because libstdc++-6.dll was not found." It looks like some C++ libraries are missing.
--- EDIT 2 ---
The same message appears in Powershell, I forgot to include .\ when running the program.

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Hi @RayZwankhuizen thanks for helping with this!

I've just updated the Windows binary and it should (hopefully) be statically linked now. Could you try again with the install script?

Alternatively, the file url is: https://download.surrealdb.com/v1.0.0-beta.7/surreal-v1.0.0-beta.7.windows-amd64.exe

Thanks for all your help @RayZwankhuizen 👏

from surrealdb.

pawm13 avatar pawm13 commented on April 28, 2024

The script ran succefully but windows defender is deleting the surrealdb.exe

It got a Trojan:Win32/Wacatac.B!ml

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh After installation I tried running surrealdb.exe from the directory it's installed in. In Powershell I get nothing, no error but also nothing else. In Command Prompt I'm still getting dll error.
I have to run it in the installed directory, the program is not in the path yet, but that's easily fixed.

I do not get @pawm13's problem with windows defender or a Trojan message. Also my anti-virus/malware sofware does not identify a Trojan.

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Hi @pawm13, @RayZwankhuizen - could you try now. I've built it as an msvc build rather than a gnu build.

Hopefully it works this time. The file is still located at: https://download.surrealdb.com/v1.0.0-beta.7/surreal-v1.0.0-beta.7.windows-amd64.exe

Or via the Windows install script...

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh Sorry for the late reply. I downloaded the file and try to install it, but it immediately gives me the C++ dll error.
When I try to use the install script: iwr https://windows.surrealdb.com -useb | iex, the script runs but trying to run the program gives me the same dll error.

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh It seems to be working this morning. I have a different filesize for surrealdb.exe so maybe the static link was not updated before.
After running the installation script the path is not updated so I have to do this manually to run surreal from wherever I want.

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Hi @RayZwankhuizen so running surreal.exe help produces some output?

I'm working on getting the libvcruntime built statically into the Windows build, so it works on even the most basic Windows installation. That's not quite working yet, but hopefully almost there.

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh Yes, I get the banner, some explanation and an overview of the commands.
I added the directory to my systemwide path and everything seems to work now. Next step for me, start playing around with the database ;-)

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

@RayZwankhuizen what would be the best location to install the .exe file? Currently it is in \$HOME\surrealdb\surreal.exe

Would be great to get any recommendations with what is best practice...!

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh
Currently the software installs in c:\users<username>\surreal, which is equivalent to $HOME
While that works, I would normally like to see software installed in the Program Files or Program Files (x86) directory. These directories are there for software to be installed into.

BTW, on this page https://surrealdb.com/docs/start it's mentioned to run surreal.exe, you may want to change that to surrealdb.exe

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

@RayZwankhuizen would you expect it to be C:\Program Files\surreadbl.exe or C:\Program Files\surrealdb\surrealdb.exe?

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Also @RayZwankhuizen can that folder always be written to, or would you always need admin privileges?

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

I would expect all software to be in it's own directory, so that would be c:\Program Files\surrealdb\surrealdb.exe.
And as far as I know you should be able to install in these directories without a problem. Maybe some (corporate) systems are locked down more but in general people installing this software are developers and should have plenty of access to install the software.

I have found some issues with your webserver and especially the port it runs on, I'll check some more and come back to you. Although I'll probably open a new issue for that, let's not mess this one up with other stuff than installation problems.

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

@RayZwankhuizen 👍 Should the .exe also be removed from the filename? Or leave it as it is?

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh I'm not really sure where you want to delete that? The file has to have an .exe extension, which is default for Windows.
If you have the directory in the PATH variable you're able to run either surrealdb.exe or surreal, Windows will look for an .exe file first and after that for .bat or .cmd files.

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Ok perfect @RayZwankhuizen . I'm just changing the script so that it installs the file into:

C:\Program Files\SurrealDB\surreal.exe

Then hopefully once I've fixed the build for base Windows installs, everything should work much better!

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

@RayZwankhuizen when attempting to install into the Program Files folder I receive the following error...

PS C:\Users\tobie> iwr https://windows.surrealdb.com -useb | iex

 .d8888b.                                             888 8888888b.  888888b.
d88P  Y88b                                            888 888  'Y88b 888  '88b
Y88b.                                                 888 888    888 888  .88P
 'Y888b.   888  888 888d888 888d888  .d88b.   8888b.  888 888    888 8888888K.
    'Y88b. 888  888 888P'   888P'   d8P  Y8b     '88b 888 888    888 888  'Y88b
      '888 888  888 888     888     88888888 .d888888 888 888    888 888    888
Y88b  d88P Y88b 888 888     888     Y8b.     888  888 888 888  .d88P 888   d88P
 'Y8888P'   'Y88888 888     888      'Y8888  'Y888888 888 8888888P'  8888888P'

Fetching the latest database version...
Fetching the host system architecture...
Installing surreal-v1.0.0-beta.7 for windows-amd64...
New-Item : Access to the path 'SurrealDB' is denied.
At line:54 char:5
+     New-Item $Directory -Force -ItemType Directory | Out-Null
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (C:\Program Files\SurrealDB:String) [New-Item], UnauthorizedAccessExce
   ption
    + FullyQualifiedErrorId : CreateDirectoryUnauthorizedAccessError,Microsoft.PowerShell.Commands.NewItemCommand

PS C:\Users\tobie>

Any thoughts on this?

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh
Looks like a permission issue. It works on my system, I'll see what I can find, but I need to go out in a few minutes so it could be tonight or tomorrow before I come back to you.

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

@RayZwankhuizen ignore that previous issue.

  • I've changed the install script so that it installs into C:\Program Files if it has administrator permissions, otherwise it installs into $HOME. That way, the script works for both environments.

  • In addition, it also updates the $Env:Path environment variable so that surreal or surreal.exe can be run from anywhere without needing to specify the full path.

  • Finally, I've fixed the Windows build so that it statically includes the necessary libraries, regardless of whether they are installed on the Windows machine.

It would be great if you (@RayZwankhuizen, @jareer12) could test the install again, and let me know your thoughts 🤞!?

iwr https://windows.surrealdb.com -useb | iex

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh It's weird because the line that throws the error is not yet trying to create the directory.
You could combine line 53 and 54 to $Directory = Join-Path "C:" "Program Files\SurrealDB" and see what happens?

Or replace it by $Directory = "C:\Program Files\SurrealDB", there's actually not much benefit in Join-Path for this installation.

from surrealdb.

RayZwankhuizen avatar RayZwankhuizen commented on April 28, 2024

@tobiemh This seems to be working. I can install the software and the path is set, great job!

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Awesome @RayZwankhuizen 😀 . I'm going to close this issue, and we'll update the website!

Any other issues with regards to Windows, feel free to open a new issue!

Thanks for all your input @RayZwankhuizen @jareer12 @pawm13 👏 !

from surrealdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.