Skip to content

Support for OpenBSD/adJ #2406

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

Closed
vtamara opened this issue Mar 3, 2025 · 2 comments
Closed

Support for OpenBSD/adJ #2406

vtamara opened this issue Mar 3, 2025 · 2 comments

Comments

@vtamara
Copy link

vtamara commented Mar 3, 2025

On OpenBSD/adJ 7.6 trying to install from the command line, adapting the instructions of the README, fails with:

 % doas npm install -g @sentry/cli
npm error code 1
npm error path /usr/local/lib/node_modules/@sentry/cli
npm error command failed
npm error command sh -c node ./scripts/install.js
npm error /usr/local/lib/node_modules/@sentry/cli/js/helper.js:96
npm error   throw new Error(
npm error   ^
npm error
npm error Error: Unsupported operating system or architecture! Sentry CLI does not work on this architecture.
npm error
npm error Sentry CLI supports:
npm error - Darwin (macOS)
npm error - Linux and FreeBSD on x64, x86, ia32, arm64, and arm architectures
npm error - Windows x64, x86, and ia32 architectures
npm error     at Object.throwUnsupportedPlatformError (/usr/local/lib/node_modules/@sentry/cli/js/helper.js:96:9)
npm error     at Object.<anonymous> (/usr/local/lib/node_modules/@sentry/cli/scripts/install.js:324:10)
npm error     at Module._compile (node:internal/modules/cjs/loader:1469:14)
npm error     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
npm error     at Module.load (node:internal/modules/cjs/loader:1288:32)
npm error     at Module._load (node:internal/modules/cjs/loader:1104:12)
npm error     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
npm error     at node:internal/main/run_main_module:28:49
npm error
npm error Node.js v20.17.0
npm notice
npm notice New minor version of npm available! 11.0.0 -> 11.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0
npm notice To update run: npm install -g [email protected]
npm notice
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-03T10_19_21_277Z-debug-0.log

OpenBSD/adJ 7.6 includes rustc 1.81.0, however the compilation fails with:

% git clone [email protected]:getsentry/sentry-cli.git
...
% cd sentry-cli
% cargo build
...
   Compiling encoding v0.2.33
   Compiling pbkdf2 v0.11.0
   Compiling sentry-anyhow v0.34.0
   Compiling symbolic-symcache v12.13.3
   Compiling zstd v0.11.2+zstd.1.5.2
error[E0658]: use of unstable library feature 'is_none_or'
   --> /home/vtamara/.cargo/registry/src/index.crates.io-6f17d22bba15001f/symbolic-symcache-12.13.3/src/writer.rs:311:22
    |
311 |                     .is_none_or(|next| next.start > current_address)
    |                      ^^^^^^^^^^
    |
    = note: see issue #126383 <https://github.com/rust-lang/rust/issues/126383> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `symbolic-symcache` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

Checking rust-lang/rust#129086 it seems this could require rust 1.82.0 (that is missing in the README of sentry-cli). I will be trying with a development version of OpenBSD/adJ with a more updated rust.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 3, 2025
@vtamara
Copy link
Author

vtamara commented Mar 3, 2025

On OpenBSD-current (development version) that includes rust 1.85.0 I was able to compile. Running it presents an error:

 % ./bin/sentry-cli                      
/home/vtamara/comp/rust/sentry-cli/js/helper.js:96            
  throw new Error(                                                                                                                                              
  ^                                                                             
                                                                                
Error: Unsupported operating system or architecture! Sentry CLI does not work on this architecture.
                                                                                                                                                                
Sentry CLI supports:                                                            
- Darwin (macOS)                                                                
- Linux and FreeBSD on x64, x86, ia32, arm64, and arm architectures             
- Windows x64, x86, and ia32 architectures                    
    at throwUnsupportedPlatformError (/home/vtamara/comp/rust/sentry-cli/js/helper.js:96:9)                                                                     
    at getBinaryPath (/home/vtamara/comp/rust/sentry-cli/js/helper.js:120:5)    
    at Object.getPath (/home/vtamara/comp/rust/sentry-cli/js/helper.js:259:62)  
    at SentryCli.getPath (/home/vtamara/comp/rust/sentry-cli/js/index.js:54:19)                                                                                 
    at Object.<anonymous> (/home/vtamara/comp/rust/sentry-cli/bin/sentry-cli:9:20)   
    at Module._compile (node:internal/modules/cjs/loader:1469:14)               
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)        
    at Module.load (node:internal/modules/cjs/loader:1288:32)                   
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12)                                                                      
                                                                                
Node.js v20.18.2   

Checking helper.js I see that error is not produced by running:

% SENTRY_BINARY_PATH=/home/vtamara/comp/rust/sentry-cli/bin/sentry-cli ./bin/sentry-cli

But a different error is produced:

Error: spawn /home/vtamara/comp/rust/sentry-cli/bin/sentry-cli EAGAIN
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -35,
  code: 'EAGAIN',
  syscall: 'spawn /home/vtamara/comp/rust/sentry-cli/bin/sentry-cli',
  path: '/home/vtamara/comp/rust/sentry-cli/bin/sentry-cli',
  spawnargs: []
}

Regarding the first error, on OpenBSD there is no way to find the path of an executable unless it is fully specified when it is called, IMHO sentry-cli should not fail when it is called as:

% /home/vtamara/comp/rust/sentry-cli/bin/sentry-cli

But regarding the second error, do you have suggestions?

@szokeasaurusrex
Copy link
Member

szokeasaurusrex commented Mar 3, 2025

Sorry @vtamara, but as stated in the error messages, Sentry CLI does not support OpenBSD. We have no plans to add support for OpenBSD, and we cannot assist with any problems that arise when attempting to run Sentry CLI on an OpenBSD system.

If OpenBSD supports Docker, you could try using our Sentry CLI Docker container. Our recommendation, however, would be to run Sentry CLI on one of our supported operating systems (Linux, macOS, or Windows).

@szokeasaurusrex szokeasaurusrex closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants