i get error when run gammu-smsd
Log filename is "/var/log/gammu-smsd"
gammu-smsd[11271]: Database structure is from newer Gammu version
gammu-smsd[11271]: Initialisation failed, stopping Gammu smsd: Unknown error. (UNKNOWN[27])
Failed to run SMSD: Unknown error.
my gammu in version 1.31.90 and database structure in version 1.34.0.
i try upgrade gammu version
apt-get upgrade gammu
but gammu version stil in version 1.31.90
can you help me solve this problem?
thank you
There is a sql file to setup the postgres DB in docs/sql/pgsql.sql. It can be found online here: http://wammu.eu/docs/manual/smsd/pgsql.html
This line is causing trouble:
INSERT INTO gammu ("Version") VALUES (14);
Change '14' to '13' and rerun the script to build your smsd database. This worked for me...
All the best, Sebastian
Related
Can anyone help me with this. Im using Mac. I cant find the location of the rulemanager. Please see error below
Lxxxxxxx:pmd-bin-6.34.0 xxxxxx$ sfdx scanner:run pmd --target /usr/src --category rulesets/java/quickstart.xml -f sarif
(node:17810) [editions-autoloader-none-broadened] Error Plugin: sfdx-cli: editions-autoloader-none-broadened: Unable to determine a suitable edition, even after broadening.
module: #oclif/config#1.17.0
task: runHook init
plugin: sfdx-cli
root: /Users/xxxxxxx/.local/share/sfdx/client/7.100.0-9d243d8
See more details with DEBUG=*
(Use node --trace-warnings ... to show where the warning was created)
ERROR running scanner:run: Attempted to resolve unregistered dependency token: "RuleManager"
Kieran, this is an issue that we just discovered. It is related to an incompatibility with the version of Node.js that is bundled with the Salesforce CLI and a library that is used by sfdx-scanner.
A temporary workaround can be found at https://github.com/forcedotcom/sfdx-scanner/issues/412
You will need to use the npm installation instead of the pkg installer since you are interested in the Sarif output. Sarif output was added in version 2.6.0. The issue affects versions 2.6.0-2.8.0 when using the pkg installer on a Mac.
We hope to have a fix rolled out in the next couple of days. I will post here when version 2.9 has been released. Sorry for any inconvenience.
Kieran, this issue has been fixed in version 2.9.1. You can upgrade by executing the following commands in your shell.
sfdx plugins:uninstall #salesforce/sfdx-scanner
sfdx plugins:install #salesforce/sfdx-scanner
I managed to get the latest Yarn v1.13.0 installed on Xubuntu 16 with their curl installation instruction.
Now I'm getting this errors trying to install a project's dependencies.
An expected error occurred:
"https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz:
Request failed \"404 Not Found\
Same 'Not Found' message is displayed by the error url.
Seems to be caused by the security issue https://github.com/dominictarr/event-stream/issues/116?utm_content=educational&utm_campaign=2018-11-28&utm_source=email-sendgrid&utm_term=13952972&utm_medium=833442
How do I fix it? How do I find the project deps that use the corrupted version of event-stream?
Seemingly was caused by an older version of Nodemon prolly affected by the security issue above. Updating it to the latest version in package.json seemed to have helped.
Library issue while upgrading postgres 9.3.4 to 9.4
I'm trying to upgrade postgres 9.3.4 to postgres 9.4 but im getting below error.
/usr/pgsql-9.4/bin/pg_upgrade --old-bindir=/usr/pgsql-9.3/bin/ --new-bindir=/usr/pgsql-9.4/bin/ --old-datadir=/crpjirw1/postgres1/9.3/data/ --new-datadir=/crpjirw1/postgres1/9.4/data/ --check
Performing Consistency Checks
Checking cluster versions ok
Checking database user is a superuser ok
Checking database connection settings ok
Checking for prepared transactions ok
Checking for reg* system OID user data types ok
Checking for contrib/isn with bigint-passing mismatch ok
Checking for invalid "line" user columns ok
Checking for presence of required libraries fatal
Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
loadable_libraries.txt
Failure, exiting
more loadable_libraries.txt
Could not load library "$libdir/pg_stat_plans"
ERROR: could not access file "$libdir/pg_stat_plans": No such file or
directory
i checked in libdir there is no file pg_stat_plans
pg_config --pkglibdir
/usr/pgsql-9.3/lib
cd /usr/pgsql-9.3/lib
ls -lrt pg_stat_plan
ls: cannot access pg_stat_plan*: No such file or directory
I dont understand where its looking for pg_stat_plan lib file.
Someone help me to fix this issue.
I have fixed my issue.
Dropped the pg_stat_plans extension to fix the issue.
There is multiples function will be associated to pg_stat_plans extension
drop extension worked even though there is no extension like pg_stat_plans and it automatically dropped all function and views associated with extension and fixed the issue.
So we have to uninstall the rpm package pg_stat_plans.xxxxx.rpm first and then drop extension and trigger pg_upgrade , it worked for me.
I'm trying to install orafce extension on postgresql 10.1. I'm getting the next error : Could not load library "$libdir/orafce": ERROR: could not load library "MyPATH/orafce.so": MyPATH/orafce.so: undefined symbol: Float8GetDatum
When I run make install I dont get any errors. This is part of upgrade of postgreqsl 9.6.3 to 10.1. I got the error when I run pg_upgrade --check
Any idea what can I check ?
I solved the issue by rebuilding the extension both on the old and on the new version (in that order).
I'm trying to install Postgresql (8.2.15) additional supplied modules intarray and intagg for my Greenplum database 4.2.1.0. The installation seems successful; I followed the tutorial here and all the files are copied into the greenplumlib-db-4.2.1.0/lib/postgresql share/postgresql directory. but when I tried to execute my java code, it throws an "undefined symbol" error:
org.postgresql.util.PSQLException: ERROR: could not load library "/usr/local/greenplum-db-4.2.1.0/lib/postgresql/_int.so": /usr/local/greenplum-db-4.2.1.0/lib/postgresql/_int.so: undefined symbol: pfree
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:345)
at tuffy.db.RDB.execute(RDB.java:354)
at tuffy.db.RDB.resetSchema(RDB.java:700)
at felix.main.Felix.parseFelixQuery(Felix.java:106)
at felix.main.Felix.run(Felix.java:755)
at felix.main.Main.main(Main.java:69)
saying that the symbol pfree is undefined. I have checked the version number: both the postgresql in Greenplum and the additional module are 8.2.15. Am I missing something?
Update: The link to the tutorial seems unstable; it basically gives some simple steps to complete the installation:
Get any of the postgresql 8.2 source package from the official site
su - gpadmin
Unpack the source, then go to ~/postgresql-8.2.xx/contrib/xxx
make USE_PGXS=1 COPT="-Wno-error" install
(Optional for Greenplum MPP) Use gpssh to copy whatever .so file that just get installed under /usr/local/greenplum-db/lib/postgresql to other nodes
psql -f xxx.sql [DBNAME]
Update:
Thank you for your answer.
I'm installing Greenplum, but it only includes postgresql 8.2.15, so I have to use this version. I have copied the whole /usr/local/pgsql/lib directory to the greenplum library, it seems to get the intarray to work, but now I have a new error:
could not load library "/usr/local/greenplum-db-4.2.1.0/lib/postgresql/plpgsql.so":
/usr/local/greenplum-db-4.2.1.0/lib/postgresql/plpgsql.so: undefined symbol: heap_copytuple
It seems that I'm missing some files...
Thank you!
You may have missed that PostgreSQL 8.2 has reached end of life in 2011.
Upgrade to a more current version, (latest is 9.1 at the time of writing), where installing the extension (formerly: "additional supplied modules") intarray is a matter of:
CREATE EXTENSION intarray;
The manual about CREATE EXTENSION.