Mock fails to download disable plugin patterns while building 32bit RPMs: 403 on repository 'local' - fedora

I am trying to build a few RPMs for 32 bit Fedora using the SRPM. I tried running Mock with:-
mock -r fedora-32-i386 rebuild src.rpm
It gives me the following error:
No matches found for the following disable plugin patterns: local, spacewalk
local 83 B/s | 199 B 00:02
Errors during downloading metadata for repository 'local':
- Status code: 403 for https://kojipkgs.fedoraproject.org/repos/f32-build/latest/i386/repodata/repomd.xml (IP: 38.145.60.21)
Error: Failed to download metadata for repo 'local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
ERROR: Command failed:
# /usr/bin/dnf --installroot /var/lib/mock/fedora-32-i686-bootstrap/root/ --releasever 32 --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk install dnf dnf-plugins-core --setopt=tsflags=nocontexts
No matches found for the following disable plugin patterns: local, spacewalk
local 83 B/s | 199 B 00:02
Errors during downloading metadata for repository 'local':
- Status code: 403 for https://kojipkgs.fedoraproject.org/repos/f32-build/latest/i386/repodata/repomd.xml (IP: 38.145.60.21)
Error: Failed to download metadata for repo 'local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
I have tried disabling the fastest mirror in the conf file in /etc/dnf, with no luck. Is mock using a different repo file than my current installation? How do I fix this?

Mock is using configs from the directory /etc/mock/ so for fedora-32-i386 it is /etc/mock/fedora-32-i386.cfg This config contains yum config which is used during the installation of the buildroot.
More about Mock's configs: https://rpm-software-management.github.io/mock/configuration

Related

I am trying to install MySQL in fedora

I am trying to install mysql and when I run the install command it keeps throwing the errors or returns failed to download.
[root#fedora rk10]# dnf install mysql-community-server
negativo17 - Nvidia 26 kB/s | 50 kB 00:01
Errors during downloading metadata for repository 'epel-nvidia':
- Status code: 404 for https://negativo17.org/repos/nvidia/epel-36/x86_64/repodata/repomd.xml (IP: 217.79.184.49)
Error: Failed to download metadata for repo 'epel-nvidia': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MySQL 8.0 Community Server 17 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mysql80-community':
- Status code: 404 for http://repo.mysql.com/yum/mysql-8.0-community/fc/36/x86_64/repodata/repomd.xml (IP: 124.41.245.48)
Error: Failed to download metadata for repo 'mysql80-community': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MySQL Connectors Community 16 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mysql-connectors-community':
- Status code: 404 for http://repo.mysql.com/yum/mysql-connectors-community/fc/36/x86_64/repodata/repomd.xml (IP: 124.41.245.48)
Error: Failed to download metadata for repo 'mysql-connectors-community': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MySQL Tools Community 19 B/s | 10 B 00:00
Errors during downloading metadata for repository 'mysql-tools-community':
- Status code: 404 for http://repo.mysql.com/yum/mysql-tools-community/fc/36/x86_64/repodata/repomd.xml (IP: 124.41.245.48)
Error: Failed to download metadata for repo 'mysql-tools-community': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: epel-nvidia, mysql80-community, mysql-connectors-community, mysql-tools-community
Last metadata expiration check: 0:47:47 ago on Fri Jul 22 17:02:33 2022.
No match for argument: mysql-community-server
Error: Unable to find a match: mysql-community-server
It appears the URLs that your repos are pointed to do not actually exist. Check out the URLS for the first two 'epel-nvidia' and 'mysql80-community':
https://negativo17.org/repos/nvidia/
http://repo.mysql.com/yum/mysql-8.0-community/fc/
I would try modifying your corresponding repo files (/etc/yum.repos.d/(repo filename) for each repo that is failing to include a path that actually exists from each URL.
for instance, in the repo file, try changing:
http://repo.mysql.com/yum/mysql-8.0-community/fc/36/x86_64/repodata/repomd.xml
to
http://repo.mysql.com/yum/mysql-8.0-community/fc/35/x86_64/repodata/repomd.xml
(NOTE the change from ../fc/36/.. to ../fc/35/..)
Good luck, I hope this helps.

aws coldbuild failed: ebcli.objects.exceptions.NotFoundError: Environment "flask-daniel-test" not Found

I have github repo here https://github.com/DanielWu1978/flaskbeanstalk
And then configured a codebuild for it. When I run the following command from command line locally, it is ok, but when call the same code from codebuild, it raises the error of "ebcli.objects.exceptions.NotFoundError: Environment "flask-daniel-test" not Found.". Why this happens?
eb deploy flask-daniel-test --verbose
WARNING: Beanstalk configuration header 'eb_codebuild_settings' is missing from Buildspec file; will not use Beanstalk Code Build integration
INFO: Deploying code to flask-daniel-test in region us-west-2
INFO: Getting version label from git with git-describe
Creating application version archive "app-38c0-220705_182941662302".
INFO: creating zip using git archive HEAD
INFO: git archive output: .elasticbeanstalk/
.elasticbeanstalk/config.yml
.gitignore
Makefile
README.md
application.py
buildspec.yml
requirements.txt
INFO: Uploading archive to s3 location: flask-daniel/app-38c0-220705_182941662302.zip
Uploading flask-daniel/app-38c0-220705_182941662302.zip to S3. This may take a while.
Upload Complete.
INFO: Creating AppVersion app-38c0-220705_182941662302
2022-07-05 10:29:47 INFO Environment update is starting.
2022-07-05 10:29:51 INFO Deploying new version to instance(s).
2022-07-05 10:29:55 INFO Instance deployment successfully generated a 'Procfile'.
2022-07-05 10:30:04 INFO Instance deployment completed successfully.
2022-07-05 10:30:09 INFO New application version was deployed to running EC2 instances.
2022-07-05 10:30:09 INFO Environment update completed successfully.
But when run from codebuild. it has the following:

Getting Assemble script failed error building application in Redhat Openshift

I'm new to Redhat OpenShift and trying to deploy node application (with angularjs + mysql) and running into build issues.
Using openshift console created node application and in advanced options pointed to the private repository and linked configured secret (ssh key to private repository).
My build is failing with "Assemble script failed". Pasting the logs as below (from console - obfuscated private keys and values).
Not sure if I'm missing some configurations. Appreciate help on this.
Cloning "ssh://username#bitbucket.org/username/my-app.git" ...
Commit: xxxxxxxxxxxxxxxxx (Fixed readme)
Author: Name <email>
Date: Wed Sep 6 19:50:59 2017 -0700
Pulling image "docker-
registry.default.svc:5000/openshift/nodejs#sha256:0000000000000" ...
---> Installing application source
---> Building your Node application from source
Current git config
url.https://github.com.insteadof=git#github.com:
url.https://.insteadof=ssh://
url.https://github.com.insteadof=ssh://git#github.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=ssh://username#bitbucket.org/username/my-app.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
---> Installing dependencies
---> Using 'npm install -s --only=production'
error: build error: non-zero (13) exit code from docker-
registry.default.svc:5000/openshift/nodejs#sha256:0000000000000
Pls note that my source code is hosted on private repository and per log above it appears openshift is able to access the repository and download the source code.
Thanks Graham for the pointer. I recreated the application and this time in advanced options on the web console selected 1 GB (from default of 500 mb) after which my build worked fine.

Running "karma:unit" (karma) task WARN [reporter]: Can not load "html", it is not registered! Perhaps you are missing some plugin?

I'm getting following warn when I ran grunt test and doesn't give me the expected result, which is writing the progress of unit tests.
error:-
Running "karma:unit" (karma) task
WARN [reporter]: Can not load "html", it is not registered!
Perhaps you are missing some plugin?
INFO [karma]: Karma v0.12.15 server started at http://localhost:8080/
INFO [launcher]: Starting browser Chrome
WARN [watcher]: Pattern "F:/AngularExamples/TestingAngular/test/mock/**/*.js" do
es not match any file.
INFO [Chrome 34.0.1847 (Windows 7)]: Connected on socket Mxn9RZeJcSW1gjL_e3d2 wi
th id 36948068
Chrome 34.0.1847 (Windows 7): Executed 1 of 1 SUCCESS (0.04 secs / 0.037 secs)
Done, without errors.
html report plugin integration in karma.config.js :-
reporters: ['progress', 'html'],
// the default configuration
htmlReporter: {
outputDir: 'karma_html',
templatePath: __dirname+'/jasmine_template.html'
},
can someone point me the cause?
First, make sure it has been installed - there should be a karma-html-reporter directory in node_modules in the directory from which you are running the tests. If not run:
npm install karma-html-reporter
Then confirm you have 'karma-html-reporter' in plugins in the conf, i.e:
plugins: [
'karma-teamcity-reporter',
'karma-jasmine',
'karma-coverage',
'karma-chrome-launcher',
'karma-phantomjs-launcher',
'karma-html-reporter'
]

Error on launching a local version of a website

I tried to install Jekyll On Windows 7. I followed this guide http://www.testically.org/2012/02/02/installing-jekyll-and-ruby-on-windows/
So I first downloaded Ruby and added \;C:\Ruby193\bin to the path variable.
I then downloaded DevKit and added \;C:\Users\jimmy\Downloads\teeheeband\bin\ to the path variable as well.
I then opened my command and did the following (in order)
cd ;C:\Users\jimmy\Downloads\teeheeband
ruby dk.rb init
ruby dk.rb install
the following are the codes that appeared on my screen when I did the above steps.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\jimmy>cd ;C:\Users\jimmy\Downloads\teeheeband
C:\Users\jimmy\Downloads\teeheeband>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
C:\Users\jimmy\Downloads\teeheeband>ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/Ruby193'
[WARN] Skipping existing DevKit helper library for 'C:/Ruby193'
C:\Users\jimmy\Downloads\teeheeband>gem install jekyll
Successfully installed jekyll-0.12.0
1 gem installed
Installing ri documentation for jekyll-0.12.0...
Installing RDoc documentation for jekyll-0.12.0...
C:\Users\jimmy\Downloads\teeheeband>
Once I did the above, I downloaded github and cloned the repo that I wanted to work on. I then went to Gitshell and did the following
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
C:\Users\jimmy\Documents\GitHub> cd prog694.github.com
C:\Users\jimmy\Documents\GitHub\prog694.github.com [new-branch]> jekyll --server
--auto
Configuration from C:/Users/jimmy/Documents/GitHub/prog694.github.com/_config.ym
l
Auto-regenerating enabled: C:/Users/jimmy/Documents/GitHub/prog694.github.com ->
C:/Users/jimmy/Documents/GitHub/prog694.github.com/_site
[2013-02-03 20:19:00] regeneration: 402 files changed
[2013-02-03 20:19:01] INFO WEBrick 1.3.1
[2013-02-03 20:19:01] INFO ruby 1.9.3 (2013-01-15) [i386-mingw32]
[2013-02-03 20:19:01] INFO WEBrick::HTTPServer#start: pid=4036 port=4000
[2013-02-03 20:20:24] ERROR no access permission to `/'
jimmy-PC - - [03/Feb/2013:20:20:24 Atlantic Standard Time] "GET / HTTP/1.1" 403
283
- -> /
[2013-02-03 20:20:24] ERROR `/favicon.ico' not found.
jimmy-PC - - [03/Feb/2013:20:20:24 Atlantic Standard Time] "GET /favicon.ico HTT
P/1.1" 404 281
- -> /favicon.ico
Finally I opened a browser and tried to run a local copy of the website via : localhost:4000
I failed and got this message
Forbidden
no access permission to `/'
WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15) at 127.0.0.1:4000
so I used h**p://127.0.0.1:4000/( replace t with **)
failed again
Forbidden
no access permission to `/'
WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15) at 127.0.0.1:4000
All I want is to be able to open and run a local version of this website. Any help would be greatly appreciated.
Check if your port 4000 is not used by something else, or if you have a firewall enable access to it.
I'd highly disrecomend Windows for jekyll (or any ruby gem/app), installing and using it in Linux would be much easier.