- Variables
- func ReadQuery(filepath string, args []string) (string, error)
- type BucketParams
- type CLI
-
- func (c *CLI) PrintJSON(v interface{}) error
- func (c *CLI) PrintTable(headers []string, rows …map[string]interface{}) error
- type OrgBucketParams
- type OrgParams
-
- func (p OrgParams) GetOrgID(ctx context.Context, activeConfig config.Config, orgApi api.OrganizationsApi) (string, error)
This section is empty.
View Source
var ( ErrPasswordIsTooShort = errors.New("password is too short") ErrMustSpecifyOrg = errors.New("must specify org ID or org name") ErrMustSpecifyBucket = errors.New("must specify bucket ID or bucket name") )
ReadQuery reads a Flux query into memory from a —file argument, args, or stdin
type BucketParams struct { BucketID string BucketName string }
CLI is a container for common functionality used to execute commands.
func (c *CLI) PrintJSON(v interface{}) error
type OrgBucketParams struct { OrgParams BucketParams }
Describe the bug
When I run VictoriaMetrics in wsl (Ubuntu), I always get «FATAL: cannot move» after a few minutes.
Working folder is on my local windows disk. File system is NTFS.
To Reproduce
Run VictoriaMetrics on WSL v1, e.g. Ubuntu with workfolder on «/mnt/c/» and send data to the db.
Version
victoria-metrics-20221220-225455-tags-v1.85.3-0-gf443fad56
Logs
user@myPC:/mnt/d/#VictoriaMetrics/linux$ ./victoria-metrics-prod -retentionPeriod=100y
2023-01-05T15:51:55.422Z info VictoriaMetrics/lib/logger/flag.go:12 build version: victoria-metrics-20221220-225455-tags-v1.85.3-0-gf443fad56
2023-01-05T15:51:55.423Z info VictoriaMetrics/lib/logger/flag.go:13 command-line flags
2023-01-05T15:51:55.423Z info VictoriaMetrics/lib/logger/flag.go:20 -retentionPeriod="100y"
2023-01-05T15:51:55.423Z info VictoriaMetrics/app/victoria-metrics/main.go:58 starting VictoriaMetrics at ":8428"...
2023-01-05T15:51:55.423Z info VictoriaMetrics/app/vmstorage/main.go:114 opening storage at "victoria-metrics-data" with -retentionPeriod=100y
2023-01-05T15:51:55.428Z info VictoriaMetrics/lib/memory/memory.go:42 limiting caches to 40719170764 bytes, leaving 27146113844 bytes to the OS according to -memory.allowedPercent=60
2023-01-05T15:51:55.428Z info VictoriaMetrics/lib/storage/storage.go:1031 loading MetricName->TSID cache from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/metricName_tsid"...
2023-01-05T15:51:55.442Z info VictoriaMetrics/lib/storage/storage.go:1036 loaded MetricName->TSID cache from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/metricName_tsid" in 0.015 seconds; entriesCount: 0; sizeBytes: 0
2023-01-05T15:51:55.443Z info VictoriaMetrics/lib/storage/storage.go:1031 loading MetricID->TSID cache from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/metricID_tsid"...
2023-01-05T15:51:55.448Z info VictoriaMetrics/lib/storage/storage.go:1036 loaded MetricID->TSID cache from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/metricID_tsid" in 0.005 seconds; entriesCount: 0; sizeBytes: 0
2023-01-05T15:51:55.448Z info VictoriaMetrics/lib/storage/storage.go:1031 loading MetricID->MetricName cache from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/metricID_metricName"...
2023-01-05T15:51:55.453Z info VictoriaMetrics/lib/storage/storage.go:1036 loaded MetricID->MetricName cache from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/metricID_metricName" in 0.004 seconds; entriesCount: 0; sizeBytes: 0
2023-01-05T15:51:55.453Z info VictoriaMetrics/lib/storage/storage.go:891 loading curr_hour_metric_ids from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/curr_hour_metric_ids"...
2023-01-05T15:51:55.456Z info VictoriaMetrics/lib/storage/storage.go:926 loaded curr_hour_metric_ids from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/curr_hour_metric_ids" in 0.000 seconds; entriesCount: 0; sizeBytes: 16
2023-01-05T15:51:55.456Z info VictoriaMetrics/lib/storage/storage.go:891 loading prev_hour_metric_ids from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/prev_hour_metric_ids"...
2023-01-05T15:51:55.464Z info VictoriaMetrics/lib/storage/storage.go:926 loaded prev_hour_metric_ids from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/prev_hour_metric_ids" in 0.000 seconds; entriesCount: 0; sizeBytes: 16
2023-01-05T15:51:55.464Z info VictoriaMetrics/lib/storage/storage.go:847 loading next_day_metric_ids from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/next_day_metric_ids"...
2023-01-05T15:51:55.467Z info VictoriaMetrics/lib/storage/storage.go:882 loaded next_day_metric_ids from "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/cache/next_day_metric_ids" in 0.000 seconds; entriesCount: 0; sizeBytes: 16
2023-01-05T15:51:55.469Z info VictoriaMetrics/lib/mergeset/table.go:308 opening table "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/indexdb/17377252DB4B1F76"...
2023-01-05T15:51:55.488Z info VictoriaMetrics/lib/mergeset/table.go:343 table "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/indexdb/17377252DB4B1F76" has been opened in 0.019 seconds; partsCount: 2; blocksCount: 2, itemsCount: 380; sizeBytes: 4013
2023-01-05T15:51:55.490Z info VictoriaMetrics/lib/mergeset/table.go:308 opening table "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/indexdb/17377252DB4B1F75"...
2023-01-05T15:51:55.503Z info VictoriaMetrics/lib/mergeset/table.go:343 table "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/indexdb/17377252DB4B1F75" has been opened in 0.013 seconds; partsCount: 0; blocksCount: 0, itemsCount: 0; sizeBytes: 0
2023-01-05T15:51:55.588Z info VictoriaMetrics/lib/storage/partition.go:1909 opened part "/mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/data/small/2023_01/1396_39_20230105154457.885_20230105154825.547_173774271B79C9C9" in 0.019 seconds
2023-01-05T15:51:55.602Z info VictoriaMetrics/app/vmstorage/main.go:131 successfully opened storage "victoria-metrics-data" in 0.177 seconds; partsCount: 1; blocksCount: 39; rowsCount: 1396; sizeBytes: 4686
2023-01-05T15:51:55.611Z info VictoriaMetrics/app/vmselect/promql/rollup_result_cache.go:114 loading rollupResult cache from "victoria-metrics-data/cache/rollupResult"...
2023-01-05T15:51:55.616Z info VictoriaMetrics/app/vmselect/promql/rollup_result_cache.go:142 loaded rollupResult cache from "victoria-metrics-data/cache/rollupResult" in 0.005 seconds; entriesCount: 0, sizeBytes: 0
2023-01-05T15:51:55.617Z info VictoriaMetrics/app/victoria-metrics/main.go:68 started VictoriaMetrics in 0.193 seconds
2023-01-05T15:51:55.617Z info VictoriaMetrics/lib/httpserver/httpserver.go:96 starting http server at http://127.0.0.1:8428/
2023-01-05T15:51:55.620Z info VictoriaMetrics/lib/httpserver/httpserver.go:97 pprof handlers are exposed at http://127.0.0.1:8428/debug/pprof/
2023-01-05T15:53:15.898Z panic VictoriaMetrics/lib/fs/fs.go:237 FATAL: cannot move /mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/data/small/2023_01/18_11_20230105155239.562_20230105155239.685_173774885C2078B1 to /mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/data/small/2023_01/18_11_20230105155239.562_20230105155239.685_173774885C2078B1.must-remove.1672933915418033321: rename /mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/data/small/2023_01/18_11_20230105155239.562_20230105155239.685_173774885C2078B1 /mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/data/small/2023_01/18_11_20230105155239.562_20230105155239.685_173774885C2078B1.must-remove.1672933915418033321: permission denied
panic: FATAL: cannot move /mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/data/small/2023_01/18_11_20230105155239.562_20230105155239.685_173774885C2078B1 to /mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/data/small/2023_01/18_11_20230105155239.562_20230105155239.685_173774885C2078B1.must-remove.1672933915418033321: rename /mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/data/small/2023_01/18_11_20230105155239.562_20230105155239.685_173774885C2078B1 /mnt/d/#VictoriaMetrics/linux/victoria-metrics-data/data/small/2023_01/18_11_20230105155239.562_20230105155239.685_173774885C2078B1.must-remove.1672933915418033321: permission denied
goroutine 165 [running]:
github.com/VictoriaMetrics/VictoriaMetrics/lib/logger.logMessage({0xb544ce, 0x5}, {0xc00b590000, 0x280}, 0x3?)
github.com/VictoriaMetrics/VictoriaMetrics/lib/logger/logger.go:281 +0xa9d
github.com/VictoriaMetrics/VictoriaMetrics/lib/logger.logLevelSkipframes(0x1, {0xb544ce, 0x5}, {0xb67170?, 0x2?}, {0xc0012d9878?, 0xc0012d9848?, 0x0?})
github.com/VictoriaMetrics/VictoriaMetrics/lib/logger/logger.go:138 +0x1d6
github.com/VictoriaMetrics/VictoriaMetrics/lib/logger.logLevel(...)
github.com/VictoriaMetrics/VictoriaMetrics/lib/logger/logger.go:130
github.com/VictoriaMetrics/VictoriaMetrics/lib/logger.Panicf(...)
github.com/VictoriaMetrics/VictoriaMetrics/lib/logger/logger.go:126
github.com/VictoriaMetrics/VictoriaMetrics/lib/fs.MustRemoveDirAtomic({0xc00b582e00, 0x83})
github.com/VictoriaMetrics/VictoriaMetrics/lib/fs/fs.go:237 +0x1d0
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.runTransaction(0xc000d64cc0?, {0xc000b14f00, 0x46}, {0xc000b14f50, 0x44}, {0xc000d64cc0, 0x5b})
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:2078 +0x825
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.(*partition).openCreatedPart(0xc0000ea300, 0xc0014680c0, {0xc000d2ad80?, 0xb, 0xc}, 0x0, {0xc000b14f00, 0x46}, {0xc000d64180, 0x5b}, ...)
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:1510 +0x3c5
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.(*partition).mergeParts(0xc0000ea300, {0xc000d2ad80, 0xb, 0xc}, 0xc00003cc00?, 0x0)
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:1341 +0x9e7
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.(*partition).mergeExistingParts(0xc0000ea300, 0x40?)
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:1182 +0x388
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.(*partition).mergeWorker(0xc0000ea300)
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:1048 +0x7e
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.(*partition).startMergeWorkers.func1()
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:1028 +0x25
created by github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.(*partition).startMergeWorkers
github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:1027 +0x37
Screenshots
No response
Used command-line flags
./victoria-metrics-prod -retentionPeriod=100y
Additional information
Same Version works in a VMware with Ubuntu and workfolder on local vm disk.
Description of problem: In some of the messages we return in the CLI for error cases we prefix the message with "Error:", othertimes we have it in all caps "ERROR:". This is based off the keys.pot file, so I don't have much context around these, but as far as I can tell, they're not special enough/related enough to have different casing. Version-Release number of selected component (if applicable): subscription-manager-1.0.0-1.git.9.fc486b4 Actual results: #: ../src/subscription_manager/managercli.py:618 #: ../src/subscription_manager/managercli.py:624 msgid "ERROR: The service-level command is not supported by " msgstr "" #: ../src/subscription_manager/managercli.py:810 msgid "ERROR: The --servicelevel option is not supported " msgstr "" #: ../src/subscription_manager/managercli.py:842 msgid "ERROR: Server does not support environments." msgstr "" #: ../src/subscription_manager/managercli.py:997 msgid "ERROR: The 'release' command is not supported by the server." msgstr "" #: ../src/subscription_manager/managercli.py:1117 msgid "ERROR: The --servicelevel option is not " msgstr "" as opposed to stuff like: #: ../src/subscription_manager/managercli.py:571 msgid "Error: you must register or specify --org." msgstr "" #: ../src/subscription_manager/managercli.py:574 msgid "Error: This system is currently not registered." msgstr "" #: ../src/subscription_manager/managercli.py:612 msgid "Error: Unable to retrieve service levels." msgstr "" Expected results: I would expect that whenever we say error, that it be in the same format, "Error:". Additional info: Seems like the last ERROR message above is missing some text.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
commit 2f65bc452b7cdc36a87490a7a91dda6627b073fc Author: Alex Wood <awood> Date: Wed Apr 18 14:58:09 2012 -0400 812897: Use consistent casing for the word "Error"
xanadu|Projects/subscription-manager|:master ✓ ❯ git show commit ad12cf3d996357bd619e93375ad5da5509eafce2 Merge: 613a07f bfff510 Author: James Bowes <jbowes> Date: Tue Jun 19 13:45:56 2012 -0300 xanadu|Projects/subscription-manager|:master ✓ ❯ grep -i "error: " src/subscription_manager/managercli.py print _("Error: CA certificate for subscription service has not been installed.") log.error(u"Error: Unable to generate a new identity for the system: %s" % re) handle_exception(_("Error: Unable to generate a new identity for the system"), e) log.error(u"Error: Unable to retrieve org list from Entitlement Platform: %s" % re) handle_exception(_("Error: Unable to retrieve org list from Entitlement Platform"), e) print(_("Error: This command requires that you specify an organizaiton with --org")) log.error(u"Error: Unable to retrieve environment list from Entitlement Platform: %s" % re) handle_exception(_("Error: Unable to retrieve environment list from Entitlement Platform"), e) print(_("Error: you must register or specify --username and --password to list service levels")) print(_("Error: you must register or specify --org.")) log.error(u"Error: Unable to retrieve service levels: %s" % re) handle_exception(_("Error: Unable to retrieve service levels."), e) systemExit(-1, _("Error: The service-level command is not supported " systemExit(-1, _("Error: The service-level command is not supported by " not_supported = _("Error: The service-level command is not supported by " print(_("Error: consumer name can not be empty.")) print(_("Error: Activation keys do not require user credentials")) print(_("Error: Activation keys can not be used with previously registered ids.")) print(_("Error: Must specify an activation key")) print(_("Error: Must use --autosubscribe with --servicelevel.")) systemExit(-1, _("Error: The --servicelevel option is not supported " systemExit(-1, _("Error: Server does not support environments.")) print(_("Error: This command requires that you specify an email address with --email.")) err_msg = _("Error: The 'release' command is not supported by the server.") print _("Error: This command requires that you specify a pool with --pool or use --auto.") print _("Error: Only one of --pool or --auto may be used with this command.") print _("Error: Quantity must be a positive integer.") print(_("Error: Must use --auto with --servicelevel.")) systemExit(-1, _("Error: The --servicelevel option is not " + msg = _("Error: '%s' is not a valid serial number") % self.options.serial print _("Error: This command requires that you specify one of --serial or --all.") print _("Error: This command requires that you specify a certificate with --certificate.") print _("Error: This command requires that you use a --list option " print _("Error: A valid repo id is required. " print _("Error: A valid repo id is required. " _("Error: --list should not be used with any other options for setting or removing configurations.") _("Error: configuration entry designation for removal must be of format [section.name]") sys.stderr.write(_("Error: Section %s and name %s does not exist.") % (section, name)) print _("Error: --all is only applicable with --available") print _("Error: --ondate is only applicable with --available") print _("Error: --servicelevel is only applicable with --available or --consumed") All of these strings use a consistent "Error: " string format. Marking Verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0033.html |
Помогите создать локальный репозитарий
Модератор: Модераторы разделов
-
qiq2
- Сообщения: 26
Помогите создать локальный репозитарий
Привет Всем!
Нужно создать локальный репозитарий.
Так как на работе интернета нет то есть он есть но очень ограничен, то приходится у знакомых пользоваться интернетом.
И по этому надоело надоедать людям.
Нужно сделать репозитарий федоры а потом принести на работу.
На сколько я понимаю репозитарий делается так.
Настраивается yum
А потом запускаю createrepo в ответ получаю вот такое ругательство
Error: Must specify a directory to index
Usage: genpkgmetadata.py [options]
Что это может означать?
Ко
-
qiq2
- Сообщения: 26
Re: Помогите создать локальный репозитарий
Сообщение
qiq2 » 14.01.2009 02:03
писал(а): ↑
14.01.2009 00:58
«Полезные темы по настройке системы» прилепленные смотрели?
Настройка репозитория Yum
Облазил весь инет, но ни чего не нашел путного. Yum сам по себе работает. То есть выдает список пакетов в репозитарии.
С ним все окей. Вот я только не понимаю откуда берет настройка createrepo.
Я его и через опции задавал конфиг. То есть писал вот такую строчку.
createrepo -u урл репозитария -с папку куда складывать. И запускал просто. И подсовывал ему конфиг yum. А он в ответ только
Error: Must specify a directory to index
Usage: genpkgmetadata.py [options]
Что это может означать?
-
krege
- Сообщения: 669
- ОС: Fedora 21 x86_64 / KDE 5
Re: Помогите создать локальный репозитарий
Сообщение
krege » 14.01.2009 09:22
«-u» не нужно. Ошибка означает, что он не знает, какую директорию обрабатывать. Указывается всегда, варианта по-умолчанию нет.
Самый простой способ — выполнить в директории будущего репозитория
Дальше должно быть понятно.
Ну и «man createrepo», он простой. После прочтения можно начать делать варианты посложнее.
-
qiq2
- Сообщения: 26
Re: Помогите создать локальный репозитарий
Сообщение
qiq2 » 14.01.2009 12:15
Так мне нужно что бы он из репозитария (то есть официального сайта) скачал все и положил в локальную папку.
Поэтому я и пишу createrepo -u путь к репозитарию (например http://mirror.yandex.ru) -с и указываю локальную папку куда сложить все что он
скачал.
Покажите пример файла конфигурации createrepo и скажите куда его положить.
Сам по себе yum работает.
А вот createrepo не хочет.
Что ему нужно не понятно.
-
broom
- Бывший модератор
- Сообщения: 1629
- Статус: мизантроп.ка
- ОС: Gentoo
Re: Помогите создать локальный репозитарий
Сообщение
broom » 14.01.2009 14:46
Из man createrepo:
DESCRIPTION
createrepo is a program that creates a repomd (xml-based rpm metadata) repository from a set of rpms.
but in the darkness, behind your smile, you scream… © Dio
-
qiq2
- Сообщения: 26
Re: Помогите создать локальный репозитарий
Сообщение
qiq2 » 14.01.2009 15:03
broom писал(а): ↑
14.01.2009 14:46
Из man createrepo:
DESCRIPTION
createrepo is a program that creates a repomd (xml-based rpm metadata) repository from a set of rpms.
Правильно ли я понимаю что он не скачивает файлы?
Он только создает метабазу репозитария?
Cкачиваются файлы с помощью wget.
И потом с помощью createrepo делается мета база?
-
Corsair
- Сообщения: 842
- Статус: Местный «тролль»
- ОС: Fedora
Re: Помогите создать локальный репозитарий
Сообщение
Corsair » 14.01.2009 19:25
qiq2 писал(а): ↑
14.01.2009 15:03
Правильно ли я понимаю что он не скачивает файлы?
Он только создает метабазу репозитария?
Cкачиваются файлы с помощью wget.
И потом с помощью createrepo делается мета база?
Скачивать можете хоть интернет эксплорером из под вайна — не принципиально.
Потом натравите createrepo на каталог с пакетами.
Жестокий стоячий админ (с) коллега
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.