You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually we may also be missing a convenience wrapper cvmfs_server ingestsql. For other swissknife commands we typically have a cvmfs_server "wrapper" command that loads the config and uses this to fill most of the parameters. I'll look into this
@vvolkl would you accept documentation of swissknife ingestsql command into the repo, or only cvmfs_server ingestsql? Asking regardless of which section anything would go.
@vvolkl would you accept documentation of swissknife ingestsql command into the repo, or only cvmfs_server ingestsql? Asking regardless of which section anything would go.
Hopefully cvmfs_server is the same as swissknife but just easier to use, so for user-facing documentation I think it makes sense to show cvmfs_server. If there's a good reason to use cvmfs_swissknife that can be used too.
If it's OK for you I will replace current latest branch with mkdocs, before merging this, so this PR should be changed to markdown.
I have reworked the added content on top of current latest branch.
I kept it centered on cvmfs_swissknife ingestsql command and merely mentioned cvmfs_server ingestsql, because the wrapper doesn't seem to be working as intended now. I can't find a substitute for the initial command, creating an empty database file: cvmfs_swissknife ingestsql -D '' -N '' -n my.db
[root@cvmfs-dev /]# cvmfs_server ingestsql -D '' -N '' -n my.db
Please provide a SQLite database with -D <path> [root@cvmfs-dev /]# cvmfs_server ingestsql -D /dev/null -N '' -n my.db
Error: The repository -N does not exist.
[root@cvmfs-dev /]# cvmfs_server ingestsql -D /dev/null -N repo.name -n my.db
Error: The repository my.db does not exist.
[root@cvmfs-dev /]# cvmfs_server ingestsql -D my.db repo.name
Error: The repository repo.name does not exist.
[root@cvmfs-dev /]# ls /cvmfs/
test.cern.ch test.repo.org
[root@cvmfs-dev /]# cvmfs_server ingestsql -D my.db test.repo.org
failed to stat file my.db
cvmfs_swissknife: /usr/local/src/cvmfs/cvmfs/swissknife_ingestsql.cc:502: vector<string> get_file_list(string &): Assertion `0' failed.
Aborted (core dumped)
ingestsql failed
Executed Command:
cvmfs_swissknife ingestsql -N test.repo.org -w http://cvmfs.web.garage.internal:3902/test.repo.org -t /var/spool/cvmfs/test.repo.org/tmp -k /etc/cvmfs/keys/test.repo.org.pub -s /etc/cvmfs/keys/test.repo.org.gw -@ http://127.0.0.1:8008 -D my.db
[root@cvmfs-dev /]#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This documents
cvmfs_swissknife ingestsqlcommand.Deployed for preview at https://autkin.net/tmp/doc-cvmfs/html/cpt-swissknife.html
There is a small cleanup in a separate commit.